--- DarthVader/TrackerLevel2/inc/TrkParams.h 2007/05/15 16:22:19 1.6 +++ DarthVader/TrackerLevel2/inc/TrkParams.h 2008/01/15 14:29:18 1.12 @@ -9,6 +9,7 @@ #include #include #include +#include // EMILIANO: needed to compile with ROOT > 5.16/x #include #include @@ -37,8 +38,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. @@ -87,9 +87,16 @@ 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; + TrkParams(); + // --------------------------------------------- // calibration (PED-SIG-BAD) // --------------------------------------------- @@ -127,18 +134,19 @@ static float GetBY(float*); static float GetBZ(float*); static float GetResolution(int,float); + static int GetPFA(){return sw_.pfaid;}; // --------------------------------------------- // debug mode // --------------------------------------------- - static cDbg dbg_mode; //debug mode (for both c++ and F77 roiutines) - static void SetDebugMode() {dbg_mode.SetDebug(); dbg_=dbg_mode;}; - static void SetVerboseMode(){dbg_mode.SetVerbose(); dbg_=dbg_mode;}; - static void SetWarningMode(){dbg_mode.SetWarning(); dbg_=dbg_mode;}; - static Bool_t DebugMode(){return dbg_mode.debug;}; - static Bool_t WarningMode(){return dbg_mode.warning;}; - static Bool_t VerboseMode(){return dbg_mode.verbose;}; + static void SetDebugMode() {init__dbg_mode.SetDebug(); dbg_=init__dbg_mode;}; + static void SetVerboseMode(){init__dbg_mode.SetVerbose(); dbg_=init__dbg_mode;}; + static void SetWarningMode(){init__dbg_mode.SetWarning(); dbg_=init__dbg_mode;}; + static void SetQuietMode() {init__dbg_mode.SetNone(); dbg_=init__dbg_mode;}; + static Bool_t DebugMode(){return init__dbg_mode.debug;}; + static Bool_t WarningMode(){return init__dbg_mode.warning;}; + static Bool_t VerboseMode(){return init__dbg_mode.verbose;}; // ------------------------------------------------ // alcuni metodi che non sapevo dove mettere @@ -148,13 +156,33 @@ 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; }; + static void SetDeltaB() {deltab_.delta0 = init__deltab_0; + deltab_.delta1 = init__deltab_1;}; + static void SetDLT() {deltab_.dlt = init__dlt;}; + static void SetMiniDefault() { + SetTrackingMode(); + SetPrecisionFactor(); + SetStepMin(); + SetDeltaB(); + SetDLT(); + }; // + static void SetPFA(); + // set to custom values static void SetTrackingMode(int); static void SetPrecisionFactor(double); static void SetStepMin(int); + static void SetDeltaB(int,double); + static void SetDLT(double); static void SetPFA(int); + static void SetPFA(float *); + // --------------------------------------------- + // varie ed eventuali... + // --------------------------------------------- + static TSQLServer* SetDBConnection(); + + ClassDef(TrkParams,2); };