--- DarthVader/TrackerLevel2/inc/TrkParams.h 2007/04/27 10:39:57 1.4 +++ DarthVader/TrackerLevel2/inc/TrkParams.h 2014/02/27 11:24:42 1.19 @@ -9,20 +9,24 @@ #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 * - * Tracker parameters include calibration parameters (PED, SIG and BAD) and - * other parameters (alignment, ADC-to-mip, etc. ). - * The first can be either those evaluated online or default values. - * The second are labelled according to the DB convention: + * Tracker parameters include calibration parameters (PED, SIG and BAD), + * parameters loaded from DB (alignment, ADC-to-mip, etc. ) and some parameters + * to configure tracker processing (PFA, ecc...). + * + * Calibrations can be either those evaluated online or default values. + * External parameter are labelled according to the DB convention: * * type description * ----------------- @@ -34,6 +38,8 @@ * 6 VA1 mask * 7 default calibration * + * Internal parameters are initialized to default values +* * 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. @@ -56,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 // --------------------------------------------- @@ -68,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 // --------------------------------------------- @@ -75,9 +86,33 @@ static GL_PARAM gl[NTYPES]; static TString glpath[NTYPES]; static Bool_t glload[NTYPES]; - + // ----------------------------------------------- + // some parameters to configure tracker processing + // ----------------------------------------------- + static int init__pfa; + 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) // --------------------------------------------- @@ -85,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 ); @@ -94,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