--- DarthVader/TrackerLevel2/inc/TrkParams.h 2007/08/20 16:07:14 1.7 +++ DarthVader/TrackerLevel2/inc/TrkParams.h 2014/02/27 11:24:42 1.19 @@ -9,12 +9,14 @@ #include #include #include +#include // EMILIANO: needed to compile with ROOT > 5.16/x #include #include #include #define NTYPES 10 +#define NGF 14 /** * \brief Class to store tracker parameter information @@ -60,10 +62,13 @@ private: + static Bool_t simuflag; static Int_t GetIndex( UInt_t type ); public: + static void SetSimuFlag(Bool_t); + static Bool_t GetSimuFlag(); // --------------------------------------------- // variables to store loaded-calibration info // --------------------------------------------- @@ -72,6 +77,8 @@ static TString calibpathf; //full static Bool_t calib104; static Bool_t calibload; + static TrkCalib* calib1; + static TrkCalib* calib2; // --------------------------------------------- // variables to store loaded-parameters info // --------------------------------------------- @@ -87,9 +94,25 @@ static int init__mini_istepmin; static double init__mini_fact; static cDbg init__dbg_mode; //debug mode (for both c++ and F77 roiutines) - + static float init__pfa_e234ax[6]; // angle intervals for eta2-3-4 + static float init__pfa_e234ay[6]; // angle intervals for eta2-3-4 + static double init__deltab_0; + static double init__deltab_1; + static double init__dlt; + + // ------------------------------------------ + // nominal z-coordinates to define acceptance + // ------------------------------------------ + static int nGF; + static float zGF[NGF]; + static float xGF_min[NGF]; + static float xGF_max[NGF]; + static float yGF_min[NGF]; + static float yGF_max[NGF]; + static TString GF_element[NGF]; + TrkParams(); - + // --------------------------------------------- // calibration (PED-SIG-BAD) // --------------------------------------------- @@ -97,8 +120,8 @@ static Bool_t LoadCalib( ); static Bool_t CalibIsLoaded(){ return calibload; }; static UInt_t ValidateTrkCalib( CalibTrk1Event* ); - static void FillFCalibFrom(TFile* , Int_t , Int_t );//full - static void FillTCalibFrom(TFile* , Int_t , Int_t );//truncated +// static void FillFCalibFrom(TFile* , Int_t , Int_t );//full +// static void FillTCalibFrom(TFile* , Int_t , Int_t );//truncated static void FillTCalibFrom(TString path); static void FillACalibFrom(TFile* , Int_t , Int_t );//all static void FillMask(TFile* , Int_t , Int_t ); @@ -106,11 +129,13 @@ // --------------------------------------------- // parameters // --------------------------------------------- - static Bool_t Set( GL_RUN* glrun, TSQLServer* dbc, UInt_t type); + static Bool_t Set( GL_RUN* glrun, TSQLServer* dbc, UInt_t type, UInt_t abstime=0); static Bool_t Set( GL_RUN* glrun, TSQLServer* dbc){ - for(Int_t i=0; i