94 #include "GaudiKernel/ToolHandle.h"
101 #include "CLHEP/Units/SystemOfUnits.h"
142 m_isEM = ElectronLoose_NoReta_NoW2;
148 const unsigned int CALO_ELECTRON_NoReta_NoW2 =
151 CALOMIDDLE_ELECTRON_NoReta_NoW2 ;
153 const unsigned int ElectronMedium_NOReta_NoW2 =
154 CALO_ELECTRON_NoReta_NoW2 |
158 m_isEM = ElectronMedium_NOReta_NoW2;
164 const unsigned int CALO_ELECTRON_NoReta_NoW2 =
167 CALOMIDDLE_ELECTRON_NoReta_NoW2 ;
169 const unsigned int ElectronTightRobust_NoReta_NoW2 =
170 CALO_ELECTRON_NoReta_NoW2 |
178 m_isEM = ElectronTightRobust_NoReta_NoW2;
181 const unsigned int ElectronTightRobust_NoReta_NoW2_NoConvCut =
182 CALO_ELECTRON_NoReta_NoW2 |
193 std::cerr <<
"IsEM is not recognized! Please configure it properly"
195 sc = StatusCode::FAILURE;
229 std::cerr <<
"Couldn't cast to an electron! Are you sure you are using this right?"
266 std::cerr <<
"Couldn't get the CaloCluster for this electron! Passing this electron."
281 double absEta2 = fabs(
eta2);
288 std::cerr <<
"Couldn't get the EMShower object for this electron! Passing this electron."
299 if (
weta2 > w2CutValue )
314 if ( reta <= REtaCutValue )
335 const double etaBins[
nEtaBins] = {0.1,0.6,0.8,1.15,1.37,1.52,1.81,2.01,2.37,2.47};
354 const unsigned int nEtBins = 11;
357 for (
unsigned int eTBin = 0; eTBin < nEtBins; ++eTBin )
359 if (
eT < eTBins[eTBin] )
377 const double cutReta37[11][10] = {{ 0.700, 0.700, 0.798, 0.700, 0.700, 0.690, 0.848, 0.876, 0.870, 0.894}
378 ,{0.700, 0.700, 0.700, 0.700, 0.700, 0.715, 0.860, 0.880, 0.880, 0.880}
379 ,{0.860, 0.860, 0.860, 0.860, 0.860, 0.730, 0.860, 0.880, 0.880, 0.880}
380 ,{0.860, 0.860, 0.860, 0.860, 0.860, 0.740, 0.860, 0.880, 0.880, 0.880}
381 ,{0.900, 0.900, 0.900, 0.900, 0.900, 0.900, 0.900, 0.900, 0.900, 0.900}
382 ,{0.900, 0.900, 0.900, 0.900, 0.900, 0.900, 0.900, 0.900, 0.900, 0.900}
383 ,{0.900, 0.900, 0.900, 0.900, 0.900, 0.900, 0.900, 0.900, 0.900, 0.900}
384 ,{0.900, 0.900, 0.900, 0.900, 0.900, 0.900, 0.900, 0.900, 0.900, 0.900}
385 ,{0.900, 0.900, 0.900, 0.900, 0.900, 0.900, 0.900, 0.900, 0.900, 0.900}
386 ,{0.900, 0.900, 0.900, 0.900, 0.900, 0.900, 0.900, 0.900, 0.900, 0.900}
387 ,{0.900, 0.900, 0.900, 0.900, 0.900, 0.900, 0.900, 0.900, 0.900, 0.900}};
392 return cutReta37[eTBin][
etaBin];
405 const double cutWeta2[11][10] = {{ 0.014, 0.014, 0.014, 0.014, 0.014, 0.028, 0.017, 0.014, 0.014, 0.014}
406 ,{0.013, 0.013, 0.014, 0.014, 0.014, 0.026, 0.017, 0.014, 0.014, 0.014}
407 ,{0.013, 0.013, 0.014, 0.014, 0.014, 0.025, 0.017, 0.014, 0.014, 0.014}
408 ,{0.012, 0.012, 0.013, 0.013, 0.013, 0.025, 0.017, 0.014, 0.014, 0.014}
409 ,{0.012, 0.012, 0.012, 0.013, 0.015, 0.025, 0.015, 0.013, 0.013, 0.013}
410 ,{0.012, 0.012, 0.012, 0.013, 0.015, 0.025, 0.015, 0.013, 0.013, 0.013}
411 ,{0.012, 0.012, 0.012, 0.013, 0.015, 0.025, 0.015, 0.013, 0.013, 0.013}
412 ,{0.012, 0.012, 0.012, 0.013, 0.015, 0.025, 0.015, 0.013, 0.013, 0.013}
413 ,{0.012, 0.012, 0.012, 0.013, 0.015, 0.025, 0.015, 0.013, 0.013, 0.013}
414 ,{0.012, 0.012, 0.012, 0.013, 0.015, 0.025, 0.015, 0.013, 0.013, 0.013}
415 ,{0.012, 0.012, 0.012, 0.013, 0.015, 0.025, 0.015, 0.013, 0.013, 0.013}};
420 return cutWeta2[eTBin][
etaBin];