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> |
16 |
#include <TrkCalib.h> |
#include <TrkCalib.h> |
17 |
|
|
18 |
#define NTYPES 10 |
#define NTYPES 10 |
19 |
|
#define NGF 14 |
20 |
|
|
21 |
/** |
/** |
22 |
* \brief Class to store tracker parameter information |
* \brief Class to store tracker parameter information |
74 |
static TString calibpathf; //full |
static TString calibpathf; //full |
75 |
static Bool_t calib104; |
static Bool_t calib104; |
76 |
static Bool_t calibload; |
static Bool_t calibload; |
77 |
|
static TrkCalib* calib1; |
78 |
|
static TrkCalib* calib2; |
79 |
// --------------------------------------------- |
// --------------------------------------------- |
80 |
// variables to store loaded-parameters info |
// variables to store loaded-parameters info |
81 |
// --------------------------------------------- |
// --------------------------------------------- |
93 |
static cDbg init__dbg_mode; //debug mode (for both c++ and F77 roiutines) |
static cDbg init__dbg_mode; //debug mode (for both c++ and F77 roiutines) |
94 |
static float init__pfa_e234ax[6]; // angle intervals for eta2-3-4 |
static float init__pfa_e234ax[6]; // angle intervals for eta2-3-4 |
95 |
static float init__pfa_e234ay[6]; // angle intervals for eta2-3-4 |
static float init__pfa_e234ay[6]; // angle intervals for eta2-3-4 |
96 |
|
static double init__deltab_0; |
97 |
|
static double init__deltab_1; |
98 |
|
static double init__dlt; |
99 |
|
|
100 |
|
// ------------------------------------------ |
101 |
|
// nominal z-coordinates to define acceptance |
102 |
|
// ------------------------------------------ |
103 |
|
static int nGF; |
104 |
|
static float zGF[NGF]; |
105 |
|
static float xGF_min[NGF]; |
106 |
|
static float xGF_max[NGF]; |
107 |
|
static float yGF_min[NGF]; |
108 |
|
static float yGF_max[NGF]; |
109 |
|
static TString GF_element[NGF]; |
110 |
|
|
111 |
TrkParams(); |
TrkParams(); |
112 |
|
|
113 |
// --------------------------------------------- |
// --------------------------------------------- |
114 |
// calibration (PED-SIG-BAD) |
// calibration (PED-SIG-BAD) |
115 |
// --------------------------------------------- |
// --------------------------------------------- |
117 |
static Bool_t LoadCalib( ); |
static Bool_t LoadCalib( ); |
118 |
static Bool_t CalibIsLoaded(){ return calibload; }; |
static Bool_t CalibIsLoaded(){ return calibload; }; |
119 |
static UInt_t ValidateTrkCalib( CalibTrk1Event* ); |
static UInt_t ValidateTrkCalib( CalibTrk1Event* ); |
120 |
static void FillFCalibFrom(TFile* , Int_t , Int_t );//full |
// static void FillFCalibFrom(TFile* , Int_t , Int_t );//full |
121 |
static void FillTCalibFrom(TFile* , Int_t , Int_t );//truncated |
// static void FillTCalibFrom(TFile* , Int_t , Int_t );//truncated |
122 |
static void FillTCalibFrom(TString path); |
static void FillTCalibFrom(TString path); |
123 |
static void FillACalibFrom(TFile* , Int_t , Int_t );//all |
static void FillACalibFrom(TFile* , Int_t , Int_t );//all |
124 |
static void FillMask(TFile* , Int_t , Int_t ); |
static void FillMask(TFile* , Int_t , Int_t ); |
140 |
static Bool_t IsLoaded( UInt_t type ){return glload[TrkParams::GetIndex(type)];}; |
static Bool_t IsLoaded( UInt_t type ){return glload[TrkParams::GetIndex(type)];}; |
141 |
static Bool_t IsLoaded( ); |
static Bool_t IsLoaded( ); |
142 |
|
|
143 |
|
static GL_PARAM GetParams( UInt_t type ){ return gl[TrkParams::GetIndex(type)]; }; |
144 |
|
|
145 |
// --------------------------------------------- |
// --------------------------------------------- |
146 |
// retrieve parameters |
// retrieve parameters |
147 |
// --------------------------------------------- |
// --------------------------------------------- |
150 |
static float GetBZ(float*); |
static float GetBZ(float*); |
151 |
static float GetResolution(int,float); |
static float GetResolution(int,float); |
152 |
static int GetPFA(){return sw_.pfaid;}; |
static int GetPFA(){return sw_.pfaid;}; |
153 |
|
static int GetPFA_NbinsAngle(); |
154 |
|
static int GetPFA_NbinsETA(); |
155 |
|
static int GetPFA_NbinsCharge(){return 0;}; |
156 |
|
static int GetPFA_AngleBin(float); |
157 |
|
static float* GetPFA_ETAcorr(TString,int,int,int); |
158 |
|
static float* GetPFA_ETAabs(TString,int); |
159 |
|
static float GetPFA_ETAlandi(int,int,int); |
160 |
|
static float GetPFA_ETAlandi(int nv,int nl,float ang) |
161 |
|
{ return TrkParams::GetPFA_ETAlandi(nv,nl,TrkParams::GetPFA_AngleBin(ang)); }; |
162 |
|
|
163 |
|
|
164 |
|
|
165 |
// --------------------------------------------- |
// --------------------------------------------- |
166 |
// debug mode |
// debug mode |
182 |
static void SetTrackingMode() {track_.trackmode = init__mini_trackmode;}; |
static void SetTrackingMode() {track_.trackmode = init__mini_trackmode;}; |
183 |
static void SetPrecisionFactor(){track_.fact = init__mini_fact; }; |
static void SetPrecisionFactor(){track_.fact = init__mini_fact; }; |
184 |
static void SetStepMin() {track_.istepmin = init__mini_istepmin; }; |
static void SetStepMin() {track_.istepmin = init__mini_istepmin; }; |
185 |
|
static void SetDeltaB() {deltab_.delta0 = init__deltab_0; |
186 |
|
deltab_.delta1 = init__deltab_1;}; |
187 |
|
static void SetDLT() {deltab_.dlt = init__dlt;}; |
188 |
|
static void SetMiniDefault() { |
189 |
|
SetTrackingMode(); |
190 |
|
SetPrecisionFactor(); |
191 |
|
SetStepMin(); |
192 |
|
SetDeltaB(); |
193 |
|
SetDLT(); |
194 |
|
}; // |
195 |
|
static void SetPFA(); |
196 |
|
|
197 |
// set to custom values |
// set to custom values |
198 |
static void SetTrackingMode(int); |
static void SetTrackingMode(int); |
199 |
static void SetPrecisionFactor(double); |
static void SetPrecisionFactor(double); |
200 |
static void SetStepMin(int); |
static void SetStepMin(int); |
201 |
|
static void SetDeltaB(int,double); |
202 |
|
static void SetDLT(double); |
203 |
static void SetPFA(int); |
static void SetPFA(int); |
204 |
static void SetPFA(float *); |
static void SetPFA(float *); |
|
static void SetPFA(void); |
|
205 |
|
|
206 |
|
// --------------------------------------------- |
207 |
|
// varie ed eventuali... |
208 |
|
// --------------------------------------------- |
209 |
|
static TSQLServer* SetDBConnection(); |
210 |
|
|
211 |
|
|
212 |
ClassDef(TrkParams,2); |
ClassDef(TrkParams,2); |
213 |
|
|
214 |
}; |
}; |