20 |
* \brief Class to store tracker parameter information |
* \brief Class to store tracker parameter information |
21 |
* |
* |
22 |
* Tracker parameters include calibration parameters (PED, SIG and BAD) and |
* Tracker parameters include calibration parameters (PED, SIG and BAD) and |
23 |
* other parameters. |
* other parameters (alignment, ADC-to-mip, etc. ). |
24 |
* The first can be either those evaluated online or default values. |
* The first can be either those evaluated online or default values. |
25 |
* The second are labelled according to the DB convention: |
* The second are labelled according to the DB convention: |
26 |
* |
* |
41 |
* F77 common. |
* F77 common. |
42 |
* |
* |
43 |
* Tracker libraries (TrkLevel0, TrkLevel1 and TrkLevel2) implement automatic |
* Tracker libraries (TrkLevel0, TrkLevel1 and TrkLevel2) implement automatic |
44 |
* setting (eother from DB or from environment variables) and loading of parameters. |
* setting (either from DB or from environment variables) and loading of parameters. |
45 |
* If one needs to load custom parameters, it is enough to call TrkParams::Set(...) |
* If one needs to load custom parameters, it is enough to call TrkParams::Set(...) |
46 |
* with proper arguments. All the methods are static, and can be used as standalone functions. |
* with proper arguments. All the methods are static, and can be used as standalone functions. |
47 |
* |
* |
108 |
static Bool_t IsLoaded( UInt_t type ){return glload[TrkParams::GetIndex(type)];}; |
static Bool_t IsLoaded( UInt_t type ){return glload[TrkParams::GetIndex(type)];}; |
109 |
static Bool_t IsLoaded( ); |
static Bool_t IsLoaded( ); |
110 |
|
|
111 |
ClassDef(TrkParams,1); |
|
112 |
|
// --------------------------------------------- |
113 |
|
// debug mode |
114 |
|
// --------------------------------------------- |
115 |
|
static cDbg dbg_mode; //debug mode (for both c++ and F77 roiutines) |
116 |
|
|
117 |
|
static void SetDebugMode() {dbg_mode.SetDebug(); dbg_=dbg_mode;}; |
118 |
|
static void SetVerboseMode(){dbg_mode.SetVerbose(); dbg_=dbg_mode;}; |
119 |
|
static void SetWarningMode(){dbg_mode.SetWarning(); dbg_=dbg_mode;}; |
120 |
|
static Bool_t DebugMode(){return dbg_mode.debug;}; |
121 |
|
static Bool_t WarningMode(){return dbg_mode.warning;}; |
122 |
|
static Bool_t VerboseMode(){return dbg_mode.verbose;}; |
123 |
|
|
124 |
|
ClassDef(TrkParams,2); |
125 |
|
|
126 |
}; |
}; |
127 |
|
|