EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
FairParTSQLIo.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file FairParTSQLIo.h
1
/***************************************
2
* Author: M.Babai (M.Babai@rug.nl) *
3
* License: *
4
* Version: *
5
***************************************/
6
#pragma once
7
#ifndef FAIR_PAR_TSQL_IO_h
8
#define FAIR_PAR_TSQL_IO_h
9
10
// C & C++
11
#include <iostream>
12
13
// ROOT
14
class
TList;
15
16
// FairRoot
17
#include "
FairParIo.h
"
18
19
class
FairGenericParTSQLIo
;
20
class
FairDbMultConnector
;
21
22
class
FairParTSQLIo
:
public
FairParIo
23
{
24
public
:
25
//_____________ Constructors _______
29
FairParTSQLIo
();
30
39
FairParTSQLIo
(
FairDbMultConnector
const
& cons,
int
const
dbNum = -1);
40
44
virtual
~FairParTSQLIo
();
45
49
void
disconnect
();
50
55
void
setDetParIo
(Text_t* io);
56
61
bool
check
();
62
68
bool
open
();
69
73
void
print
();
74
79
inline
void
SetDefaultDBNum
(
int
const
dbNum);
80
84
inline
int
GetDefaultDBNum
()
const
;
85
90
inline
FairDbMultConnector
const
&
GetConnections
()
const
;
91
92
protected
:
93
94
bool
activateDetIo
();
95
96
private
:
97
// To avoid mistakes.
98
FairParTSQLIo
(
FairParTSQLIo
const
& ot);
99
FairParTSQLIo
&
operator=
(
FairParTSQLIo
const
& ot);
100
101
int
fDefaultDb
;
102
FairDbMultConnector
*
fConnections
;
104
ClassDef(
FairParTSQLIo
, 0)
// Class for parameter I/O Using TSQL
105
};
106
// ______________________ Inline functions ______________
107
108
#ifndef __CINT__
109
inline
FairDbMultConnector
const
&
FairParTSQLIo::GetConnections
()
const
110
{
111
return
(*(this->
fConnections
));
112
};
113
114
inline
void
FairParTSQLIo::SetDefaultDBNum
(
int
const
dbNum)
115
{
116
this->
fDefaultDb
= dbNum;
117
};
118
119
inline
int
FairParTSQLIo::GetDefaultDBNum
()
const
120
{
121
return
this->
fDefaultDb
;
122
};
123
#endif
/* __CINT__ */
124
#endif// END FAIR_PAR_TSQL_h
EicRoot
blob
master
parbase
dbIO
FairParTSQLIo.h
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:36
using
1.8.2 with
EIC GitHub integration