--- DarthVader/TrackerLevel2/inc/TrkParams.h 2007/03/19 17:24:54 1.3 +++ DarthVader/TrackerLevel2/inc/TrkParams.h 2007/04/27 10:39:57 1.4 @@ -20,7 +20,7 @@ * \brief Class to store tracker parameter information * * Tracker parameters include calibration parameters (PED, SIG and BAD) and - * other parameters. + * 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: * @@ -41,7 +41,7 @@ * F77 common. * * Tracker libraries (TrkLevel0, TrkLevel1 and TrkLevel2) implement automatic - * setting (eother from DB or from environment variables) and loading of parameters. + * setting (either from DB or from environment variables) and loading of parameters. * If one needs to load custom parameters, it is enough to call TrkParams::Set(...) * with proper arguments. All the methods are static, and can be used as standalone functions. * @@ -108,7 +108,20 @@ static Bool_t IsLoaded( UInt_t type ){return glload[TrkParams::GetIndex(type)];}; static Bool_t IsLoaded( ); - ClassDef(TrkParams,1); + + // --------------------------------------------- + // 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;}; + + ClassDef(TrkParams,2); };