21 return StatusCode::SUCCESS;
26 return StatusCode::SUCCESS;
36 CHECK(h_caloClusters.isValid());
37 ATH_MSG_DEBUG(
"Read in " << h_caloClusters->size() <<
" clusters");
39 const auto& caloClusters = *h_caloClusters;
45 for (
const auto cluster : caloClusters ) {
46 float et = cluster->et();
47 float phi = cluster->phi();
49 Ex -=
et * TMath::Cos(
phi);
50 Ey -=
et * TMath::Sin(
phi);
59 auto METObj = std::make_unique<xAOD::EnergySumRoI>();
61 METObj->setEnergyX(Ex);
62 METObj->setEnergyY(Ey);
63 METObj->setEnergyT(totalEt);
65 h_outputMET = std::move(METObj);
70 return StatusCode::SUCCESS;
Scalar phi() const
phi method
#define CHECK(...)
Evaluate an expression and check for errors.
virtual void setFilterPassed(bool state, const EventContext &ctx) const
An algorithm that can be simultaneously executed in multiple threads.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
EnergySumRoIAuxInfo_v2 EnergySumRoIAuxInfo
Declare the most recent version of the energy-sum auxiliary info.
Extra patterns decribing particle interation process.