33 if (
m_jetKey.key() ==
"AntiKt4EMTopoJets") {
40 return StatusCode::SUCCESS;
48 const EventContext& ctx = Gaudi::Hive::currentContext();
51 if (!jets.isValid()) {
53 return StatusCode::FAILURE;
61 if (!eventInfo.isValid()){
63 return StatusCode::FAILURE;
65 eventInfo(*eventInfo) =
result;
68 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Handle class for adding a decoration to an object.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Property< std::string > m_cleaningLevel
SG::WriteDecorHandleKey< xAOD::EventInfo > m_evtInfoDecor
Gaudi::Property< std::string > m_prefix
Configuration.
virtual StatusCode execute() override
Execute the algorithm.
Gaudi::Property< bool > m_doEvent
EventCleaningTestAlg(const std::string &name, ISvcLocator *svcLoc)
Standard algorithm constructor.
ToolHandle< ECUtils::IEventCleaningTool > m_ecTool
SG::ReadHandleKey< xAOD::JetContainer > m_jetKey
virtual StatusCode initialize() override
Initialize the algorithm.
SG::ReadHandleKey< xAOD::EventInfo > m_evtKey
Handle class for adding a decoration to an object.