9 |
#include <TString.h> |
#include <TString.h> |
10 |
#include <TSQLServer.h> |
#include <TSQLServer.h> |
11 |
#include <TSystem.h> |
#include <TSystem.h> |
12 |
|
#include <TROOT.h> // EMILIANO: needed to compile with ROOT > 5.16/x |
13 |
|
|
14 |
#include <GLTables.h> |
#include <GLTables.h> |
15 |
#include <TrkStruct.h> |
#include <TrkStruct.h> |
38 |
* 7 default calibration |
* 7 default calibration |
39 |
* |
* |
40 |
* Internal parameters are initialized to default values |
* Internal parameters are initialized to default values |
41 |
* (NB!! the same values set in analisysflight.f). |
* |
|
* |
|
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. |
87 |
static int init__mini_trackmode; |
static int init__mini_trackmode; |
88 |
static int init__mini_istepmin; |
static int init__mini_istepmin; |
89 |
static double init__mini_fact; |
static double init__mini_fact; |
90 |
|
static cDbg init__dbg_mode; //debug mode (for both c++ and F77 roiutines) |
91 |
|
static float init__pfa_e234ax[6]; // angle intervals for eta2-3-4 |
92 |
|
static float init__pfa_e234ay[6]; // angle intervals for eta2-3-4 |
93 |
|
static double init__deltab_0; |
94 |
|
static double init__deltab_1; |
95 |
|
|
96 |
TrkParams(); |
TrkParams(); |
97 |
|
|
98 |
|
|
99 |
// --------------------------------------------- |
// --------------------------------------------- |
100 |
// calibration (PED-SIG-BAD) |
// calibration (PED-SIG-BAD) |
101 |
// --------------------------------------------- |
// --------------------------------------------- |
133 |
static float GetBY(float*); |
static float GetBY(float*); |
134 |
static float GetBZ(float*); |
static float GetBZ(float*); |
135 |
static float GetResolution(int,float); |
static float GetResolution(int,float); |
136 |
|
static int GetPFA(){return sw_.pfaid;}; |
137 |
|
|
138 |
// --------------------------------------------- |
// --------------------------------------------- |
139 |
// debug mode |
// debug mode |
140 |
// --------------------------------------------- |
// --------------------------------------------- |
|
static cDbg dbg_mode; //debug mode (for both c++ and F77 roiutines) |
|
141 |
|
|
142 |
static void SetDebugMode() {dbg_mode.SetDebug(); dbg_=dbg_mode;}; |
static void SetDebugMode() {init__dbg_mode.SetDebug(); dbg_=init__dbg_mode;}; |
143 |
static void SetVerboseMode(){dbg_mode.SetVerbose(); dbg_=dbg_mode;}; |
static void SetVerboseMode(){init__dbg_mode.SetVerbose(); dbg_=init__dbg_mode;}; |
144 |
static void SetWarningMode(){dbg_mode.SetWarning(); dbg_=dbg_mode;}; |
static void SetWarningMode(){init__dbg_mode.SetWarning(); dbg_=init__dbg_mode;}; |
145 |
static Bool_t DebugMode(){return dbg_mode.debug;}; |
static void SetQuietMode() {init__dbg_mode.SetNone(); dbg_=init__dbg_mode;}; |
146 |
static Bool_t WarningMode(){return dbg_mode.warning;}; |
static Bool_t DebugMode(){return init__dbg_mode.debug;}; |
147 |
static Bool_t VerboseMode(){return dbg_mode.verbose;}; |
static Bool_t WarningMode(){return init__dbg_mode.warning;}; |
148 |
|
static Bool_t VerboseMode(){return init__dbg_mode.verbose;}; |
149 |
|
|
150 |
// ------------------------------------------------ |
// ------------------------------------------------ |
151 |
// alcuni metodi che non sapevo dove mettere |
// alcuni metodi che non sapevo dove mettere |
155 |
static void SetTrackingMode() {track_.trackmode = init__mini_trackmode;}; |
static void SetTrackingMode() {track_.trackmode = init__mini_trackmode;}; |
156 |
static void SetPrecisionFactor(){track_.fact = init__mini_fact; }; |
static void SetPrecisionFactor(){track_.fact = init__mini_fact; }; |
157 |
static void SetStepMin() {track_.istepmin = init__mini_istepmin; }; |
static void SetStepMin() {track_.istepmin = init__mini_istepmin; }; |
158 |
static void SetPFA() {sw_.pfaid = init__pfa; }; |
static void SetDeltaB() {deltab_.delta0 = init__deltab_0; |
159 |
|
deltab_.delta1 = init__deltab_1;}; |
160 |
|
static void SetMiniDefault() { |
161 |
|
SetTrackingMode(); |
162 |
|
SetPrecisionFactor(); |
163 |
|
SetStepMin(); |
164 |
|
SetDeltaB(); |
165 |
|
}; // |
166 |
|
static void SetPFA(); |
167 |
|
|
168 |
// set to custom values |
// set to custom values |
169 |
static void SetTrackingMode(int); |
static void SetTrackingMode(int); |
170 |
static void SetPrecisionFactor(double); |
static void SetPrecisionFactor(double); |
171 |
static void SetStepMin(int); |
static void SetStepMin(int); |
172 |
|
static void SetDeltaB(int,double); |
173 |
static void SetPFA(int); |
static void SetPFA(int); |
174 |
|
static void SetPFA(float *); |
175 |
|
|
176 |
|
// --------------------------------------------- |
177 |
|
// varie ed eventuali... |
178 |
|
// --------------------------------------------- |
179 |
|
static TSQLServer* SetDBConnection(); |
180 |
|
|
181 |
|
|
182 |
ClassDef(TrkParams,2); |
ClassDef(TrkParams,2); |
183 |
|
|
184 |
}; |
}; |