21 return StatusCode::SUCCESS;
32 return StatusCode::SUCCESS;
150 lbNCandidates = mylb;
153 u_int16_t mynp_barrel = 0;
154 u_int16_t mynp_crack = 0;
155 u_int16_t mynp_endcap = 0;
157 for (
const auto *
const e_iter : *
electrons) {
161 if (! e_iter->passSelection(isGood,
m_RecoName)) {
168 Double_t myetaloc = e_iter->eta();
182 ATH_MSG_DEBUG(
"Found an electron out the acceptance region : " << regionloc);
190 Float_t myet = e_iter->pt();
192 Double_t myeta = e_iter->eta();
193 Float_t myphi = e_iter->phi();
195 bool myis_pt_gt_2_5gev = myet > 2500. ;
196 bool myis_pt_gt_4gev = myet > 4000. ;
197 bool myis_pt_gt_20gev = myet > 20000. ;
199 is_pt_gt_2_5gev = myis_pt_gt_2_5gev ;
200 is_pt_gt_4gev = myis_pt_gt_4gev ;
201 is_pt_gt_20gev = myis_pt_gt_20gev ;
203 is_pt_gt_4gev_barrel = myis_pt_gt_4gev ;
204 is_pt_gt_4gev_endcap = myis_pt_gt_4gev ;
205 is_pt_gt_4gev_crack = myis_pt_gt_4gev ;
207 is_pt_gt_2_5gev_barrel = myis_pt_gt_2_5gev ;
208 is_pt_gt_2_5gev_endcap = myis_pt_gt_2_5gev ;
209 is_pt_gt_2_5gev_crack = myis_pt_gt_2_5gev ;
211 is_pt_gt_20gev_barrel = myis_pt_gt_20gev ;
212 is_pt_gt_20gev_endcap = myis_pt_gt_20gev ;
213 is_pt_gt_20gev_crack = myis_pt_gt_20gev ;
216 Float_t mytopoetcone40 = -999.;
220 Float_t myptcone20 = -999.;
227 Float_t myehad1 = 0.0;
228 Float_t myecore = 0.0;
236 Float_t myre233e237 = 0.0;
237 Float_t myre237e277 = 0.0;
251 Float_t mydeltaeta1 = -999.0;
253 Float_t mydeltaphi2 = -999.0;
256 Float_t myeoverp = -999.0;
257 Float_t mytrackd0 = -999.0;
262 u_int8_t mynofblayerhits=-1;
263 u_int8_t mynofpixelhits=-1;
264 u_int8_t mynofscthits=-1;
265 u_int8_t mynoftrthits=-1;
266 u_int8_t mynoftrthighthresholdhits=-1;
269 trackp =
t->pt()*cosh(
t->eta());
279 ATH_MSG_DEBUG(
"Error attempting to retrieve associated track");
286 mytime = aCluster->
time();
289 double ec = aCluster->
et()*cosh(aCluster->
eta());
290 if (ec!=0) myf0 = aCluster->
energyBE(0)/ec;
291 if (ec!=0) myf1 = aCluster->
energyBE(1)/ec;
292 if (ec!=0) myf2 = aCluster->
energyBE(2)/ec;
293 if (ec!=0) myf3 = aCluster->
energyBE(3)/ec;
295 if(trackp !=0) myeoverp = aCluster->
e()/trackp;
308 nofblayerhits_barrel = mynofblayerhits ; nofpixelhits_barrel = mynofpixelhits ; nofscthits_barrel = mynofscthits ;
309 noftrthits_barrel = mynoftrthits ; noftrthighthresholdhits_barrel = mynoftrthighthresholdhits;
310 deltaeta1_barrel = mydeltaeta1; deltaphi2_barrel = mydeltaphi2; trackd0_barrel = mytrackd0;
311 eoverp_barrel = myeoverp;
312 et_barrel = myet ; eta_barrel = myeta ; phi_barrel = myphi ;
313 time_barrel = mytime; ehad1_barrel = myehad1; coreem_barrel = myecore;
314 f0_barrel = myf0; f1_barrel = myf1; f2_barrel = myf2; f3_barrel = myf3; re233e237_barrel = myre233e237; re237e277_barrel = myre237e277;
315 fill(
"MonitorElectron",np_barrel, nofblayerhits_barrel, nofpixelhits_barrel, nofscthits_barrel, noftrthits_barrel, noftrthighthresholdhits_barrel,
316 deltaeta1_barrel, deltaphi2_barrel,trackd0_barrel,eoverp_barrel,
317 et_barrel,eta_barrel,phi_barrel, time_barrel, ehad1_barrel,coreem_barrel, f0_barrel,f1_barrel,f2_barrel, f3_barrel,
318 re233e237_barrel,re237e277_barrel,is_pt_gt_4gev_barrel,is_pt_gt_2_5gev_barrel,is_pt_gt_20gev_barrel);
322 nofblayerhits_endcap = mynofblayerhits; nofpixelhits_endcap = mynofpixelhits ; nofscthits_endcap = mynofscthits ;
323 noftrthits_endcap = mynoftrthits ; noftrthighthresholdhits_endcap = mynoftrthighthresholdhits;
324 deltaeta1_endcap = mydeltaeta1; deltaphi2_endcap = mydeltaphi2; trackd0_endcap = mytrackd0;
325 eoverp_endcap = myeoverp;
326 et_endcap = myet ; eta_endcap = myeta ; phi_endcap = myphi ;
327 time_endcap = mytime; ehad1_endcap = myehad1; coreem_endcap = myecore;
328 f0_endcap = myf0; f1_endcap = myf1; f2_endcap = myf2; f3_endcap = myf3; re233e237_endcap = myre233e237; re237e277_endcap = myre237e277;
329 fill(
"MonitorElectron",np_endcap,nofblayerhits_endcap,nofpixelhits_endcap,nofscthits_endcap,noftrthits_endcap,noftrthighthresholdhits_endcap,
330 deltaeta1_endcap, deltaphi2_endcap,trackd0_endcap,eoverp_endcap,et_endcap,eta_endcap,phi_endcap,
331 time_endcap, ehad1_endcap,coreem_endcap,
332 f0_endcap,f1_endcap,f2_endcap,f3_endcap,re233e237_endcap,re237e277_endcap,is_pt_gt_4gev_endcap,is_pt_gt_2_5gev_endcap,is_pt_gt_20gev_endcap);
336 nofblayerhits_crack = mynofblayerhits; nofpixelhits_crack = mynofpixelhits ; nofscthits_crack = mynofscthits ;
337 noftrthits_crack = mynoftrthits ; noftrthighthresholdhits_crack = mynoftrthighthresholdhits;
338 deltaeta1_crack = mydeltaeta1; deltaphi2_crack = mydeltaphi2; trackd0_crack = mytrackd0;
339 eoverp_crack = myeoverp;
340 et_crack = myet ; eta_crack = myeta ; phi_crack = myphi ;
341 time_crack = mytime; ehad1_crack = myehad1; coreem_crack = myecore;
342 f0_crack = myf0; f1_crack = myf1; f2_crack = myf2; f3_crack = myf3; re233e237_crack = myre233e237; re237e277_crack = myre237e277;
343 fill(
"MonitorElectron",np_crack,nofblayerhits_crack, nofpixelhits_crack,nofscthits_crack,noftrthits_crack,noftrthighthresholdhits_crack,
344 deltaeta1_crack, deltaphi2_crack,trackd0_crack,eoverp_crack,et_crack,eta_crack,phi_crack,
345 time_crack, ehad1_crack,coreem_crack,f0_crack,f1_crack,f2_crack,f3_crack,re233e237_crack,re237e277_crack,is_pt_gt_4gev_crack,is_pt_gt_2_5gev_crack,is_pt_gt_20gev_crack);
349 ATH_MSG_DEBUG(
"found an electron outside the |eta| > 2.47 acceptance");
353 et = myet ;
eta = myeta ;
phi = myphi ;
355 is_pt_gt_2_5gev, is_pt_gt_4gev, is_pt_gt_20gev);
361 np_barrel = mynp_barrel;
362 np_endcap = mynp_endcap;
363 np_crack = mynp_crack;
365 fill(
"MonitorElectron",
np,np_barrel,np_endcap,np_crack);
367 return StatusCode::SUCCESS;