/[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.2 by mocchiut, Sat Jun 17 12:21:32 2006 UTC revision 1.8 by mocchiut, Thu Nov 30 15:44:55 2006 UTC
# Line 2  Line 2 
2  #define ToFLevel2_h  #define ToFLevel2_h
3  //  //
4  #include <TObject.h>  #include <TObject.h>
5    #include <TArrayI.h>
6    #include <TArrayF.h>
7  #include <TClonesArray.h>  #include <TClonesArray.h>
8    
9    #include <ToFStruct.h>
10  //  //
11  // class which contains track related variables  // class which contains track related variables
12  //  //
# Line 13  Line 17 
17  #define ZTOF31 -23.49  #define ZTOF31 -23.49
18  #define ZTOF32 -24.34  #define ZTOF32 -24.34
19    
20    
21    class ToFPMT : public TObject {
22      
23     private:
24    
25     public:
26        Int_t pmt_id;
27        Float_t adc;
28        Float_t tdc_tw;
29        //
30        ToFPMT();
31        ToFPMT(const ToFPMT&);
32        //
33        ToFPMT* GetToFPMT(){return this;};
34        void Clear();
35    
36        ClassDef(ToFPMT,1);
37    };
38    
39    
40  class ToFTrkVar : public TObject {  class ToFTrkVar : public TObject {
41        
42   private:   private:
43    
44   public:   public:
45        //
46    Int_t trkseqno; // tracker entry coming from tracker, 100 if image track is used, -100 if the track is not consistent with MyDetector2 one    Int_t trkseqno; // tracker entry coming from tracker, 100 if image track is used, -100 if the track is not consistent with MyDetector2 one
47    //    //
48    Float_t beta_a[13];    Int_t npmttdc;
49    Float_t adc_c[12][4];    TArrayI pmttdc;
50        TArrayI tdcflag; // gf: 30 Nov 2006
51      Float_t beta[13];
52      //
53      Int_t npmtadc;
54      TArrayI pmtadc;
55      TArrayI adcflag; // gf: 30 Nov 2006    
56      TArrayF dedx;  
57      //
58      Float_t xtofpos[3];
59      Float_t ytofpos[3];
60    //    //
61    ToFTrkVar();    ToFTrkVar();
62    ToFTrkVar(const ToFTrkVar&);    ToFTrkVar(const ToFTrkVar&);
63        
64    ToFTrkVar* GetToFTrkVar(){return this;};    ToFTrkVar* GetToFTrkVar(){return this;};
65        void Clear();
66    
67    ClassDef(ToFTrkVar,1);    ClassDef(ToFTrkVar,1);
68    //    //
69  };  };
# Line 37  class ToFLevel2 : public TObject { Line 72  class ToFLevel2 : public TObject {
72   private:   private:
73        
74   public:   public:
75    Float_t xtofpos[3];    //
76    Float_t ytofpos[3];    TClonesArray *PMT; // class needed to store PMT hit informations
   Int_t  tof_i_flag[6];  
   Int_t tof_j_flag[6];  
   Float_t betatof_a[13];  
   Float_t adctof_c[12][4];  
   Float_t tdc_c[12][4];  
77    TClonesArray *ToFTrk; // track related variable class    TClonesArray *ToFTrk; // track related variable class
78      Int_t tof_j_flag[6];
79      Int_t unpackError;
80    //    //
81      Float_t GetdEdx(Int_t notrack, Int_t plane);
82    //    //
83    // methods to make life simplier during the analysis, returns a pointer to the ToFTrkVar class containing track related variables    // methods to make life simplier during the analysis, returns a pointer to the ToFTrkVar class containing track related variables
84    //    //
85    Int_t ntrk(){return ToFTrk->GetEntries();};    Int_t ntrk(){return ToFTrk->GetEntries();};
86        Int_t npmt(){return PMT->GetEntries();};
87          
88      //
89      void GetLevel2Struct(cToFLevel2 *) const;
90    //    //
91    ToFTrkVar *GetToFTrkVar(Int_t notrack);      ToFTrkVar *GetToFTrkVar(Int_t notrack);  
92      ToFPMT *GetToFPMT(Int_t nohit);  
93      Int_t GetPMTid(Int_t gg, Int_t hh);
94      TString GetPMTName(Int_t ind);
95      Int_t GetPlaneIndex(Int_t pmt_id);
96      void GetMatrix(Int_t notrack, Float_t adc[4][12], Float_t tdc[4][12]);
97      void GetPMTIndex(Int_t pmt_id, Int_t &gg, Int_t &hh);
98    //    //
99    // constructor    // constructor
100    //    //
# Line 61  class ToFLevel2 : public TObject { Line 102  class ToFLevel2 : public TObject {
102    //    //
103    //    //
104    ToFLevel2*   GetToFLevel2(){return this;};    ToFLevel2*   GetToFLevel2(){return this;};
105      Float_t      GetZTOF(Int_t plane_id){    Float_t      GetZTOF(Int_t plane_id){
106        switch(plane_id){        switch(plane_id){
107        case 11: return ZTOF11;        case 11: return ZTOF11;
108        case 12: return ZTOF12;        case 12: return ZTOF12;
# Line 71  class ToFLevel2 : public TObject { Line 112  class ToFLevel2 : public TObject {
112        case 32: return ZTOF32;        case 32: return ZTOF32;
113        default: return 0.;        default: return 0.;
114        };        };
115      };    };
116          
117      //      //
118      // Paddles position      // Paddles position
119      //      //
# Line 89  class ToFLevel2 : public TObject { Line 130  class ToFLevel2 : public TObject {
130      Int_t  GetToFPlaneIndex(Int_t plane_id);      Int_t  GetToFPlaneIndex(Int_t plane_id);
131      Bool_t HitPaddle(Int_t ,Int_t);      Bool_t HitPaddle(Int_t ,Int_t);
132      Int_t  GetNHitPaddles(Int_t plane);      Int_t  GetNHitPaddles(Int_t plane);
133          void Clear();
134      //      //
135      ClassDef(ToFLevel2,1);      ClassDef(ToFLevel2,2);
136  };  };
137    
138  #endif  #endif

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.23