/[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.14 by pam-fi, Sat Mar 22 08:32:49 2008 UTC revision 1.18 by mocchiut, Wed Mar 6 14:20:15 2013 UTC
# Line 62  class TrkParams : public TObject { Line 62  class TrkParams : public TObject {
62    
63  private:  private:
64                    
65        static Bool_t       simuflag;
66      static Int_t GetIndex( UInt_t type );      static Int_t GetIndex( UInt_t type );
67    
68  public:  public:
69    
70        static void         SetSimuFlag(Bool_t);
71        static Bool_t       GetSimuFlag();
72      // ---------------------------------------------      // ---------------------------------------------
73      // variables to store loaded-calibration info      // variables to store loaded-calibration info
74      // ---------------------------------------------      // ---------------------------------------------
# Line 74  public: Line 77  public:
77      static TString      calibpathf; //full      static TString      calibpathf; //full
78      static Bool_t       calib104;      static Bool_t       calib104;
79      static Bool_t       calibload;      static Bool_t       calibload;
80        static TrkCalib*    calib1;
81        static TrkCalib*    calib2;
82      // ---------------------------------------------      // ---------------------------------------------
83      // variables to store loaded-parameters info      // variables to store loaded-parameters info
84      // ---------------------------------------------      // ---------------------------------------------
# Line 115  public: Line 120  public:
120      static Bool_t LoadCalib( );      static Bool_t LoadCalib( );
121      static Bool_t CalibIsLoaded(){ return calibload; };      static Bool_t CalibIsLoaded(){ return calibload; };
122      static UInt_t ValidateTrkCalib( CalibTrk1Event* );      static UInt_t ValidateTrkCalib( CalibTrk1Event* );
123      static void FillFCalibFrom(TFile* , Int_t , Int_t );//full  //    static void FillFCalibFrom(TFile* , Int_t , Int_t );//full
124      static void FillTCalibFrom(TFile* , Int_t , Int_t );//truncated  //    static void FillTCalibFrom(TFile* , Int_t , Int_t );//truncated
125      static void FillTCalibFrom(TString path);      static void FillTCalibFrom(TString path);
126      static void FillACalibFrom(TFile* , Int_t , Int_t );//all      static void FillACalibFrom(TFile* , Int_t , Int_t );//all
127      static void FillMask(TFile* , Int_t , Int_t );      static void FillMask(TFile* , Int_t , Int_t );
# Line 124  public: Line 129  public:
129      // ---------------------------------------------      // ---------------------------------------------
130      // parameters      // parameters
131      // ---------------------------------------------      // ---------------------------------------------
132      static Bool_t Set( GL_RUN* glrun, TSQLServer* dbc, UInt_t type);      static Bool_t Set( GL_RUN* glrun, TSQLServer* dbc, UInt_t type, UInt_t abstime=0);
133      static Bool_t Set( GL_RUN* glrun, TSQLServer* dbc){      static Bool_t Set( GL_RUN* glrun, TSQLServer* dbc){
134          for(Int_t i=0; i<NTYPES; i++)        Bool_t result = true;
135              if( !TrkParams::Set(glrun,dbc,trkparamtype[i]) )return false;            for(Int_t i=0; i<NTYPES; i++)
136          return true;          if( !TrkParams::Set(glrun,dbc,trkparamtype[i]) )
137                    result = false;
138              return result;
139      };      };
140      static Bool_t Set( TString, UInt_t );      static Bool_t Set( TString, UInt_t );
141      static Bool_t Set( UInt_t );      static Bool_t Set( UInt_t );
# Line 138  public: Line 145  public:
145      static Bool_t IsLoaded( UInt_t type ){return glload[TrkParams::GetIndex(type)];};      static Bool_t IsLoaded( UInt_t type ){return glload[TrkParams::GetIndex(type)];};
146      static Bool_t IsLoaded( );      static Bool_t IsLoaded( );
147    
148        static GL_PARAM GetParams( UInt_t type ){ return gl[TrkParams::GetIndex(type)]; };
149    
150      // ---------------------------------------------      // ---------------------------------------------
151      // retrieve parameters      // retrieve parameters
152      // ---------------------------------------------      // ---------------------------------------------
# Line 156  public: Line 165  public:
165      static float  GetPFA_ETAlandi(int nv,int nl,float ang)      static float  GetPFA_ETAlandi(int nv,int nl,float ang)
166          { return TrkParams::GetPFA_ETAlandi(nv,nl,TrkParams::GetPFA_AngleBin(ang)); };          { return TrkParams::GetPFA_ETAlandi(nv,nl,TrkParams::GetPFA_AngleBin(ang)); };
167    
168    
169    
170      // ---------------------------------------------      // ---------------------------------------------
171      // debug mode      // debug mode
172      // ---------------------------------------------      // ---------------------------------------------

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

  ViewVC Help
Powered by ViewVC 1.1.23