ATLAS Offline Software
PhysicsAnalysis
DerivationFramework
DerivationFrameworkMCTruth
src
TruthBornLeptonCollectionMaker.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// TruthBornLeptonCollectionMaker.h
8
9
#ifndef DERIVATIONFRAMEWORK_TRUTHBORNLEPTONCOLLECTIONMAKER_H
10
#define DERIVATIONFRAMEWORK_TRUTHBORNLEPTONCOLLECTIONMAKER_H
11
12
// Base classes
13
#include "
AthenaBaseComps/AthAlgTool.h
"
14
#include "
DerivationFrameworkInterfaces/IAugmentationTool.h
"
15
// EDM includes for the particles we need
16
#include "
xAODTruth/TruthParticle.h
"
17
// R/W/D key handles
18
#include "
StoreGate/ReadHandleKey.h
"
19
#include "
StoreGate/WriteHandleKey.h
"
20
#include "
StoreGate/WriteDecorHandleKey.h
"
21
// For the Metadata store
22
#include "GaudiKernel/ServiceHandle.h"
23
// STL includes
24
#include <string>
25
26
// Forward declarations
27
class
StoreGateSvc
;
28
29
namespace
DerivationFramework
{
30
31
class
TruthBornLeptonCollectionMaker
:
public
AthAlgTool
,
public
IAugmentationTool
{
32
public
:
33
TruthBornLeptonCollectionMaker
(
const
std::string&
t
,
const
std::string&
n
,
const
IInterface*
p
);
34
~TruthBornLeptonCollectionMaker
();
35
StatusCode
initialize
();
36
virtual
StatusCode
addBranches
()
const
;
37
38
private
:
40
SG::ReadHandleKey<xAOD::TruthParticleContainer>
m_particlesKey
41
{
this
,
"ParticlesKey"
,
"TruthParticles"
,
"Name of TruthParticle key for input"
};
43
SG::WriteHandleKey<xAOD::TruthParticleContainer>
m_collectionName
44
{
this
,
"NewCollectionName"
,
""
,
"Name of TruthParticle key for output"
};
45
// Decorators
46
SG::WriteDecorHandleKey<xAOD::TruthParticleContainer>
m_originDecoratorKey
47
{
this
,
"classifierParticleOrigin"
,
"TruthParticles.classifierParticleOrigin"
,
"Particle origin decoration, set at initialisation"
};
48
SG::WriteDecorHandleKey<xAOD::TruthParticleContainer>
m_typeDecoratorKey
49
{
this
,
"classifierParticleType"
,
"TruthParticles.classifierParticleType"
,
"Particle type decoration, set at initialisation"
};
50
SG::WriteDecorHandleKey<xAOD::TruthParticleContainer>
m_outcomeDecoratorKey
51
{
this
,
"classifierParticleOutCome"
,
"TruthParticles.classifierParticleOutCome"
,
"Particle outcome decoration, set at initialisation"
};
52
SG::WriteDecorHandleKey<xAOD::TruthParticleContainer>
m_classificationDecoratorKey
53
{
this
,
"Classification"
,
"TruthParticles.Classification"
,
"Classification code decorator, set at initialisation"
};
54
55
ServiceHandle<StoreGateSvc>
m_metaStore
;
56
bool
hasBareDescendent
(
const
xAOD::TruthParticle
*
p
)
const
;
58
};
59
}
60
61
#endif // DERIVATIONFRAMEWORK_TRUTHBORNLEPTONCOLLECTIONMAKER_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition:
StoreGate/StoreGate/WriteDecorHandleKey.h:89
IAugmentationTool.h
DerivationFramework::TruthBornLeptonCollectionMaker::m_originDecoratorKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_originDecoratorKey
Definition:
TruthBornLeptonCollectionMaker.h:47
DerivationFramework::TruthBornLeptonCollectionMaker::m_outcomeDecoratorKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_outcomeDecoratorKey
Definition:
TruthBornLeptonCollectionMaker.h:51
DerivationFramework::TruthBornLeptonCollectionMaker::TruthBornLeptonCollectionMaker
TruthBornLeptonCollectionMaker(const std::string &t, const std::string &n, const IInterface *p)
Definition:
TruthBornLeptonCollectionMaker.cxx:27
DerivationFramework::TruthBornLeptonCollectionMaker::addBranches
virtual StatusCode addBranches() const
Pass the thinning service
Definition:
TruthBornLeptonCollectionMaker.cxx:74
read_hist_ntuple.t
t
Definition:
read_hist_ntuple.py:5
SG::ReadHandleKey< xAOD::TruthParticleContainer >
DerivationFramework::IAugmentationTool
Definition:
IAugmentationTool.h:24
StoreGateSvc
The Athena Transient Store API.
Definition:
StoreGateSvc.h:125
python.utils.AtlRunQueryDQUtils.p
p
Definition:
AtlRunQueryDQUtils.py:210
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition:
StoreGate/StoreGate/WriteHandleKey.h:40
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
beamspotman.n
n
Definition:
beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
xAOD::TruthParticle_v1
Class describing a truth particle in the MC record.
Definition:
TruthParticle_v1.h:37
AthAlgTool.h
DerivationFramework::TruthBornLeptonCollectionMaker::initialize
StatusCode initialize()
Definition:
TruthBornLeptonCollectionMaker.cxx:42
DerivationFramework
THE reconstruction tool.
Definition:
ParticleSortingAlg.h:24
DerivationFramework::TruthBornLeptonCollectionMaker::m_collectionName
SG::WriteHandleKey< xAOD::TruthParticleContainer > m_collectionName
Definition:
TruthBornLeptonCollectionMaker.h:44
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
DerivationFramework::TruthBornLeptonCollectionMaker::m_typeDecoratorKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_typeDecoratorKey
Definition:
TruthBornLeptonCollectionMaker.h:49
DerivationFramework::TruthBornLeptonCollectionMaker
Definition:
TruthBornLeptonCollectionMaker.h:31
DerivationFramework::TruthBornLeptonCollectionMaker::hasBareDescendent
bool hasBareDescendent(const xAOD::TruthParticle *p) const
Helper function for finding bare descendents of born leptons.
Definition:
TruthBornLeptonCollectionMaker.cxx:209
DerivationFramework::TruthBornLeptonCollectionMaker::m_classificationDecoratorKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_classificationDecoratorKey
Definition:
TruthBornLeptonCollectionMaker.h:53
DerivationFramework::TruthBornLeptonCollectionMaker::m_metaStore
ServiceHandle< StoreGateSvc > m_metaStore
Handle on the metadata store for init.
Definition:
TruthBornLeptonCollectionMaker.h:55
DerivationFramework::TruthBornLeptonCollectionMaker::~TruthBornLeptonCollectionMaker
~TruthBornLeptonCollectionMaker()
Definition:
TruthBornLeptonCollectionMaker.cxx:38
AthAlgTool
Definition:
AthAlgTool.h:26
TruthParticle.h
ServiceHandle< StoreGateSvc >
DerivationFramework::TruthBornLeptonCollectionMaker::m_particlesKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_particlesKey
< Input particle collection key
Definition:
TruthBornLeptonCollectionMaker.h:41
Generated on Fri Jan 10 2025 21:21:11 for ATLAS Offline Software by
1.8.18