1 |
mocchiut |
1.1 |
#include <TTree.h> |
2 |
|
|
|
3 |
|
|
typedef struct CaLevel1 { |
4 |
|
|
Double_t al_p[5][2]; |
5 |
|
|
Float_t estrip[96][22][2]; |
6 |
|
|
Float_t paw; |
7 |
|
|
Int_t good2; |
8 |
|
|
Int_t trkchi2; |
9 |
|
|
Float_t xalig; |
10 |
|
|
Float_t yalig; |
11 |
|
|
Float_t zalig; |
12 |
|
|
} clevel1; |
13 |
|
|
|
14 |
|
|
typedef struct CaLevel2 { |
15 |
|
|
Int_t OBT; |
16 |
|
|
Int_t pkt_num; |
17 |
|
|
Int_t pro_num; |
18 |
|
|
Float_t trigty; |
19 |
|
|
Int_t good; |
20 |
|
|
Int_t perr[4]; |
21 |
|
|
Int_t swerr[4]; |
22 |
|
|
Int_t crc[4]; |
23 |
|
|
Float_t nstrip; |
24 |
|
|
Float_t qtot; |
25 |
|
|
Float_t ncore; |
26 |
|
|
Float_t qcore; |
27 |
|
|
Float_t impx; |
28 |
|
|
Float_t impy; |
29 |
|
|
Float_t tanx; |
30 |
|
|
Float_t tany; |
31 |
|
|
Float_t nint; |
32 |
|
|
Float_t ncyl; |
33 |
|
|
Float_t qcyl; |
34 |
|
|
Float_t qtrack; |
35 |
|
|
Float_t qmax; |
36 |
|
|
Float_t nx22; |
37 |
|
|
Float_t qx22; |
38 |
|
|
Float_t qq[4]; |
39 |
|
|
Float_t qtrackx; |
40 |
|
|
Float_t qtracky; |
41 |
|
|
Float_t dxtrack; |
42 |
|
|
Float_t dytrack; |
43 |
|
|
Float_t qlast; |
44 |
|
|
Float_t nlast; |
45 |
|
|
Float_t qpre; |
46 |
|
|
Float_t npre; |
47 |
|
|
Float_t qpresh; |
48 |
|
|
Float_t npresh; |
49 |
|
|
Float_t qlow; |
50 |
|
|
Float_t nlow; |
51 |
|
|
Float_t qtr; |
52 |
|
|
Float_t ntr; |
53 |
|
|
Float_t planetot; |
54 |
|
|
Float_t qmean; |
55 |
|
|
Float_t varcfit[2]; |
56 |
|
|
Int_t npcfit[2]; |
57 |
|
|
Float_t thex; |
58 |
|
|
Float_t they; |
59 |
|
|
Int_t cibar[22][2]; |
60 |
|
|
Int_t tibar[22][2]; |
61 |
|
|
Float_t cbar[22][2]; |
62 |
|
|
Float_t tbar[22][2]; |
63 |
|
|
} clevel2; |
64 |
|
|
|
65 |
|
|
void setcalolevel2(TTree *tree, CaLevel2 & clevel2){ |
66 |
|
|
tree->SetBranchAddress("OBT",&clevel2.OBT); |
67 |
|
|
tree->SetBranchAddress("pkt_num",&clevel2.pkt_num); |
68 |
|
|
tree->SetBranchAddress("pro_num",&clevel2.pro_num); |
69 |
|
|
tree->SetBranchAddress("trigty",&clevel2.trigty); |
70 |
|
|
tree->SetBranchAddress("good",&clevel2.good); |
71 |
|
|
tree->SetBranchAddress("perr",clevel2.perr); |
72 |
|
|
tree->SetBranchAddress("swerr",clevel2.swerr); |
73 |
|
|
tree->SetBranchAddress("crc",clevel2.crc); |
74 |
|
|
tree->SetBranchAddress("nstrip",&clevel2.nstrip); |
75 |
|
|
tree->SetBranchAddress("qtot",&clevel2.qtot); |
76 |
|
|
tree->SetBranchAddress("ncore",&clevel2.ncore); |
77 |
|
|
tree->SetBranchAddress("qcore",&clevel2.qcore); |
78 |
|
|
tree->SetBranchAddress("impx",&clevel2.impx); |
79 |
|
|
tree->SetBranchAddress("impy",&clevel2.impy); |
80 |
|
|
tree->SetBranchAddress("tanx",&clevel2.tanx); |
81 |
|
|
tree->SetBranchAddress("tany",&clevel2.tany); |
82 |
|
|
tree->SetBranchAddress("nint",&clevel2.nint); |
83 |
|
|
tree->SetBranchAddress("ncyl",&clevel2.ncyl); |
84 |
|
|
tree->SetBranchAddress("qcyl",&clevel2.qcyl); |
85 |
|
|
tree->SetBranchAddress("qtrack",&clevel2.qtrack); |
86 |
|
|
tree->SetBranchAddress("qmax",&clevel2.qmax); |
87 |
|
|
tree->SetBranchAddress("nx22",&clevel2.nx22); |
88 |
|
|
tree->SetBranchAddress("qx22",&clevel2.nx22); |
89 |
|
|
tree->SetBranchAddress("qq",clevel2.qq); |
90 |
|
|
tree->SetBranchAddress("qtrackx",&clevel2.qtrackx); |
91 |
|
|
tree->SetBranchAddress("qtracky",&clevel2.qtracky); |
92 |
|
|
tree->SetBranchAddress("dxtrack",&clevel2.dxtrack); |
93 |
|
|
tree->SetBranchAddress("dytrack",&clevel2.dytrack); |
94 |
|
|
tree->SetBranchAddress("qlast",&clevel2.qlast); |
95 |
|
|
tree->SetBranchAddress("nlast",&clevel2.nlast); |
96 |
|
|
tree->SetBranchAddress("qpre",&clevel2.qpre); |
97 |
|
|
tree->SetBranchAddress("npre",&clevel2.npre); |
98 |
|
|
tree->SetBranchAddress("qpresh",&clevel2.qpresh); |
99 |
|
|
tree->SetBranchAddress("npresh",&clevel2.npresh); |
100 |
|
|
tree->SetBranchAddress("qlow",&clevel2.qlow); |
101 |
|
|
tree->SetBranchAddress("nlow",&clevel2.nlow); |
102 |
|
|
tree->SetBranchAddress("qtr",&clevel2.qtr); |
103 |
|
|
tree->SetBranchAddress("ntr",&clevel2.ntr); |
104 |
|
|
tree->SetBranchAddress("planetot",&clevel2.planetot); |
105 |
|
|
tree->SetBranchAddress("qmean",&clevel2.qmean); |
106 |
|
|
tree->SetBranchAddress("varcfit",clevel2.varcfit); |
107 |
|
|
tree->SetBranchAddress("npcfit",clevel2.npcfit); |
108 |
|
|
tree->SetBranchAddress("thex",&clevel2.thex); |
109 |
|
|
tree->SetBranchAddress("they",&clevel2.they); |
110 |
|
|
tree->SetBranchAddress("cibar",clevel2.cibar); |
111 |
|
|
tree->SetBranchAddress("tibar",clevel2.tibar); |
112 |
|
|
tree->SetBranchAddress("cbar",clevel2.cbar); |
113 |
|
|
tree->SetBranchAddress("tbar",clevel2.tbar); |
114 |
|
|
} |
115 |
|
|
|
116 |
|
|
//void setcalolevel2(TTree *tree, CaLevel2 *clevel2){ |
117 |
|
|
// tree->SetBranchAddress("OBT",&clevel2->OBT); |
118 |
|
|
// tree->SetBranchAddress("pkt_num",&clevel2->pkt_num); |
119 |
|
|
// tree->SetBranchAddress("pro_num",&clevel2->pro_num); |
120 |
|
|
// tree->SetBranchAddress("trigty",&clevel2->trigty); |
121 |
|
|
// tree->SetBranchAddress("good",&clevel2->good); |
122 |
|
|
// tree->SetBranchAddress("perr",clevel2->perr); |
123 |
|
|
// tree->SetBranchAddress("swerr",clevel2->swerr); |
124 |
|
|
// tree->SetBranchAddress("crc",clevel2->crc); |
125 |
|
|
// tree->SetBranchAddress("nstrip",&clevel2->nstrip); |
126 |
|
|
// tree->SetBranchAddress("qtot",&clevel2->qtot); |
127 |
|
|
//tree->SetBranchAddress("ncore",&clevel2->ncore); |
128 |
|
|
// tree->SetBranchAddress("qcore",&clevel2->qcore); |
129 |
|
|
// tree->SetBranchAddress("impx",&clevel2->impx); |
130 |
|
|
// tree->SetBranchAddress("impy",&clevel2->impy); |
131 |
|
|
// tree->SetBranchAddress("tanx",&clevel2->tanx); |
132 |
|
|
// tree->SetBranchAddress("tany",&clevel2->tany); |
133 |
|
|
// tree->SetBranchAddress("nint",&clevel2->nint); |
134 |
|
|
// tree->SetBranchAddress("ncyl",&clevel2->ncyl); |
135 |
|
|
// tree->SetBranchAddress("qcyl",&clevel2->qcyl); |
136 |
|
|
// tree->SetBranchAddress("qtrack",&clevel2->qtrack); |
137 |
|
|
// tree->SetBranchAddress("qmax",&clevel2->qmax); |
138 |
|
|
// tree->SetBranchAddress("nx22",&clevel2->nx22); |
139 |
|
|
// tree->SetBranchAddress("qx22",&clevel2->nx22); |
140 |
|
|
// tree->SetBranchAddress("qq",clevel2->qq); |
141 |
|
|
// tree->SetBranchAddress("qtrackx",&clevel2->qtrackx); |
142 |
|
|
// tree->SetBranchAddress("qtracky",&clevel2->qtracky); |
143 |
|
|
// tree->SetBranchAddress("dxtrack",&clevel2->dxtrack); |
144 |
|
|
// tree->SetBranchAddress("dytrack",&clevel2->dytrack); |
145 |
|
|
// tree->SetBranchAddress("qlast",&clevel2->qlast); |
146 |
|
|
// tree->SetBranchAddress("nlast",&clevel2->nlast); |
147 |
|
|
//tree->SetBranchAddress("qpre",&clevel2->qpre); |
148 |
|
|
// tree->SetBranchAddress("npre",&clevel2->npre); |
149 |
|
|
// tree->SetBranchAddress("qpresh",&clevel2->qpresh); |
150 |
|
|
// tree->SetBranchAddress("npresh",&clevel2->npresh); |
151 |
|
|
// tree->SetBranchAddress("qlow",&clevel2->qlow); |
152 |
|
|
// tree->SetBranchAddress("nlow",&clevel2->nlow); |
153 |
|
|
// tree->SetBranchAddress("qtr",&clevel2->qtr); |
154 |
|
|
// tree->SetBranchAddress("ntr",&clevel2->ntr); |
155 |
|
|
// tree->SetBranchAddress("planetot",&clevel2->planetot); |
156 |
|
|
//tree->SetBranchAddress("qmean",&clevel2->qmean); |
157 |
|
|
// tree->SetBranchAddress("varcfit",clevel2->varcfit); |
158 |
|
|
// tree->SetBranchAddress("npcfit",clevel2->npcfit); |
159 |
|
|
//tree->SetBranchAddress("cibar",clevel2->cibar); |
160 |
|
|
// tree->SetBranchAddress("tibar",clevel2->tibar); |
161 |
|
|
// tree->SetBranchAddress("cbar",clevel2->cbar); |
162 |
|
|
// tree->SetBranchAddress("tbar",clevel2->tbar); |
163 |
|
|
//} |