ATLAS Offline Software
EventCleaningTestAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ASSOCIATIONUTILS_OVERLAPREMOVALTESTALG_H
6 #define ASSOCIATIONUTILS_OVERLAPREMOVALTESTALG_H
7 
8 // Framework includes
9 #include "GaudiKernel/ToolHandle.h"
13 
14 // EDM includes
16 #include "xAODJet/JetContainer.h"
17 
18 // Local includes
20 
26 {
27 
28  public:
29 
31  EventCleaningTestAlg(const std::string& name, ISvcLocator* svcLoc);
32 
34  virtual StatusCode initialize() override;
35 
37  virtual StatusCode execute() override;
38 
39  private:
40 
41  ToolHandle<ECUtils::IEventCleaningTool> m_ecTool{this, "EventCleaningTool","ECUtils::EventCleaningTool/EventCleaningTool" };
42 
43  SG::ReadHandleKey<xAOD::JetContainer> m_jetKey{this, "JetCollectionName", "AntiKt4EMPFlowJets",
44  "Jet collection name"};
46  "EventInfo"};
48  Gaudi::Property<std::string> m_prefix{this, "EventCleanPrefix" , "",
49  "Input name of event cleaning decorator prefix" };
50  Gaudi::Property<std::string> m_cleaningLevel{this, "CleaningLevel" , "LooseBad",
51  "Input cleaning level"};
52  Gaudi::Property<bool> m_doEvent{this, "doEvent" , true, "Decorate the EventInfo"};
53 
54  SG::WriteDecorHandleKey<xAOD::EventInfo> m_evtInfoDecor{this, "EvtDecorKey", "" , "Will be overwritten in initialze"};
55 };
56 
57 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::WriteDecorHandleKey< xAOD::EventInfo >
IEventCleaningTool.h
EventCleaningTestAlg::m_ecTool
ToolHandle< ECUtils::IEventCleaningTool > m_ecTool
Definition: EventCleaningTestAlg.h:41
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
EventCleaningTestAlg::initialize
virtual StatusCode initialize() override
Initialize the algorithm.
Definition: EventCleaningTestAlg.cxx:22
EventCleaningTestAlg::m_evtKey
SG::ReadHandleKey< xAOD::EventInfo > m_evtKey
Definition: EventCleaningTestAlg.h:45
EventCleaningTestAlg
A testing algorithm for the dual-use event cleaning tool in Athena.
Definition: EventCleaningTestAlg.h:26
AthAlgorithm.h
EventCleaningTestAlg::execute
virtual StatusCode execute() override
Execute the algorithm.
Definition: EventCleaningTestAlg.cxx:46
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
EventCleaningTestAlg::m_prefix
Gaudi::Property< std::string > m_prefix
Configuration.
Definition: EventCleaningTestAlg.h:48
AthAlgorithm
Definition: AthAlgorithm.h:47
EventCleaningTestAlg::m_cleaningLevel
Gaudi::Property< std::string > m_cleaningLevel
Definition: EventCleaningTestAlg.h:50
EventCleaningTestAlg::m_doEvent
Gaudi::Property< bool > m_doEvent
Definition: EventCleaningTestAlg.h:52
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
EventInfo.h
EventCleaningTestAlg::EventCleaningTestAlg
EventCleaningTestAlg(const std::string &name, ISvcLocator *svcLoc)
Standard algorithm constructor.
Definition: EventCleaningTestAlg.cxx:15
JetContainer.h
EventCleaningTestAlg::m_evtInfoDecor
SG::WriteDecorHandleKey< xAOD::EventInfo > m_evtInfoDecor
Definition: EventCleaningTestAlg.h:54
EventCleaningTestAlg::m_jetKey
SG::ReadHandleKey< xAOD::JetContainer > m_jetKey
Definition: EventCleaningTestAlg.h:43