150 |
estrip.Reset(); |
estrip.Reset(); |
151 |
}; |
}; |
152 |
|
|
153 |
|
|
154 |
|
/** |
155 |
|
* Fills a struct cCaloLevel2 with values from a CaloLevel2 object (to put data into a F77 common). |
156 |
|
*/ |
157 |
|
void CaloLevel2::GetLevel2Struct(cCaloLevel2 *l2) const { |
158 |
|
|
159 |
|
l2->good = good; |
160 |
|
l2->selftrigger = selftrigger; |
161 |
|
l2->nstrip = nstrip; |
162 |
|
l2->nx22 = nx22; |
163 |
|
l2->qtot = qtot; |
164 |
|
l2->qx22 = qx22; |
165 |
|
l2->qmax = qmax; |
166 |
|
l2->impx = impx; |
167 |
|
l2->impy = impy; |
168 |
|
l2->tanx = tanx; |
169 |
|
l2->tany = tany; |
170 |
|
l2->elen = elen; |
171 |
|
l2->selen = selen; |
172 |
|
|
173 |
|
for(Int_t i=0;i<2;i++){ |
174 |
|
l2->planemax[i] = planemax[i]; |
175 |
|
l2->varcfit[i] = varcfit[i]; |
176 |
|
l2->npcfit[i] = npcfit[i]; |
177 |
|
} |
178 |
|
for(Int_t i=0;i<4;i++){ |
179 |
|
l2->perr[i] = perr[i]; |
180 |
|
l2->swerr[i] = swerr[i]; |
181 |
|
l2->calcrc[i] = crc[i]; |
182 |
|
l2->qq[i] = qq[i]; |
183 |
|
} |
184 |
|
|
185 |
|
l2->calntrk = CaloTrk->GetEntries(); |
186 |
|
|
187 |
|
for(Int_t i=0;i<l2->calntrk;i++){ |
188 |
|
l2->caltrkseqno[i] = ((CaloTrkVar *)CaloTrk->At(i))->trkseqno; |
189 |
|
l2->ncore[i] = ((CaloTrkVar *)CaloTrk->At(i))->ncore; |
190 |
|
l2->noint[i] = ((CaloTrkVar *)CaloTrk->At(i))->noint; |
191 |
|
l2->ncyl[i] = ((CaloTrkVar *)CaloTrk->At(i))->ncyl; |
192 |
|
l2->nlast[i] = ((CaloTrkVar *)CaloTrk->At(i))->nlast; |
193 |
|
l2->npre[i] = ((CaloTrkVar *)CaloTrk->At(i))->npre; |
194 |
|
l2->npresh[i] = ((CaloTrkVar *)CaloTrk->At(i))->npresh; |
195 |
|
l2->ntr[i] = ((CaloTrkVar *)CaloTrk->At(i))->ntr; |
196 |
|
l2->planetot[i] = ((CaloTrkVar *)CaloTrk->At(i))->planetot; |
197 |
|
l2->nlow[i] = ((CaloTrkVar *)CaloTrk->At(i))->nlow; |
198 |
|
l2->qcore[i] =((CaloTrkVar *)CaloTrk->At(i))->qcore ; |
199 |
|
l2->qcyl[i] = ((CaloTrkVar *)CaloTrk->At(i))->qcyl; |
200 |
|
l2->qlast[i] = ((CaloTrkVar *)CaloTrk->At(i))->qlast; |
201 |
|
l2->qpre[i] = ((CaloTrkVar *)CaloTrk->At(i))->qpre; |
202 |
|
l2->qpresh[i] = ((CaloTrkVar *)CaloTrk->At(i))->qpresh; |
203 |
|
l2->qtr[i] = ((CaloTrkVar *)CaloTrk->At(i))->qtr; |
204 |
|
l2->qtrack[i] = ((CaloTrkVar *)CaloTrk->At(i))->qtrack; |
205 |
|
l2->qtrackx[i] = ((CaloTrkVar *)CaloTrk->At(i))->qtrackx; |
206 |
|
l2->qtracky[i] = ((CaloTrkVar *)CaloTrk->At(i))->qtracky; |
207 |
|
l2->dxtrack[i] = ((CaloTrkVar *)CaloTrk->At(i))->dxtrack; |
208 |
|
l2->dytrack[i] = ((CaloTrkVar *)CaloTrk->At(i))->dytrack; |
209 |
|
l2->qmean[i] = ((CaloTrkVar *)CaloTrk->At(i))->qmean; |
210 |
|
l2->qlow[i] = ((CaloTrkVar *)CaloTrk->At(i))->qlow; |
211 |
|
l2->dX0l[i] = ((CaloTrkVar *)CaloTrk->At(i))->dX0l; |
212 |
|
} |
213 |
|
|
214 |
|
} |
215 |
|
|
216 |
/** |
/** |
217 |
* Gives the detected energy for the given strip once loaded the event |
* Gives the detected energy for the given strip once loaded the event |
218 |
**/ |
**/ |