12 |
* CaloTrkVar constructor |
* CaloTrkVar constructor |
13 |
**/ |
**/ |
14 |
CaloTrkVar::CaloTrkVar() { |
CaloTrkVar::CaloTrkVar() { |
15 |
|
this->Clear(); |
16 |
|
}; |
17 |
|
|
18 |
|
/** |
19 |
|
* Clear variables |
20 |
|
**/ |
21 |
|
void CaloTrkVar::Clear() { |
22 |
trkseqno = 0; |
trkseqno = 0; |
23 |
noint = 0; |
noint = 0; |
24 |
ncore = 0; |
ncore = 0; |
43 |
qlow = 0.; |
qlow = 0.; |
44 |
nlow = 0; |
nlow = 0; |
45 |
dX0l = 0.; |
dX0l = 0.; |
46 |
for (Int_t i = 0; i<2 ; i++){ |
memset(tbar, 0, 2*22*sizeof(Float_t)); |
47 |
for ( Int_t j = 0; j<22; j++){ |
memset(tibar, 0, 2*22*sizeof(Int_t)); |
|
tibar[j][i] = 0; |
|
|
tbar[j][i] = 0.; |
|
|
}; |
|
|
}; |
|
48 |
} |
} |
49 |
|
|
50 |
/** |
/** |
85 |
CaloLevel2::CaloLevel2() { |
CaloLevel2::CaloLevel2() { |
86 |
// |
// |
87 |
CaloTrk = new TClonesArray("CaloTrkVar",1); |
CaloTrk = new TClonesArray("CaloTrkVar",1); |
|
// |
|
|
nstrip = 0; |
|
|
qtot = 0.; |
|
|
impx = 0.; |
|
|
impy = 0.; |
|
|
tanx = 0.; |
|
|
tany = 0.; |
|
|
qmax = 0.; |
|
|
nx22 = 0; |
|
|
qx22 = 0.; |
|
|
elen = 0.; |
|
|
selen = 0.; |
|
|
for (Int_t i = 0; i<4 ; i++){ |
|
|
qq[i] = 0.; |
|
|
perr[i] = 0; |
|
|
swerr[i] = 0; |
|
|
crc[i] = 0; |
|
|
if ( i < 2 ){ |
|
|
planemax[i] = 0; |
|
|
varcfit[i] = 0.; |
|
|
npcfit[i] = 0; |
|
|
for ( Int_t j = 0; j<22; j++){ |
|
|
cibar[j][i] = 0; |
|
|
cbar[j][i] = 0.; |
|
|
}; |
|
|
}; |
|
|
}; |
|
|
good = 0; |
|
|
selftrigger = 0; |
|
88 |
estrip = TArrayF(0,NULL); |
estrip = TArrayF(0,NULL); |
89 |
|
// |
90 |
|
this->Clear(); |
91 |
|
// |
92 |
}; |
}; |
93 |
|
|
94 |
void CaloLevel2::Clear() { |
void CaloLevel2::Clear() { |
106 |
qx22 = 0.; |
qx22 = 0.; |
107 |
elen = 0.; |
elen = 0.; |
108 |
selen = 0.; |
selen = 0.; |
109 |
for (Int_t i = 0; i<4 ; i++){ |
memset(perr, 0, 4*sizeof(Int_t)); |
110 |
qq[i] = 0.; |
memset(swerr, 0, 4*sizeof(Int_t)); |
111 |
perr[i] = 0; |
memset(crc, 0, 4*sizeof(Int_t)); |
112 |
swerr[i] = 0; |
memset(qq, 0, 4*sizeof(Int_t)); |
113 |
crc[i] = 0; |
memset(varcfit, 0, 2*sizeof(Float_t)); |
114 |
if ( i < 2 ){ |
memset(npcfit, 0, 2*sizeof(Int_t)); |
115 |
planemax[i] = 0; |
memset(planemax, 0, 2*sizeof(Int_t)); |
116 |
varcfit[i] = 0.; |
memset(cibar, 0, 2*22*sizeof(Int_t)); |
117 |
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.; |
|
|
}; |
|
|
}; |
|
|
}; |
|
118 |
good = 0; |
good = 0; |
119 |
selftrigger = 0; |
selftrigger = 0; |
|
// estrip = TArrayF(0,NULL); |
|
120 |
estrip.Reset(); |
estrip.Reset(); |
121 |
}; |
}; |
122 |
|
|
179 |
l2->qmean[i] = ((CaloTrkVar *)CaloTrk->At(i))->qmean; |
l2->qmean[i] = ((CaloTrkVar *)CaloTrk->At(i))->qmean; |
180 |
l2->qlow[i] = ((CaloTrkVar *)CaloTrk->At(i))->qlow; |
l2->qlow[i] = ((CaloTrkVar *)CaloTrk->At(i))->qlow; |
181 |
l2->dX0l[i] = ((CaloTrkVar *)CaloTrk->At(i))->dX0l; |
l2->dX0l[i] = ((CaloTrkVar *)CaloTrk->At(i))->dX0l; |
182 |
|
for (Int_t j=0; j<2; j++){ |
183 |
|
for (Int_t k=0; k<22; k++){ |
184 |
|
l2->tbar[i][k][j] = ((CaloTrkVar *)CaloTrk->At(i))->tbar[k][j]; |
185 |
|
}; |
186 |
|
}; |
187 |
} |
} |
188 |
|
|
189 |
} |
} |