36 |
cont = false; |
cont = false; |
37 |
emulate18 = true; |
emulate18 = true; |
38 |
simulation = false; |
simulation = false; |
39 |
|
withtrk = true; |
40 |
|
rigdefault = 50.; |
41 |
|
nox = false; |
42 |
|
noy = false; |
43 |
// |
// |
44 |
Clear(); |
Clear(); |
45 |
// |
// |
135 |
Int_t S11 = 0; |
Int_t S11 = 0; |
136 |
Float_t tmptrigty = -1.; |
Float_t tmptrigty = -1.; |
137 |
Bool_t trackanyway = true; |
Bool_t trackanyway = true; |
138 |
Float_t rigdefault = 50.; |
// Float_t rigdefault = 50.; |
139 |
Bool_t hZn = true; |
Bool_t hZn = true; |
140 |
Bool_t withtrk = true; |
// Bool_t withtrk = true; |
141 |
Bool_t st = true; |
Bool_t st = true; |
142 |
Int_t ntrkentry = 0; |
Int_t ntrkentry = 0; |
143 |
TrkLevel2 *trk = L2->GetTrkLevel2(); |
TrkLevel2 *trk = L2->GetTrkLevel2(); |
157 |
if ( L2->GetCaloLevel2()->GetCaloTrkVar(mm)->trkseqno == -2 ) m2 = true; |
if ( L2->GetCaloLevel2()->GetCaloTrkVar(mm)->trkseqno == -2 ) m2 = true; |
158 |
if ( L2->GetCaloLevel2()->GetCaloTrkVar(mm)->trkseqno == -3 ) m3 = true; |
if ( L2->GetCaloLevel2()->GetCaloTrkVar(mm)->trkseqno == -3 ) m3 = true; |
159 |
}; |
}; |
160 |
|
if ( !withtrk ) m3 = true; |
161 |
// |
// |
162 |
if ( debug ) printf(" Fill estrip matrix needed to calculate variables \n"); |
if ( debug ) printf(" Fill estrip matrix needed to calculate variables \n"); |
163 |
// |
// |
172 |
// |
// |
173 |
mip = L2->GetCaloLevel1()->DecodeEstrip(i,view,plane,strip); |
mip = L2->GetCaloLevel1()->DecodeEstrip(i,view,plane,strip); |
174 |
// |
// |
175 |
|
// Mask x or y view if nox and/or noy are true (default false) |
176 |
|
// |
177 |
|
if ( nox && view == 0 ) mip = 0.; |
178 |
|
if ( noy && view == 1 ) mip = 0.; |
179 |
|
// |
180 |
// Selection mode: fill the matrix only for plane < (22 - N) REMEMBER N = number of W planes to be used as presampler, ie if N = 2 then we want to use planes from 0 to 19 |
// Selection mode: fill the matrix only for plane < (22 - N) REMEMBER N = number of W planes to be used as presampler, ie if N = 2 then we want to use planes from 0 to 19 |
181 |
// included so plane < (22 - 2) |
// included so plane < (22 - 2) |
182 |
// |
// |
258 |
// |
// |
259 |
event->clevel1->good2 = 1; |
event->clevel1->good2 = 1; |
260 |
// |
// |
261 |
|
// copy variables calculated during calibration process which is skipped here... |
262 |
|
// |
263 |
|
event->clevel2->good = L2->GetCaloLevel2()->good; |
264 |
|
memcpy(event->clevel2->perr,L2->GetCaloLevel2()->perr,sizeof(L2->GetCaloLevel2()->perr)); |
265 |
|
memcpy(event->clevel2->swerr,L2->GetCaloLevel2()->swerr,sizeof(L2->GetCaloLevel2()->swerr)); |
266 |
|
memcpy(event->clevel2->crc,L2->GetCaloLevel2()->crc,sizeof(L2->GetCaloLevel2()->crc)); |
267 |
|
event->clevel2->selftrigger = L2->GetCaloLevel2()->selftrigger; |
268 |
|
// |
269 |
// Calculate variables common to all tracks (qtot, nstrip, etc.) |
// Calculate variables common to all tracks (qtot, nstrip, etc.) |
270 |
// |
// |
271 |
if ( debug ) printf("1 Call GetCommonVar() \n"); |
if ( debug ) printf("1 Call GetCommonVar() \n"); |