ATLAS Offline Software
Loading...
Searching...
No Matches
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
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"};
47
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
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
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
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.