|
ATLAS Offline Software
|
Go to the documentation of this file.
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;
Extra patterns decribing particle interation process.
Scalar phi() const
phi method
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())
Auxiliary store for an EnergySum RoI object.
::StatusCode StatusCode
StatusCode definition for legacy code.
#define CHECK(...)
Evaluate an expression and check for errors.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual void setFilterPassed(bool state, const EventContext &ctx) const