--- DarthVader/TrackerLevel2/inc/TrkParams.h 2007/05/14 11:03:04 1.5 +++ DarthVader/TrackerLevel2/inc/TrkParams.h 2011/11/29 13:24:15 1.17 @@ -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 @@ -37,8 +39,7 @@ * 7 default calibration * * Internal parameters are initialized to default values - * (NB!! the same values set in analisysflight.f). - * +* * TrkParams::SetCalib(...) and TrkParams::Set(...) methods allow to set * required parameters, from an input path, from the DB (for a given input * run id) and from environment variable PAM_CALIB. @@ -73,6 +74,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 +90,26 @@ static int init__mini_trackmode; 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 +117,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 ); @@ -108,9 +128,11 @@ // --------------------------------------------- static Bool_t Set( GL_RUN* glrun, TSQLServer* dbc, UInt_t type); static Bool_t Set( GL_RUN* glrun, TSQLServer* dbc){ - for(Int_t i=0; i