25 return StatusCode::SUCCESS;
30 float lvl1_sumET = 0.f;
32 ATH_MSG_DEBUG(
"LVL1 EnergySum handle: " << lvl1EnergySumHandle.isValid());
33 if (lvl1EnergySumHandle.isValid()) { lvl1_sumET = 1
e-3 * lvl1EnergySumHandle->energyT(); }
36 ATH_MSG_DEBUG(
"jFeX EnergySum handle: " << jFexSumETHandle.isValid());
37 if (not jFexSumETHandle.isValid()) {
39 return StatusCode::SUCCESS;
43 ATH_MSG_DEBUG(
"HI event shape handle: " << HIEventShapeHandle.isValid());
44 if (not HIEventShapeHandle.isValid()) {
46 return StatusCode::SUCCESS;
51 float sum_fwdA_jTE = 0.f;
52 float sum_fwdC_jTE = 0.f;
55 sum_jTE += jFexRoI->Et_lower() + jFexRoI->Et_upper();
56 if (jFexRoI->jFexNumber() == 0) { sum_fwdC_jTE += jFexRoI->Et_upper(); }
57 if (jFexRoI->jFexNumber() == 5) { sum_fwdA_jTE += jFexRoI->Et_upper(); }
60 sum_fwdA_jTE *= 0.001;
61 sum_fwdC_jTE *= 0.001;
64 float totalFCalEtSideA = 0.;
65 float totalFCalEtSideC = 0.;
67 const int layer = es->layer();
68 if (layer < 21 or layer > 23) {
continue; }
70 const float et = es->et();
71 if (std::abs(
et) < 0.1) {
continue; }
73 const float eta = 0.5 * (es->etaMin() + es->etaMax());
75 totalFCalEtSideA +=
et;
77 totalFCalEtSideC +=
et;
80 totalFCalEtSideA *= 0.001;
81 totalFCalEtSideC *= 0.001;
92 if (not trigDecTool->isPassed(
chain, TrigDefs::requireDecision)) {
continue; }
94 fill(
chain +
"_sumEt", sum_L1TE, sum_L1jTE, sum_L1FWDAjTE, sum_L1FWDCjTE, sum_FCalAEt, sum_FCalCEt);
97 return StatusCode::SUCCESS;