33 if (
m_jetKey.key() ==
"AntiKt4EMTopoJets") {
40 return StatusCode::SUCCESS;
50 if (!jets.isValid()) {
52 return StatusCode::FAILURE;
55 bool result =
m_ecTool->acceptEvent(jets.cptr());
60 if (!eventInfo.isValid()){
62 return StatusCode::FAILURE;
64 eventInfo(*eventInfo) = result;
67 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.
Gaudi::Property< std::string > m_cleaningLevel
virtual StatusCode execute(const EventContext &ctx) override
Execute the algorithm.
SG::WriteDecorHandleKey< xAOD::EventInfo > m_evtInfoDecor
Gaudi::Property< std::string > m_prefix
Configuration.
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.