36 |
sel = true; |
sel = true; |
37 |
cont = false; |
cont = false; |
38 |
emulate18 = true; |
emulate18 = true; |
39 |
|
usepl18x = false; |
40 |
simulation = false; |
simulation = false; |
41 |
withtrk = true; |
withtrk = true; |
42 |
rigdefault = 50.; |
rigdefault = 50.; |
73 |
// |
// |
74 |
} |
} |
75 |
|
|
76 |
|
CaloTrkVar* CaloPreSampler::GetCaloTrack(Int_t t){ |
77 |
|
this->Process(); |
78 |
|
if ( t < 0 ) return pcalo->GetCaloStoredTrack(t); |
79 |
|
if ( L2->GetTrack(t) ){ |
80 |
|
return pcalo->GetCaloStoredTrack(L2->GetTrack(t)->GetTrkTrack()->GetSeqNo()); |
81 |
|
}; |
82 |
|
return NULL; |
83 |
|
} |
84 |
|
|
85 |
void CaloPreSampler::SetNoWpreSampler(Int_t n){ |
void CaloPreSampler::SetNoWpreSampler(Int_t n){ |
86 |
if ( NC+n < 23 ){ |
if ( NC+n < 23 ){ |
87 |
N = n; |
N = n; |
177 |
Bool_t newentry = false; |
Bool_t newentry = false; |
178 |
// |
// |
179 |
if ( L2->IsORB() ){ |
if ( L2->IsORB() ){ |
180 |
|
if ( debug ) printf(" I am here, we have orbital infos \n"); |
181 |
if ( L2->GetOrbitalInfo()->pkt_num != PKT || L2->GetOrbitalInfo()->OBT != OBT || L2->GetOrbitalInfo()->absTime != atime || sel != ssel ){ |
if ( L2->GetOrbitalInfo()->pkt_num != PKT || L2->GetOrbitalInfo()->OBT != OBT || L2->GetOrbitalInfo()->absTime != atime || sel != ssel ){ |
182 |
newentry = true; |
newentry = true; |
183 |
OBT = L2->GetOrbitalInfo()->OBT; |
OBT = L2->GetOrbitalInfo()->OBT; |
236 |
// |
// |
237 |
mip = L2->GetCaloLevel1()->DecodeEstrip(i,view,plane,strip); |
mip = L2->GetCaloLevel1()->DecodeEstrip(i,view,plane,strip); |
238 |
// |
// |
239 |
|
if ( !usepl18x && view==0 && plane==18 ) mip = 0.; |
240 |
|
// |
241 |
// Mask x or y view if nox and/or noy are true (default false) |
// Mask x or y view if nox and/or noy are true (default false) |
242 |
// |
// |
243 |
if ( mask[view][plane] ) mip = 0.; |
if ( mask[view][plane] ) mip = 0.; |