ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
JetMissingEtID
JetSelectorTools
src
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"
10
#include "
StoreGate/ReadHandleKey.h
"
11
#include "
StoreGate/WriteDecorHandleKey.h
"
12
#include "
AthenaBaseComps/AthAlgorithm.h
"
13
14
// EDM includes
15
#include "
xAODEventInfo/EventInfo.h
"
16
#include "
xAODJet/JetContainer.h
"
17
18
// Local includes
19
#include "
JetSelectorTools/IEventCleaningTool.h
"
20
25
class
EventCleaningTestAlg
:
public
AthAlgorithm
26
{
27
28
public
:
29
31
EventCleaningTestAlg
(
const
std::string& name, ISvcLocator* svcLoc);
32
34
virtual
StatusCode
initialize
()
override
;
35
37
virtual
StatusCode
execute
(
const
EventContext& ctx)
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"
};
45
SG::ReadHandleKey<xAOD::EventInfo>
m_evtKey
{
this
,
"EventInfoKey"
,
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
AthAlgorithm.h
IEventCleaningTool.h
JetContainer.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
EventCleaningTestAlg::m_cleaningLevel
Gaudi::Property< std::string > m_cleaningLevel
Definition
EventCleaningTestAlg.h:50
EventCleaningTestAlg::execute
virtual StatusCode execute(const EventContext &ctx) override
Execute the algorithm.
Definition
EventCleaningTestAlg.cxx:46
EventCleaningTestAlg::m_evtInfoDecor
SG::WriteDecorHandleKey< xAOD::EventInfo > m_evtInfoDecor
Definition
EventCleaningTestAlg.h:54
EventCleaningTestAlg::m_prefix
Gaudi::Property< std::string > m_prefix
Configuration.
Definition
EventCleaningTestAlg.h:48
EventCleaningTestAlg::m_doEvent
Gaudi::Property< bool > m_doEvent
Definition
EventCleaningTestAlg.h:52
EventCleaningTestAlg::EventCleaningTestAlg
EventCleaningTestAlg(const std::string &name, ISvcLocator *svcLoc)
Standard algorithm constructor.
Definition
EventCleaningTestAlg.cxx:15
EventCleaningTestAlg::m_ecTool
ToolHandle< ECUtils::IEventCleaningTool > m_ecTool
Definition
EventCleaningTestAlg.h:41
EventCleaningTestAlg::m_jetKey
SG::ReadHandleKey< xAOD::JetContainer > m_jetKey
Definition
EventCleaningTestAlg.h:43
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
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition
StoreGate/StoreGate/WriteDecorHandleKey.h:90
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0