42 |
nox = false; |
nox = false; |
43 |
noy = false; |
noy = false; |
44 |
forcecalo = false; |
forcecalo = false; |
45 |
|
forcefitmode = -1; |
46 |
memset(mask,0,2*22*sizeof(Int_t)); |
memset(mask,0,2*22*sizeof(Int_t)); |
47 |
// |
// |
48 |
Clear(); |
Clear(); |
72 |
// |
// |
73 |
} |
} |
74 |
|
|
75 |
|
CaloTrkVar* CaloPreSampler::GetCaloTrack(Int_t t){ |
76 |
|
this->Process(); |
77 |
|
if ( t < 0 ) return pcalo->GetCaloStoredTrack(t); |
78 |
|
if ( L2->GetTrack(t) ){ |
79 |
|
return pcalo->GetCaloStoredTrack(L2->GetTrack(t)->GetTrkTrack()->GetSeqNo()); |
80 |
|
}; |
81 |
|
return NULL; |
82 |
|
} |
83 |
|
|
84 |
void CaloPreSampler::SetNoWpreSampler(Int_t n){ |
void CaloPreSampler::SetNoWpreSampler(Int_t n){ |
85 |
if ( NC+n < 23 ){ |
if ( NC+n < 23 ){ |
86 |
N = n; |
N = n; |
163 |
// Clear structures used to communicate with fortran |
// Clear structures used to communicate with fortran |
164 |
// |
// |
165 |
event->ClearStructs();//ELENA |
event->ClearStructs();//ELENA |
166 |
|
if ( forcefitmode > 0 ){ |
167 |
|
if ( forcefitmode != 1000 && forcefitmode != 1001 && forcefitmode != 1002 ){ |
168 |
|
printf(" ERROR! forcefitmode=%i \n Use forcefitmode = 1000 for fit mode 0, 1001 fit mode 1, 1002 fit mode 3\n",forcefitmode); |
169 |
|
forcefitmode = -1; |
170 |
|
} else { |
171 |
|
event->clevel2->fmode[0] = forcefitmode; |
172 |
|
event->clevel2->fmode[1] = forcefitmode; |
173 |
|
}; |
174 |
|
}; |
175 |
// |
// |
176 |
Bool_t newentry = false; |
Bool_t newentry = false; |
177 |
// |
// |
178 |
if ( L2->IsORB() ){ |
if ( L2->IsORB() ){ |
179 |
|
if ( debug ) printf(" I am here, we have orbital infos \n"); |
180 |
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 ){ |
181 |
newentry = true; |
newentry = true; |
182 |
OBT = L2->GetOrbitalInfo()->OBT; |
OBT = L2->GetOrbitalInfo()->OBT; |