ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
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
extends<AthAlgTool, 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
EventContext& ctx)
const
;
37
38
private
:
40
SG::ReadHandleKey<xAOD::TruthParticleContainer>
m_particlesKey
41
{
this
,
"ParticlesKey"
,
"TruthParticles"
,
"Name of TruthParticle key for input"
};
42
SG::ReadDecorHandleKey<xAOD::TruthParticleContainer>
m_originAccessorKey
43
{
this
,
"Input_classifierParticleOrigin"
,
m_particlesKey
,
"classifierParticleOrigin"
,
"Particle origin decoration"
};
44
SG::ReadDecorHandleKey<xAOD::TruthParticleContainer>
m_typeAccessorKey
45
{
this
,
"Input_classifierParticleType"
,
m_particlesKey
,
"classifierParticleType"
,
"Particle type decoration"
};
46
SG::ReadDecorHandleKey<xAOD::TruthParticleContainer>
m_outcomeAccessorKey
47
{
this
,
"Input_classifierParticleOutCome"
,
m_particlesKey
,
"classifierParticleOutCome"
,
"Particle outcome decoration"
};
48
SG::ReadDecorHandleKey<xAOD::TruthParticleContainer>
m_classificationAccessorKey
49
{
this
,
"Input_Classification"
,
m_particlesKey
,
"Classification"
,
"Classification code decoration"
};
50
51
SG::WriteHandleKey<xAOD::TruthParticleContainer>
m_collectionName
52
{
this
,
"NewCollectionName"
,
""
,
"Name of TruthParticle key for output"
};
53
// Decorators - FIXME we should not need to use WriteDecorHandleKeys here.
54
SG::WriteDecorHandleKey<xAOD::TruthParticleContainer>
m_originDecoratorKey
55
{
this
,
"classifierParticleOrigin"
,
m_collectionName
,
"classifierParticleOrigin"
,
"Particle origin decoration"
};
56
SG::WriteDecorHandleKey<xAOD::TruthParticleContainer>
m_typeDecoratorKey
57
{
this
,
"classifierParticleType"
,
m_collectionName
,
"classifierParticleType"
,
"Particle type decoration"
};
58
SG::WriteDecorHandleKey<xAOD::TruthParticleContainer>
m_outcomeDecoratorKey
59
{
this
,
"classifierParticleOutCome"
,
m_collectionName
,
"classifierParticleOutCome"
,
"Particle outcome decoration"
};
60
SG::WriteDecorHandleKey<xAOD::TruthParticleContainer>
m_classificationDecoratorKey
61
{
this
,
"Classification"
,
m_collectionName
,
"Classification"
,
"Classification code decoration"
};
62
63
ServiceHandle<StoreGateSvc>
m_metaStore
;
65
bool
hasBareDescendent
(
const
xAOD::TruthParticle
* p )
const
;
66
};
67
}
68
69
#endif
// DERIVATIONFRAMEWORK_TRUTHBORNLEPTONCOLLECTIONMAKER_H
AthAlgTool.h
TruthParticle.h
IAugmentationTool.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.
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
DerivationFramework::TruthBornLeptonCollectionMaker::m_particlesKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_particlesKey
< Input particle collection key
Definition
TruthBornLeptonCollectionMaker.h:41
DerivationFramework::TruthBornLeptonCollectionMaker::hasBareDescendent
bool hasBareDescendent(const xAOD::TruthParticle *p) const
Helper function for finding bare descendents of born leptons.
Definition
TruthBornLeptonCollectionMaker.cxx:212
DerivationFramework::TruthBornLeptonCollectionMaker::m_originDecoratorKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_originDecoratorKey
Definition
TruthBornLeptonCollectionMaker.h:55
DerivationFramework::TruthBornLeptonCollectionMaker::m_typeDecoratorKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_typeDecoratorKey
Definition
TruthBornLeptonCollectionMaker.h:57
DerivationFramework::TruthBornLeptonCollectionMaker::m_metaStore
ServiceHandle< StoreGateSvc > m_metaStore
Handle on the metadata store for init.
Definition
TruthBornLeptonCollectionMaker.h:63
DerivationFramework::TruthBornLeptonCollectionMaker::~TruthBornLeptonCollectionMaker
~TruthBornLeptonCollectionMaker()
Definition
TruthBornLeptonCollectionMaker.cxx:38
DerivationFramework::TruthBornLeptonCollectionMaker::m_classificationAccessorKey
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > m_classificationAccessorKey
Output particle collection key.
Definition
TruthBornLeptonCollectionMaker.h:49
DerivationFramework::TruthBornLeptonCollectionMaker::m_outcomeAccessorKey
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > m_outcomeAccessorKey
Definition
TruthBornLeptonCollectionMaker.h:47
DerivationFramework::TruthBornLeptonCollectionMaker::addBranches
virtual StatusCode addBranches(const EventContext &ctx) const
Definition
TruthBornLeptonCollectionMaker.cxx:76
DerivationFramework::TruthBornLeptonCollectionMaker::m_collectionName
SG::WriteHandleKey< xAOD::TruthParticleContainer > m_collectionName
Definition
TruthBornLeptonCollectionMaker.h:52
DerivationFramework::TruthBornLeptonCollectionMaker::m_outcomeDecoratorKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_outcomeDecoratorKey
Definition
TruthBornLeptonCollectionMaker.h:59
DerivationFramework::TruthBornLeptonCollectionMaker::m_originAccessorKey
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > m_originAccessorKey
Definition
TruthBornLeptonCollectionMaker.h:43
DerivationFramework::TruthBornLeptonCollectionMaker::initialize
StatusCode initialize()
Definition
TruthBornLeptonCollectionMaker.cxx:42
DerivationFramework::TruthBornLeptonCollectionMaker::m_typeAccessorKey
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > m_typeAccessorKey
Definition
TruthBornLeptonCollectionMaker.h:45
DerivationFramework::TruthBornLeptonCollectionMaker::m_classificationDecoratorKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_classificationDecoratorKey
Definition
TruthBornLeptonCollectionMaker.h:61
DerivationFramework::TruthBornLeptonCollectionMaker::TruthBornLeptonCollectionMaker
TruthBornLeptonCollectionMaker(const std::string &t, const std::string &n, const IInterface *p)
Definition
TruthBornLeptonCollectionMaker.cxx:28
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
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
ServiceHandle
Definition
ClusterMakerTool.h:36
StoreGateSvc
The Athena Transient Store API.
Definition
StoreGateSvc.h:120
DerivationFramework
THE reconstruction tool.
Definition
CascadeTools.h:16
xAOD::TruthParticle
TruthParticle_v1 TruthParticle
Typedef to implementation.
Definition
Event/xAOD/xAODTruth/xAODTruth/TruthParticle.h:15
Generated on
for ATLAS Offline Software by
1.17.0