/[PAMELA software]/DarthVader/ToFLevel2/inc/ToFLevel2.h
ViewVC logotype

Diff of /DarthVader/ToFLevel2/inc/ToFLevel2.h

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

revision 1.23 by carbone, Fri Nov 20 11:05:21 2009 UTC revision 1.29 by mocchiut, Tue Dec 20 14:16:35 2011 UTC
# Line 1  Line 1 
1  /**  /**
2   * \file ToFLevel2.h   * \file ToFLevel2.h
3   * \author Gianfranca DeRosa / Wolfgang Menn   * \author Gianfranca DeRosa / Wolfgang Menn / Rita Carbone with E. M. supervision
4   */   */
5    
6  #ifndef ToFLevel2_h  #ifndef ToFLevel2_h
# Line 35  extern "C" int tofl2com(); Line 35  extern "C" int tofl2com();
35  #define toftrk toftrk_  #define toftrk toftrk_
36  extern "C" int toftrk();  extern "C" int toftrk();
37  #define rdtofcal rdtofcal_  #define rdtofcal rdtofcal_
38  extern "C" int rdtofcal(char [], int *);  //extern "C" int rdtofcal(char [], int *);
39    extern "C" int rdtofcal(const char *, int *);
40    
41  //  //
42  // class which contains track related variables  // class which contains track related variables
# Line 90  class ToFPMT : public TObject { Line 91  class ToFPMT : public TObject {
91    
92   public:   public:
93      Int_t pmt_id;     ///<the identification number of the PMT from 0 to 47      Int_t pmt_id;     ///<the identification number of the PMT from 0 to 47
94      Float_t adc;      ///<raw ADC value for this PMT      Float_t adc;      ///<raw ADC value for this PMT
95      Float_t tdc;      ///<raw TDC value for this PMT      Float_t tdc;      ///<raw TDC value for this PMT
96      Float_t tdc_tw;   ///<time-walk corrected TDC value for this PMT      Float_t tdc_tw;   ///<time-walk corrected TDC value for this PMT
97      //      //
# Line 100  class ToFPMT : public TObject { Line 101  class ToFPMT : public TObject {
101      ToFPMT* GetToFPMT(){return this;};      ToFPMT* GetToFPMT(){return this;};
102      void Clear(Option_t *t="");      void Clear(Option_t *t="");
103    
   
   
104      ClassDef(ToFPMT,2);      ClassDef(ToFPMT,2);
105  };  };
106    
# Line 114  class ToFdEdx : public TObject { Line 113  class ToFdEdx : public TObject {
113    
114   private:   private:
115      //      //
   
116      ToFGeom  eGeom;  // ToF geometry      ToFGeom  eGeom;  // ToF geometry
117      //      //
   
118      Float_t  adc_he;      Float_t  adc_he;
119            TArrayF *eDEDXpmt;  // 0-47  pmt dEdx
     TArrayF eDEDXpmt;  // 0-47  pmt dEdx  
     TArrayF eZpmt;     // 0-47  pmt charge  
     TArrayF eDEDXpad;  // 0-23  paddle dEdx  
     TArrayF eZpad;     // 0-23  paddle charge  
     TArrayF eDEDXlayer;  // 0-5 layer dEdx  
     TArrayF eZlayer;     // 0-5 layer charge  
     TArrayF eDEDXplane;  // 0-2 plane dEdx  
     TArrayF eZplane;     // 0-2 plane charge  
   
     TArrayF INFOpmt;  // 0-47 pmt status  
     TArrayF INFOlayer;  //0-5 layer status  
       
120      // parameters:      // parameters:
121      TArrayF PMTsat;  // 0-47  saturation parameters      TArrayF PMTsat;  // 0-47  saturation parameters
122        Float_t adc[48];
123      TArrayF TDx[48];  // 200 x 48  define an array of 200 elements per each pmt      //
     TArrayF TDy[48];  
