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

Annotation of /DarthVader/ToFLevel2/inc/ToFLevel2.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Fri Jun 30 09:22:02 2006 UTC (18 years, 5 months ago) by mocchiut
Branch: MAIN
Changes since 1.2: +1 -1 lines
File MIME type: text/plain
Memory leak bug fixed

1 mocchiut 1.1 #ifndef ToFLevel2_h
2     #define ToFLevel2_h
3     //
4     #include <TObject.h>
5     #include <TClonesArray.h>
6     //
7     // class which contains track related variables
8     //
9     #define ZTOF11 53.74
10     #define ZTOF12 53.04
11     #define ZTOF21 23.94
12     #define ZTOF22 23.44
13     #define ZTOF31 -23.49
14     #define ZTOF32 -24.34
15    
16     class ToFTrkVar : public TObject {
17    
18     private:
19    
20     public:
21     Int_t trkseqno; // tracker entry coming from tracker, 100 if image track is used, -100 if the track is not consistent with MyDetector2 one
22     //
23     Float_t beta_a[13];
24     Float_t adc_c[12][4];
25    
26     //
27     ToFTrkVar();
28     ToFTrkVar(const ToFTrkVar&);
29    
30     ToFTrkVar* GetToFTrkVar(){return this;};
31    
32     ClassDef(ToFTrkVar,1);
33     //
34     };
35    
36     class ToFLevel2 : public TObject {
37     private:
38    
39     public:
40     Float_t xtofpos[3];
41     Float_t ytofpos[3];
42     Int_t tof_i_flag[6];
43     Int_t tof_j_flag[6];
44     Float_t betatof_a[13];
45     Float_t adctof_c[12][4];
46     Float_t tdc_c[12][4];
47     TClonesArray *ToFTrk; // track related variable class
48     //
49     //
50     // methods to make life simplier during the analysis, returns a pointer to the ToFTrkVar class containing track related variables
51     //
52     Int_t ntrk(){return ToFTrk->GetEntries();};
53    
54    
55     //
56     ToFTrkVar *GetToFTrkVar(Int_t notrack);
57     //
58     // constructor
59     //
60     ToFLevel2();
61     //
62     //
63     ToFLevel2* GetToFLevel2(){return this;};
64     Float_t GetZTOF(Int_t plane_id){
65     switch(plane_id){
66     case 11: return ZTOF11;
67     case 12: return ZTOF12;
68     case 21: return ZTOF21;
69     case 22: return ZTOF22;
70     case 31: return ZTOF31;
71     case 32: return ZTOF32;
72     default: return 0.;
73     };
74     };
75    
76     //
77     // Paddles position
78     //
79     /*
80     S11 8 paddles 33.0 x 5.1 cm
81     S12 6 paddles 40.8 x 5.5 cm
82     S21 2 paddles 18.0 x 7.5 cm
83     S22 2 paddles 15.0 x 9.0 cm
84     S31 3 paddles 15.0 x 6.0 cm
85     S32 3 paddles 18.0 x 5.0 cm
86     */
87    
88     Int_t GetToFPlaneID(Int_t ip);
89     Int_t GetToFPlaneIndex(Int_t plane_id);
90     Bool_t HitPaddle(Int_t ,Int_t);
91     Int_t GetNHitPaddles(Int_t plane);
92 mocchiut 1.3 void Clear();
93 mocchiut 1.1 //
94     ClassDef(ToFLevel2,1);
95     };
96    
97     #endif

  ViewVC Help
Powered by ViewVC 1.1.23