--- DarthVader/TrackerLevel2/inc/TrkParams.h 2007/04/27 10:39:57 1.4 +++ DarthVader/TrackerLevel2/inc/TrkParams.h 2007/05/14 11:03:04 1.5 @@ -19,10 +19,12 @@ /** * \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 +36,9 @@ * 6 VA1 mask * 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. @@ -75,6 +80,13 @@ 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; TrkParams(); @@ -108,6 +120,12 @@ static Bool_t IsLoaded( UInt_t type ){return glload[TrkParams::GetIndex(type)];}; static Bool_t IsLoaded( ); + // --------------------------------------------- + // retrieve parameters + // --------------------------------------------- + static float GetBX(float*); + static float GetBY(float*); + static float GetBZ(float*); // --------------------------------------------- // debug mode @@ -121,6 +139,21 @@ static Bool_t WarningMode(){return dbg_mode.warning;}; static Bool_t VerboseMode(){return dbg_mode.verbose;}; + // ------------------------------------------------ + // alcuni metodi che non sapevo dove mettere + // per inizializzare alcune variabili in F77 common + // ------------------------------------------------ + // set to default values + static void SetTrackingMode() {track_.trackmode = init__mini_trackmode;}; + static void SetPrecisionFactor(){track_.fact = init__mini_fact; }; + static void SetStepMin() {track_.istepmin = init__mini_istepmin; }; + static void SetPFA() {sw_.pfaid = init__pfa; }; + // set to custom values + static void SetTrackingMode(int); + static void SetPrecisionFactor(double); + static void SetStepMin(int); + static void SetPFA(int); + ClassDef(TrkParams,2); };