124    
125      TArrayF parAtt[48];      // 48 x 6      TArrayF parAtt[48];      // 48 x 6
126      TArrayF parPos[48];      // 48 x 4      TArrayF parPos[48];      // 48 x 4
# Line 163  class ToFdEdx : public TObject { Line 147  class ToFdEdx : public TObject {
147            
148   public:   public:
149      ToFdEdx();   // class constructor      ToFdEdx();   // class constructor
150      ~ToFdEdx(){ Delete(); };  // class distructor      ~ToFdEdx();  // class distructor
151      //      //
152      void Clear(Option_t *option="");      void Clear(Option_t *option="");
153      void Delete(Option_t *option="") { Clear(); }      void Delete(Option_t *option="");
154    
155      //    void InitPar(const char *pardir);  // init parameters      void Init(pamela::tof::TofEvent *tofl0 );  // init parameters
156        void Init(Int_t i, Int_t j, Float_t adce);
157      void Define_PMTsat();      void Define_PMTsat();
     //void ReadParTD( Int_t ipmt, const char *fname  );  
158    
159      void ReadParAtt(            const char *fname  );      void ReadParAtt(            const char *fname  );
160      void ReadParPos(            const char *fname  );      void ReadParPos(            const char *fname  );
# Line 180  class ToFdEdx : public TObject { Line 164  class ToFdEdx : public TObject {
164    
165      void CheckConnectors(UInt_t atime, GL_PARAM *glparam, TSQLServer *dbc);      void CheckConnectors(UInt_t atime, GL_PARAM *glparam, TSQLServer *dbc);
166    
167      void Process( UInt_t atime, Float_t betamean, Float_t *xtr_tof, Float_t *ytr_tof, pamela::tof::TofEvent *tofl0 ); //      void Process( UInt_t atime, Float_t betamean, Float_t *xtr_tof, Float_t *ytr_tof, Int_t exitat=-1); //
168      void Print(Option_t *option="");      void Print(Option_t *option="");
     void PrintTD();  
169    
170        //    Float_t GetdEdx_pmt(Int_t ipmt) { return (Float_t)eDEDXpmt[ipmt]; }  // 0-47 dEdx for each PMT for tracked events
171      Float_t GetdEdx_pmt(Int_t ipmt) { return eDEDXpmt[ipmt]; }  // 0-47 dEdx for each PMT for tracked events      Float_t GetdEdx_pmt(Int_t ipmt) { return eDEDXpmt->At(ipmt); }  // 0-47 dEdx for each PMT for tracked events
     Float_t GetCharge_pmt(Int_t ipmt) {return eZpmt[ipmt];}  // 0-47 Z for each PMT for tracked events  
     Float_t GetdEdx_pad(Int_t ipad) {return eDEDXpad[ipad];}  // 0-23 dEdx for each paddle for tracked events (no request of consistency between PMT's response when both on!)  
     Float_t GetCharge_pad(Int_t ipad) {return  eZpad[ipad];}  // 0-23 Z for each paddle for tracked events (no request of consistency)  
     Float_t GetdEdx_layer(Int_t ilay) {return eDEDXlayer[ilay];}  // 0-5 dEdx for each layer for tracked events  
     Float_t GetCharge_layer(Int_t ilay) {return eZlayer[ilay];}  // 0-5 Z for each layer for tracked events  
     Float_t GetdEdx_plane(Int_t ipl) {return eDEDXplane[ipl];}  // 0-2 dEdx for each plane for tracked events  
     Float_t GetCharge_plane(Int_t ipl) {return eZplane[ipl];}  // 0-2 Z for each plane for tracked events N.B.: here there is a soft request of consistency between the two layers...to be discussed!!  
       
     Float_t GetInfo_pmt(Int_t ipmt) {return INFOpmt[ipmt];} // 0-47 pmt status  
     Float_t GetInfo_layer(Int_t ilay) {return INFOlayer[ilay];}  // 0-5 layer status  
   
   
   
     //  
172      //      //
173      ToFdEdx* GetToFdEdx(){return this;};      ToFdEdx* GetToFdEdx(){return this;};
174        ClassDef(ToFdEdx,3);
   
   
   
     ClassDef(ToFdEdx,1);  
175  };  };
176    
177    

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.29

  ViewVC Help
Powered by ViewVC 1.1.23