/[PAMELA software]/DarthVader/TrackerLevel2/inc/TrkParams.h
ViewVC logotype

Diff of /DarthVader/TrackerLevel2/inc/TrkParams.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by pam-fi, Fri Apr 27 10:39:57 2007 UTC revision 1.9 by mocchiut, Fri Oct 19 08:39:32 2007 UTC
# Line 9  Line 9 
9  #include <TString.h>  #include <TString.h>
10  #include <TSQLServer.h>  #include <TSQLServer.h>
11  #include <TSystem.h>  #include <TSystem.h>
12    #include <TROOT.h> // EMILIANO: needed to compile with ROOT > 5.16/x
13    
14  #include <GLTables.h>  #include <GLTables.h>
15  #include <TrkStruct.h>  #include <TrkStruct.h>
# Line 19  Line 20 
20  /**  /**
21   * \brief Class to store tracker parameter information   * \brief Class to store tracker parameter information
22   *   *
23   * Tracker parameters include calibration parameters (PED, SIG and BAD) and   * Tracker parameters include calibration parameters (PED, SIG and BAD),
24   * other parameters (alignment, ADC-to-mip, etc. ).   * parameters loaded from DB (alignment, ADC-to-mip, etc. ) and some parameters
25   * The first can be either those evaluated online or default values.   * to configure tracker processing (PFA, ecc...).
26   * The second are labelled according to the DB convention:   *
27     * Calibrations can be either those evaluated online or default values.
28     * External parameter are labelled according to the DB convention:
29   *   *
30   * type  description   * type  description
31   * -----------------   * -----------------
# Line 34  Line 37 
37   * 6     VA1 mask   * 6     VA1 mask
38   * 7     default calibration   * 7     default calibration
39   *   *
40     * Internal parameters are initialized to default values
41    *
42   * TrkParams::SetCalib(...) and TrkParams::Set(...) methods allow to set   * TrkParams::SetCalib(...) and TrkParams::Set(...) methods allow to set
43   * required parameters, from an input path, from the DB (for a given input   * required parameters, from an input path, from the DB (for a given input
44   * run id) and from environment variable PAM_CALIB.   * run id) and from environment variable PAM_CALIB.
# Line 75  public: Line 80  public:
80      static GL_PARAM  gl[NTYPES];      static GL_PARAM  gl[NTYPES];
81      static TString   glpath[NTYPES];      static TString   glpath[NTYPES];
82      static Bool_t    glload[NTYPES];      static Bool_t    glload[NTYPES];
83            // -----------------------------------------------
84        // some parameters to configure tracker processing
85        // -----------------------------------------------
86        static int init__pfa;
87        static int init__mini_trackmode;
88        static int init__mini_istepmin;
89        static double init__mini_fact;
90        static cDbg init__dbg_mode; //debug mode (for both c++ and F77 roiutines)
91        static float init__pfa_e234ax[6]; // angle intervals for eta2-3-4
92        static float init__pfa_e234ay[6]; // angle intervals for eta2-3-4
93    
94      TrkParams();      TrkParams();
95            
96      // ---------------------------------------------      // ---------------------------------------------
# Line 108  public: Line 123  public:
123      static Bool_t IsLoaded( UInt_t type ){return glload[TrkParams::GetIndex(type)];};      static Bool_t IsLoaded( UInt_t type ){return glload[TrkParams::GetIndex(type)];};
124      static Bool_t IsLoaded( );      static Bool_t IsLoaded( );
125    
126        // ---------------------------------------------
127        // retrieve parameters
128        // ---------------------------------------------
129        static float GetBX(float*);
130        static float GetBY(float*);
131        static float GetBZ(float*);
132        static float GetResolution(int,float);
133        static int   GetPFA(){return sw_.pfaid;};
134    
135      // ---------------------------------------------      // ---------------------------------------------
136      // debug mode      // debug mode
137      // ---------------------------------------------      // ---------------------------------------------
     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;};  
138    
139        static void SetDebugMode()  {init__dbg_mode.SetDebug();   dbg_=init__dbg_mode;};
140        static void SetVerboseMode(){init__dbg_mode.SetVerbose(); dbg_=init__dbg_mode;};
141        static void SetWarningMode(){init__dbg_mode.SetWarning(); dbg_=init__dbg_mode;};    
142        static void SetQuietMode()  {init__dbg_mode.SetNone();    dbg_=init__dbg_mode;};    
143        static Bool_t DebugMode(){return init__dbg_mode.debug;};
144        static Bool_t WarningMode(){return init__dbg_mode.warning;};
145        static Bool_t VerboseMode(){return init__dbg_mode.verbose;};
146    
147        // ------------------------------------------------
148        // alcuni metodi che non sapevo dove mettere
149        // per inizializzare alcune variabili in F77 common
150        // ------------------------------------------------    
151        // set to default values
152        static void SetTrackingMode()   {track_.trackmode = init__mini_trackmode;};
153        static void SetPrecisionFactor(){track_.fact      = init__mini_fact;     };
154        static void SetStepMin()        {track_.istepmin  = init__mini_istepmin; };
155        // set to custom values
156        static void SetTrackingMode(int);
157        static void SetPrecisionFactor(double);
158        static void SetStepMin(int);
159        static void SetPFA(int);
160        static void SetPFA(float *);
161        static void SetPFA(void);
162        
163      ClassDef(TrkParams,2);      ClassDef(TrkParams,2);
164    
165  };  };

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.23