Parent Directory | Revision Log
Tof code upgraded, new tof calibration
1 | pam-fi | 1.1 | #ifndef toflevel2struct_h |
2 | #define toflevel2struct_h | ||
3 | |||
4 | struct cToFLevel2 { | ||
5 | |||
6 | Int_t tof_j_flag[6]; | ||
7 | |||
8 | Int_t ntoftrk; | ||
9 | Int_t toftrkseqno[10]; | ||
10 | // | ||
11 | Int_t npmttdc[10]; | ||
12 | Int_t pmttdc[48][10]; | ||
13 | mocchiut | 1.2 | Int_t tdcflag[48][10]; // gf: 30 Nov 2006 |
14 | pam-fi | 1.1 | Float_t beta[13][10]; |
15 | // | ||
16 | Int_t npmtadc[10]; | ||
17 | Int_t pmtadc[48][10]; | ||
18 | mocchiut | 1.2 | Int_t adcflag[48][10]; // gf: 30 Nov 2006 |
19 | pam-fi | 1.1 | Float_t dedx[48][10]; |
20 | // | ||
21 | Float_t xtofpos[3][10]; | ||
22 | Float_t ytofpos[3][10]; | ||
23 | // | ||
24 | mocchiut | 1.3 | Float_t xtr_tof[6][10]; |
25 | Float_t ytr_tof[6][10]; | ||
26 | // | ||
27 | pam-fi | 1.1 | Int_t npmt; |
28 | Int_t pmt_id[48]; | ||
29 | Float_t adc[48]; | ||
30 | Float_t tdc_tw[48]; | ||
31 | |||
32 | void InitcToFLevel2(){ | ||
33 | |||
34 | for(Int_t i=0;i<6;i++) | ||
35 | tof_j_flag[i]=0; | ||
36 | ntoftrk=0; | ||
37 | npmt=0; | ||
38 | |||
39 | for(Int_t j=0;j<10;j++){ | ||
40 | toftrkseqno[j]=0; | ||
41 | npmttdc[j]=0; | ||
42 | npmtadc[j]=0; | ||
43 | for(Int_t i=0;i<3;i++){ | ||
44 | xtofpos[i][j]=0; | ||
45 | ytofpos[i][j]=0; | ||
46 | } | ||
47 | mocchiut | 1.3 | for(Int_t i=0;i<6;i++){ |
48 | xtr_tof[i][j]=0; | ||
49 | ytr_tof[i][j]=0; | ||
50 | } | ||
51 | pam-fi | 1.1 | for(Int_t i=0;i<13;i++) |
52 | beta[i][j]=0; | ||
53 | } | ||
54 | for(Int_t j=0;j<10;j++){ | ||
55 | for(Int_t i=0;i<48;i++){ | ||
56 | pmttdc[i][j]=0; | ||
57 | pmtadc[i][j]=0; | ||
58 | mocchiut | 1.2 | tdcflag[i][j]=0; // gf: 30 Nov 2006 |
59 | adcflag[i][j]=0; // gf: 30 Nov 2006 | ||
60 | pam-fi | 1.1 | dedx[i][j]=0; |
61 | } | ||
62 | } | ||
63 | for(Int_t j=0;j<48;j++){ | ||
64 | pmt_id[j]=0; | ||
65 | adc[j]=0; | ||
66 | tdc_tw[j]=0; | ||
67 | } | ||
68 | } | ||
69 | |||
70 | }; | ||
71 | |||
72 | #endif |
ViewVC Help | |
Powered by ViewVC 1.1.23 |