ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
TruthParticleLevelAnalysisAlgorithms
TruthParticleLevelAnalysisAlgorithms
ParticleLevelJetsAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
7
#ifndef TRUTH_PARTICLELEVEL_JETS_ALG_H
8
#define TRUTH_PARTICLELEVEL_JETS_ALG_H
9
10
// Algorithm includes
11
#include <
AnaAlgorithm/AnaReentrantAlgorithm.h
>
12
#include <
AsgDataHandles/ReadDecorHandleKey.h
>
13
#include <
AsgDataHandles/ReadHandleKey.h
>
14
#include <
AsgDataHandles/WriteDecorHandleKey.h
>
15
16
// Framework includes
17
#include <
xAODEventInfo/EventInfo.h
>
18
#include <
xAODJet/JetContainer.h
>
19
20
#include <atomic>
21
22
namespace
CP
{
23
class
ParticleLevelJetsAlg
:
public
EL::AnaReentrantAlgorithm
{
24
public
:
25
using
EL::AnaReentrantAlgorithm::AnaReentrantAlgorithm
;
26
virtual
StatusCode
initialize
()
final
;
27
virtual
StatusCode
execute
(
const
EventContext &ctx)
const
final
;
28
29
private
:
30
SG::ReadHandleKey<xAOD::JetContainer>
m_jetsKey
{
31
this
,
"jets"
,
""
,
"the name of the input truth jets container"
};
32
SG::ReadHandleKey<xAOD::EventInfo>
m_eventInfoKey
{
33
this
,
"eventInfo"
,
"EventInfo"
,
"the name of the EventInfo container"
};
34
SG::ReadDecorHandleKey<xAOD::JetContainer>
m_truthLabelKey
{
35
this
,
"truthLabelDecoration"
,
m_jetsKey
,
"HadronConeExclTruthLabelID"
,
36
"the truth flavour label decoration on the input jets"
};
37
SG::WriteDecorHandleKey<xAOD::EventInfo>
m_decNumTruthBJetsKey
{
38
this
,
"numTruthBJetsDecoration"
,
m_eventInfoKey
,
39
"num_truth_bjets_nocuts"
,
40
"the number of truth b-jets decoration on EventInfo"
};
41
SG::WriteDecorHandleKey<xAOD::EventInfo>
m_decNumTruthCJetsKey
{
42
this
,
"numTruthCJetsDecoration"
,
m_eventInfoKey
,
43
"num_truth_cjets_nocuts"
,
44
"the number of truth c-jets decoration on EventInfo"
};
45
mutable
std::atomic<bool>
m_warnedMissingLabel
{
false
};
46
};
47
48
}
// namespace CP
49
50
#endif
AnaReentrantAlgorithm.h
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteDecorHandleKey.h
JetContainer.h
CP::ParticleLevelJetsAlg
Definition
ParticleLevelJetsAlg.h:23
CP::ParticleLevelJetsAlg::m_truthLabelKey
SG::ReadDecorHandleKey< xAOD::JetContainer > m_truthLabelKey
Definition
ParticleLevelJetsAlg.h:34
CP::ParticleLevelJetsAlg::m_decNumTruthCJetsKey
SG::WriteDecorHandleKey< xAOD::EventInfo > m_decNumTruthCJetsKey
Definition
ParticleLevelJetsAlg.h:41
CP::ParticleLevelJetsAlg::m_decNumTruthBJetsKey
SG::WriteDecorHandleKey< xAOD::EventInfo > m_decNumTruthBJetsKey
Definition
ParticleLevelJetsAlg.h:37
CP::ParticleLevelJetsAlg::m_jetsKey
SG::ReadHandleKey< xAOD::JetContainer > m_jetsKey
Definition
ParticleLevelJetsAlg.h:30
CP::ParticleLevelJetsAlg::m_warnedMissingLabel
std::atomic< bool > m_warnedMissingLabel
Definition
ParticleLevelJetsAlg.h:45
CP::ParticleLevelJetsAlg::initialize
virtual StatusCode initialize() final
Definition
ParticleLevelJetsAlg.cxx:15
CP::ParticleLevelJetsAlg::execute
virtual StatusCode execute(const EventContext &ctx) const final
Definition
ParticleLevelJetsAlg.cxx:26
CP::ParticleLevelJetsAlg::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition
ParticleLevelJetsAlg.h:32
EL::AnaReentrantAlgorithm
the base class for EventLoop reentrant algorithms
Definition
AnaReentrantAlgorithm.h:51
EL::AnaReentrantAlgorithm::AnaReentrantAlgorithm
AnaReentrantAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition
AnaReentrantAlgorithm.cxx:29
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition
StoreGate/StoreGate/ReadDecorHandleKey.h:86
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
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0