36 |
qlow = 0.; |
qlow = 0.; |
37 |
nlow = 0; |
nlow = 0; |
38 |
dX0l = 0.; |
dX0l = 0.; |
39 |
for (Int_t i = 0; i<2 ; i++){ |
memset(tbar, 0, 2*22*sizeof(Float_t)); |
40 |
for ( Int_t j = 0; j<22; j++){ |
memset(tibar, 0, 2*22*sizeof(Int_t)); |
|
tibar[j][i] = 0; |
|
|
tbar[j][i] = 0.; |
|
|
}; |
|
|
}; |
|
41 |
} |
} |
42 |
|
|
43 |
/** |
/** |
90 |
qx22 = 0.; |
qx22 = 0.; |
91 |
elen = 0.; |
elen = 0.; |
92 |
selen = 0.; |
selen = 0.; |
93 |
for (Int_t i = 0; i<4 ; i++){ |
memset(perr, 0, 4*sizeof(Int_t)); |
94 |
qq[i] = 0.; |
memset(swerr, 0, 4*sizeof(Int_t)); |
95 |
perr[i] = 0; |
memset(crc, 0, 4*sizeof(Int_t)); |
96 |
swerr[i] = 0; |
memset(qq, 0, 4*sizeof(Int_t)); |
97 |
crc[i] = 0; |
memset(varcfit, 0, 2*sizeof(Float_t)); |
98 |
if ( i < 2 ){ |
memset(npcfit, 0, 2*sizeof(Int_t)); |
99 |
planemax[i] = 0; |
memset(planemax, 0, 2*sizeof(Int_t)); |
100 |
varcfit[i] = 0.; |
memset(cibar, 0, 2*22*sizeof(Int_t)); |
101 |
npcfit[i] = 0; |
memset(cbar, 0, 2*22*sizeof(Float_t)); |
|
for ( Int_t j = 0; j<22; j++){ |
|
|
cibar[j][i] = 0; |
|
|
cbar[j][i] = 0.; |
|
|
}; |
|
|
}; |
|
|
}; |
|
102 |
good = 0; |
good = 0; |
103 |
selftrigger = 0; |
selftrigger = 0; |
104 |
estrip = TArrayF(0,NULL); |
estrip = TArrayF(0,NULL); |
119 |
qx22 = 0.; |
qx22 = 0.; |
120 |
elen = 0.; |
elen = 0.; |
121 |
selen = 0.; |
selen = 0.; |
122 |
for (Int_t i = 0; i<4 ; i++){ |
memset(perr, 0, 4*sizeof(Int_t)); |
123 |
qq[i] = 0.; |
memset(swerr, 0, 4*sizeof(Int_t)); |
124 |
perr[i] = 0; |
memset(crc, 0, 4*sizeof(Int_t)); |
125 |
swerr[i] = 0; |
memset(qq, 0, 4*sizeof(Int_t)); |
126 |
crc[i] = 0; |
memset(varcfit, 0, 2*sizeof(Float_t)); |
127 |
if ( i < 2 ){ |
memset(npcfit, 0, 2*sizeof(Int_t)); |
128 |
planemax[i] = 0; |
memset(planemax, 0, 2*sizeof(Int_t)); |
129 |
varcfit[i] = 0.; |
memset(cibar, 0, 2*22*sizeof(Int_t)); |
130 |
npcfit[i] = 0; |
memset(cbar, 0, 2*22*sizeof(Float_t)); |
|
for ( Int_t j = 0; j<22; j++){ |
|
|
cibar[j][i] = 0; |
|
|
cbar[j][i] = 0.; |
|
|
}; |
|
|
}; |
|
|
}; |
|
131 |
good = 0; |
good = 0; |
132 |
selftrigger = 0; |
selftrigger = 0; |
133 |
estrip = TArrayF(0,NULL); |
estrip.Reset(); |
134 |
}; |
}; |
135 |
|
|
136 |
|
|
137 |
|
/** |
138 |
|
* Fills a struct cCaloLevel2 with values from a CaloLevel2 object (to put data into a F77 common). |
139 |
|
*/ |
140 |
|
void CaloLevel2::GetLevel2Struct(cCaloLevel2 *l2) const { |
141 |
|
|
142 |
|
l2->good = good; |
143 |
|
l2->selftrigger = selftrigger; |
144 |
|
l2->nstrip = nstrip; |
145 |
|
l2->nx22 = nx22; |
146 |
|
l2->qtot = qtot; |
147 |
|
l2->qx22 = qx22; |
148 |
|
l2->qmax = qmax; |
149 |
|
l2->impx = impx; |
150 |
|
l2->impy = impy; |
151 |
|
l2->tanx = tanx; |
152 |
|
l2->tany = tany; |
153 |
|
l2->elen = elen; |
154 |
|
l2->selen = selen; |
155 |
|
|
156 |
|
for(Int_t i=0;i<2;i++){ |
157 |
|
l2->planemax[i] = planemax[i]; |
158 |
|
l2->varcfit[i] = varcfit[i]; |
159 |
|
l2->npcfit[i] = npcfit[i]; |
160 |
|
} |
161 |
|
for(Int_t i=0;i<4;i++){ |
162 |
|
l2->perr[i] = perr[i]; |
163 |
|
l2->swerr[i] = swerr[i]; |
164 |
|
l2->calcrc[i] = crc[i]; |
165 |
|
l2->qq[i] = qq[i]; |
166 |
|
} |
167 |
|
|
168 |
|
l2->calntrk = CaloTrk->GetEntries(); |
169 |
|
|
170 |
|
for(Int_t i=0;i<l2->calntrk;i++){ |
171 |
|
l2->caltrkseqno[i] = ((CaloTrkVar *)CaloTrk->At(i))->trkseqno; |
172 |
|
l2->ncore[i] = ((CaloTrkVar *)CaloTrk->At(i))->ncore; |
173 |
|
l2->noint[i] = ((CaloTrkVar *)CaloTrk->At(i))->noint; |
174 |
|
l2->ncyl[i] = ((CaloTrkVar *)CaloTrk->At(i))->ncyl; |
175 |
|
l2->nlast[i] = ((CaloTrkVar *)CaloTrk->At(i))->nlast; |
176 |
|
l2->npre[i] = ((CaloTrkVar *)CaloTrk->At(i))->npre; |
177 |
|
l2->npresh[i] = ((CaloTrkVar *)CaloTrk->At(i))->npresh; |
178 |
|
l2->ntr[i] = ((CaloTrkVar *)CaloTrk->At(i))->ntr; |
179 |
|
l2->planetot[i] = ((CaloTrkVar *)CaloTrk->At(i))->planetot; |
180 |
|
l2->nlow[i] = ((CaloTrkVar *)CaloTrk->At(i))->nlow; |
181 |
|
l2->qcore[i] =((CaloTrkVar *)CaloTrk->At(i))->qcore ; |
182 |
|
l2->qcyl[i] = ((CaloTrkVar *)CaloTrk->At(i))->qcyl; |
183 |
|
l2->qlast[i] = ((CaloTrkVar *)CaloTrk->At(i))->qlast; |
184 |
|
l2->qpre[i] = ((CaloTrkVar *)CaloTrk->At(i))->qpre; |
185 |
|
l2->qpresh[i] = ((CaloTrkVar *)CaloTrk->At(i))->qpresh; |
186 |
|
l2->qtr[i] = ((CaloTrkVar *)CaloTrk->At(i))->qtr; |
187 |
|
l2->qtrack[i] = ((CaloTrkVar *)CaloTrk->At(i))->qtrack; |
188 |
|
l2->qtrackx[i] = ((CaloTrkVar *)CaloTrk->At(i))->qtrackx; |
189 |
|
l2->qtracky[i] = ((CaloTrkVar *)CaloTrk->At(i))->qtracky; |
190 |
|
l2->dxtrack[i] = ((CaloTrkVar *)CaloTrk->At(i))->dxtrack; |
191 |
|
l2->dytrack[i] = ((CaloTrkVar *)CaloTrk->At(i))->dytrack; |
192 |
|
l2->qmean[i] = ((CaloTrkVar *)CaloTrk->At(i))->qmean; |
193 |
|
l2->qlow[i] = ((CaloTrkVar *)CaloTrk->At(i))->qlow; |
194 |
|
l2->dX0l[i] = ((CaloTrkVar *)CaloTrk->At(i))->dX0l; |
195 |
|
for (Int_t j=0; j<2; j++){ |
196 |
|
for (Int_t k=0; k<22; k++){ |
197 |
|
l2->tbar[i][k][j] = ((CaloTrkVar *)CaloTrk->At(i))->tbar[k][j]; |
198 |
|
}; |
199 |
|
}; |
200 |
|
} |
201 |
|
|
202 |
|
} |
203 |
|
|
204 |
/** |
/** |
205 |
* Gives the detected energy for the given strip once loaded the event |
* Gives the detected energy for the given strip once loaded the event |
206 |
**/ |
**/ |