34 return StatusCode::SUCCESS;
43 return StatusCode::FAILURE;
50 std::vector<SelDecorator> selDecors;
52 selDecors.emplace_back(key, ctx);
61 if (!selDecors.empty() && std::find_if(selDecors.begin(), selDecors.end(), [trk](
const SelDecorator& dec){
63 }) == selDecors.end())
continue;
68 return StatusCode::FAILURE;
70 neflowCone40_dec(*trk) = resultCalo.
etcones[0];
71 neflowCone30_dec(*trk) = resultCalo.
etcones[1];
72 neflowCone20_dec(*trk) = resultCalo.
etcones[2];
74 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Handle class for reading from StoreGate.
Handle class for adding a decoration to an object.
An algorithm that can be simultaneously executed in multiple threads.
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_neflowCone30_key
Gaudi::Property< float > m_pt_min
pt threshold to apply
xAOD::CaloCorrection m_calo_corr
std::vector< xAOD::Iso::IsolationType > m_pflow_isos
PflowIsolationDecorAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
ToolHandle< xAOD::INeutralEFlowIsolationTool > m_isoTool
Athena configured tools.
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_neflowCone40_key
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trk_key
track collection to decorate
SG::ReadDecorHandleKeyArray< xAOD::TrackParticleContainer > m_trkSel_keys
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_neflowCone20_key
Gaudi::Property< std::string > m_customName
StatusCode initialize() override
Athena algorithm's Hooks.
Gaudi::Property< std::vector< std::string > > m_trkSel_Decors
Optional list of decorators to select only the good tracks for the isolation decoration.
StatusCode execute(const EventContext &ctx) const override
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Handle class for reading a decoration on an object.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
Handle class for adding a decoration to an object.
SG::WriteDecorHandle< ContType, dType > makeHandle(const EventContext &ctx, const SG::WriteDecorHandleKey< ContType > &key, const dType &defValue=dType{})
@ pileupCorrection
fully corrected
@ coreCone
core energy (in dR<0.1).
TrackParticle_v1 TrackParticle
Reference the current persistent version:
std::vector< float > etcones