19 |
/** |
/** |
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), |
23 |
* other parameters (alignment, ADC-to-mip, etc. ). |
* parameters loaded from DB (alignment, ADC-to-mip, etc. ) and some parameters |
24 |
* The first can be either those evaluated online or default values. |
* to configure tracker processing (PFA, ecc...). |
25 |
* The second are labelled according to the DB convention: |
* |
26 |
|
* Calibrations can be either those evaluated online or default values. |
27 |
|
* External parameter are labelled according to the DB convention: |
28 |
* |
* |
29 |
* type description |
* type description |
30 |
* ----------------- |
* ----------------- |
36 |
* 6 VA1 mask |
* 6 VA1 mask |
37 |
* 7 default calibration |
* 7 default calibration |
38 |
* |
* |
39 |
|
* Internal parameters are initialized to default values |
40 |
|
* (NB!! the same values set in analisysflight.f). |
41 |
|
* |
42 |
* TrkParams::SetCalib(...) and TrkParams::Set(...) methods allow to set |
* TrkParams::SetCalib(...) and TrkParams::Set(...) methods allow to set |
43 |
* required parameters, from an input path, from the DB (for a given input |
* required parameters, from an input path, from the DB (for a given input |
44 |
* run id) and from environment variable PAM_CALIB. |
* run id) and from environment variable PAM_CALIB. |
80 |
static GL_PARAM gl[NTYPES]; |
static GL_PARAM gl[NTYPES]; |
81 |
static TString glpath[NTYPES]; |
static TString glpath[NTYPES]; |
82 |
static Bool_t glload[NTYPES]; |
static Bool_t glload[NTYPES]; |
83 |
|
// ----------------------------------------------- |
84 |
|
// some parameters to configure tracker processing |
85 |
|
// ----------------------------------------------- |
86 |
|
static int init__pfa; |
87 |
|
static int init__mini_trackmode; |
88 |
|
static int init__mini_istepmin; |
89 |
|
static double init__mini_fact; |
90 |
|
|
91 |
TrkParams(); |
TrkParams(); |
92 |
|
|
120 |
static Bool_t IsLoaded( UInt_t type ){return glload[TrkParams::GetIndex(type)];}; |
static Bool_t IsLoaded( UInt_t type ){return glload[TrkParams::GetIndex(type)];}; |
121 |
static Bool_t IsLoaded( ); |
static Bool_t IsLoaded( ); |
122 |
|
|
123 |
|
// --------------------------------------------- |
124 |
|
// retrieve parameters |
125 |
|
// --------------------------------------------- |
126 |
|
static float GetBX(float*); |
127 |
|
static float GetBY(float*); |
128 |
|
static float GetBZ(float*); |
129 |
|
|
130 |
// --------------------------------------------- |
// --------------------------------------------- |
131 |
// debug mode |
// debug mode |
139 |
static Bool_t WarningMode(){return dbg_mode.warning;}; |
static Bool_t WarningMode(){return dbg_mode.warning;}; |
140 |
static Bool_t VerboseMode(){return dbg_mode.verbose;}; |
static Bool_t VerboseMode(){return dbg_mode.verbose;}; |
141 |
|
|
142 |
|
// ------------------------------------------------ |
143 |
|
// alcuni metodi che non sapevo dove mettere |
144 |
|
// per inizializzare alcune variabili in F77 common |
145 |
|
// ------------------------------------------------ |
146 |
|
// set to default values |
147 |
|
static void SetTrackingMode() {track_.trackmode = init__mini_trackmode;}; |
148 |
|
static void SetPrecisionFactor(){track_.fact = init__mini_fact; }; |
149 |
|
static void SetStepMin() {track_.istepmin = init__mini_istepmin; }; |
150 |
|
static void SetPFA() {sw_.pfaid = init__pfa; }; |
151 |
|
// set to custom values |
152 |
|
static void SetTrackingMode(int); |
153 |
|
static void SetPrecisionFactor(double); |
154 |
|
static void SetStepMin(int); |
155 |
|
static void SetPFA(int); |
156 |
|
|
157 |
ClassDef(TrkParams,2); |
ClassDef(TrkParams,2); |
158 |
|
|
159 |
}; |
}; |