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

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

  ViewVC Help
Powered by ViewVC 1.1.23