/[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.5 by pam-fi, Mon May 14 11:03:04 2007 UTC revision 1.14 by pam-fi, Sat Mar 22 08:32:49 2008 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>
16  #include <TrkCalib.h>  #include <TrkCalib.h>
17    
18  #define NTYPES 10  #define NTYPES 10
19    #define NGF 14
20    
21  /**  /**
22   * \brief Class to store tracker parameter information   * \brief Class to store tracker parameter information
# Line 37  Line 39 
39   * 7     default calibration   * 7     default calibration
40   *   *
41   * Internal parameters are initialized to default values   * Internal parameters are initialized to default values
42   * (NB!! the same values set in analisysflight.f).  *
  *  
43   * TrkParams::SetCalib(...) and TrkParams::Set(...) methods allow to set   * TrkParams::SetCalib(...) and TrkParams::Set(...) methods allow to set
44   * 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
45   * run id) and from environment variable PAM_CALIB.   * run id) and from environment variable PAM_CALIB.
# Line 87  public: Line 88  public:
88      static int init__mini_trackmode;      static int init__mini_trackmode;
89      static int init__mini_istepmin;      static int init__mini_istepmin;
90      static double init__mini_fact;      static double init__mini_fact;
91            static cDbg init__dbg_mode; //debug mode (for both c++ and F77 roiutines)
92        static float init__pfa_e234ax[6]; // angle intervals for eta2-3-4
93        static float init__pfa_e234ay[6]; // angle intervals for eta2-3-4
94        static double init__deltab_0;
95        static double init__deltab_1;
96        static double init__dlt;
97    
98        // ------------------------------------------
99        // nominal z-coordinates to define acceptance
100        // ------------------------------------------
101        static int   nGF;
102        static float zGF[NGF];
103        static float xGF_min[NGF];
104        static float xGF_max[NGF];
105        static float yGF_min[NGF];
106        static float yGF_max[NGF];
107        static TString GF_element[NGF];
108    
109      TrkParams();      TrkParams();
110              
111      // ---------------------------------------------      // ---------------------------------------------
112      // calibration (PED-SIG-BAD)      // calibration (PED-SIG-BAD)
113      // ---------------------------------------------      // ---------------------------------------------
# Line 126  public: Line 144  public:
144      static float GetBX(float*);      static float GetBX(float*);
145      static float GetBY(float*);      static float GetBY(float*);
146      static float GetBZ(float*);      static float GetBZ(float*);
147        static float GetResolution(int,float);
148        static int   GetPFA(){return sw_.pfaid;};
149        static int GetPFA_NbinsAngle();
150        static int GetPFA_NbinsETA();
151        static int GetPFA_NbinsCharge(){return 0;};
152        static int GetPFA_AngleBin(float);
153        static float* GetPFA_ETAcorr(TString,int,int,int);
154        static float* GetPFA_ETAabs(TString,int);
155        static float  GetPFA_ETAlandi(int,int,int);
156        static float  GetPFA_ETAlandi(int nv,int nl,float ang)
157            { return TrkParams::GetPFA_ETAlandi(nv,nl,TrkParams::GetPFA_AngleBin(ang)); };
158    
159      // ---------------------------------------------      // ---------------------------------------------
160      // debug mode      // debug mode
161      // ---------------------------------------------      // ---------------------------------------------
     static cDbg dbg_mode; //debug mode (for both c++ and F77 roiutines)  
162    
163      static void SetDebugMode()  {dbg_mode.SetDebug();   dbg_=dbg_mode;};      static void SetDebugMode()  {init__dbg_mode.SetDebug();   dbg_=init__dbg_mode;};
164      static void SetVerboseMode(){dbg_mode.SetVerbose(); dbg_=dbg_mode;};      static void SetVerboseMode(){init__dbg_mode.SetVerbose(); dbg_=init__dbg_mode;};
165      static void SetWarningMode(){dbg_mode.SetWarning(); dbg_=dbg_mode;};          static void SetWarningMode(){init__dbg_mode.SetWarning(); dbg_=init__dbg_mode;};    
166      static Bool_t DebugMode(){return dbg_mode.debug;};      static void SetQuietMode()  {init__dbg_mode.SetNone();    dbg_=init__dbg_mode;};    
167      static Bool_t WarningMode(){return dbg_mode.warning;};      static Bool_t DebugMode(){return init__dbg_mode.debug;};
168      static Bool_t VerboseMode(){return dbg_mode.verbose;};      static Bool_t WarningMode(){return init__dbg_mode.warning;};
169        static Bool_t VerboseMode(){return init__dbg_mode.verbose;};
170    
171      // ------------------------------------------------      // ------------------------------------------------
172      // alcuni metodi che non sapevo dove mettere      // alcuni metodi che non sapevo dove mettere
# Line 147  public: Line 176  public:
176      static void SetTrackingMode()   {track_.trackmode = init__mini_trackmode;};      static void SetTrackingMode()   {track_.trackmode = init__mini_trackmode;};
177      static void SetPrecisionFactor(){track_.fact      = init__mini_fact;     };      static void SetPrecisionFactor(){track_.fact      = init__mini_fact;     };
178      static void SetStepMin()        {track_.istepmin  = init__mini_istepmin; };      static void SetStepMin()        {track_.istepmin  = init__mini_istepmin; };
179      static void SetPFA()            {sw_.pfaid        = init__pfa;           };      static void SetDeltaB()         {deltab_.delta0   = init__deltab_0;
180                                         deltab_.delta1   = init__deltab_1;};    
181        static void SetDLT()            {deltab_.dlt   = init__dlt;};
182        static void SetMiniDefault()    {
183            SetTrackingMode();
184            SetPrecisionFactor();
185            SetStepMin();
186            SetDeltaB();
187            SetDLT();
188        }; //
189        static void SetPFA();
190        
191      // set to custom values      // set to custom values
192      static void SetTrackingMode(int);      static void SetTrackingMode(int);
193      static void SetPrecisionFactor(double);      static void SetPrecisionFactor(double);
194      static void SetStepMin(int);      static void SetStepMin(int);
195        static void SetDeltaB(int,double);    
196        static void SetDLT(double);
197      static void SetPFA(int);      static void SetPFA(int);
198        static void SetPFA(float *);
199            
200        // ---------------------------------------------
201        // varie ed eventuali...
202        // ---------------------------------------------
203        static TSQLServer* SetDBConnection();
204    
205    
206      ClassDef(TrkParams,2);      ClassDef(TrkParams,2);
207    
208  };  };

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.23