ATLAS Offline Software
Loading...
Searching...
No Matches
FlavorTagDiscriminants::TrackTruthDecoratorAlg Class Reference

#include <TrackTruthDecoratorAlg.h>

Inheritance diagram for FlavorTagDiscriminants::TrackTruthDecoratorAlg:
Collaboration diagram for FlavorTagDiscriminants::TrackTruthDecoratorAlg:

Public Member Functions

 TrackTruthDecoratorAlg (const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize () override
virtual StatusCode execute (const EventContext &) const override
virtual StatusCode sysInitialize () override
 Override sysInitialize.
virtual bool isClonable () const override
 Specify if the algorithm is clonable.
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm.
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies.
virtual bool filterPassed (const EventContext &ctx) const
virtual void setFilterPassed (bool state, const EventContext &ctx) const
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed.

Private Types

using RDHK = SG::ReadDecorHandleKey< xAOD::TruthParticleContainer >
using WDHK = SG::WriteDecorHandleKey< xAOD::TrackParticleContainer >
typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

SG::ReadHandleKey< xAOD::TrackParticleContainerm_TrackContainerKey
SG::ReadHandleKey< xAOD::MuonContainerm_MuonContainerKey
RDHK m_acc_type_label
RDHK m_acc_source_label
RDHK m_acc_vertex_index
RDHK m_acc_parent_uniqueID
WDHK m_dec_origin_label
WDHK m_dec_type_label
WDHK m_dec_source_label
WDHK m_dec_vertex_index
WDHK m_dec_uniqueID
WDHK m_dec_parent_uniqueID
WDHK m_dec_muon_origin_label
ToolHandle< InDet::InDetTrackTruthOriginToolm_trackTruthOriginTool
ToolHandle< CP::IClassificationToolm_truthLeptonTool
std::unordered_map< Truth::Type, unsigned int > m_muTruthMap
Gaudi::Property< bool > m_use_barcode
SG::ConstAccessor< int > m_uid {"uid"}
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default)
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Detailed Description

Definition at line 23 of file TrackTruthDecoratorAlg.h.

Member Typedef Documentation

◆ RDHK

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

◆ WDHK

Constructor & Destructor Documentation

◆ TrackTruthDecoratorAlg()

FlavorTagDiscriminants::TrackTruthDecoratorAlg::TrackTruthDecoratorAlg ( const std::string & name,
ISvcLocator * pSvcLocator )

Definition at line 25 of file TrackTruthDecoratorAlg.cxx.

27 : AthReentrantAlgorithm(name, loc) {}

Member Function Documentation

◆ cardinality()

unsigned int AthCommonReentrantAlgorithm< Gaudi::Algorithm >::cardinality ( ) const
overridevirtualinherited

Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.

Override this to return 0 for reentrant algorithms.

Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.

64{
65 return 0;
66}

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ execute()

StatusCode FlavorTagDiscriminants::TrackTruthDecoratorAlg::execute ( const EventContext & ctx) const
overridevirtual

Definition at line 77 of file TrackTruthDecoratorAlg.cxx.

77 {
78 ATH_MSG_DEBUG( "Executing " << name() << "... " );
80
81 // read collections
82 SG::ReadHandle<TPC> tracks(m_TrackContainerKey, ctx);
83 CHECK( tracks.isValid() );
84 ATH_MSG_DEBUG( "Retrieved " << tracks->size() << " tracks..." );
85 SG::ReadHandle<xAOD::MuonContainer> muons(m_MuonContainerKey,ctx);
86 CHECK( tracks.isValid() );
87 ATH_MSG_DEBUG( "Retrieved " << muons->size() << " muons..." );
88
89 // instantiate accessors
90 using RDH = SG::ReadDecorHandle<xAOD::TruthParticleContainer, int>;
91 RDH acc_type_label(m_acc_type_label, ctx);
92 RDH acc_source_label(m_acc_source_label, ctx);
93 RDH acc_vertex_index(m_acc_vertex_index, ctx);
94 RDH acc_parent_uniqueID(m_acc_parent_uniqueID, ctx);
95
96 // instantiate decorators
97 using WDH = SG::WriteDecorHandle<TPC, int>;
98 WDH dec_origin_label(m_dec_origin_label, ctx);
99 WDH dec_type_label(m_dec_type_label, ctx);
100 WDH dec_source_label(m_dec_source_label, ctx);
101 WDH dec_vertex_index(m_dec_vertex_index, ctx);
102 WDH dec_uniqueID(m_dec_uniqueID, ctx);
103 WDH dec_parent_uniqueID(m_dec_parent_uniqueID, ctx);
104 WDH dec_muon_origin_label(m_dec_muon_origin_label, ctx);
105
106 // decorate loop
107 std::vector<const xAOD::TrackParticle*> tracks_vector(tracks->begin(), tracks->end());
108 for ( const auto& track : tracks_vector ) {
109
110 // for the origin label we need to start from the track object (to label fake tracks)
111 int trackTruthOrigin = m_trackTruthOriginTool->getTrackOrigin(track);
112 dec_origin_label(*track) = InDet::ExclusiveOrigin::getExclusiveOrigin(trackTruthOrigin);
113
114 // everything else is already decorated to the associated truth particle
115 const auto truth = m_trackTruthOriginTool->getTruth(track);
116 // ATLASRECTS-8290: replace m_uid with HepMC::uniqueID
117 dec_uniqueID(*track) = truth ? m_uid(*truth) : HepMC::UNDEFINED_ID;
118 dec_parent_uniqueID(*track) = truth ? acc_parent_uniqueID(*truth) : HepMC::UNDEFINED_ID;
119 dec_type_label(*track) = truth ? acc_type_label(*truth) : TruthDecoratorHelpers::TruthType::Label::NoTruth;
120 dec_source_label(*track) = truth ? acc_source_label(*truth) : TruthDecoratorHelpers::TruthSource::Label::NoTruth;
121 dec_vertex_index(*track) = truth ? acc_vertex_index(*truth) : -2;
122 dec_muon_origin_label(*track) = -2;
123
124 }
125 if ( !m_truthLeptonTool.empty() ) {
126
127 // decorate muon tracks with truth origin
128 for ( const auto muon : *muons ) {
129
130 // Check if the muon is a combined muon
131 if (muon->muonType() != xAOD::Muon::MuonType::Combined) { continue; }
132
133 // Classify muon truth origin (https://gitlab.cern.ch/atlas/athena/-/tree/main/PhysicsAnalysis/AnalysisCommon/TruthClassification)
134 unsigned int muTruthOrigin = 0;
135 ATH_CHECK(m_truthLeptonTool->classify(*muon, muTruthOrigin));
136 Truth::Type muTruthOriginType = static_cast<Truth::Type>(muTruthOrigin);
137
138 // Get the track associated to the muon
139 auto track_link = muon->inDetTrackParticleLink();
140 if ( !track_link.isValid() ) { continue; }
141 auto track = *track_link;
142
143 // Get the truth particle associated to the track
144 const auto truth = m_trackTruthOriginTool->getTruth(track);
145 if ( !truth ) { continue; }
146
147 // Get the track truth origin
148 int trackTruthOrigin = m_trackTruthOriginTool->getTrackOrigin(track);
149
150 if ( abs(truth->pdgId()) != 13 ) {
151 // Check if the truth particle associated to the track is not a muon
152 muTruthOrigin = 9;
153 }
154 else if ( muTruthOriginType == Truth::Type::CHadronDecay && InDet::TrkOrigin::isFromDfromB(trackTruthOrigin) ) {
155 // Check if a muon is FromC and the associated track is FromBC
156 muTruthOrigin = 4;
157 }
158 else if ( muTruthOriginType == Truth::Type::CHadronDecay && !InDet::TrkOrigin::isFromDfromB(trackTruthOrigin) ) {
159 // Check if a muon is FromC and the associated track is not FromBC
160 muTruthOrigin = 5;
161 }
162 else {
163 // any alternative truth origin label are taken from TruthClassificationTool and mapped
164 auto it = m_muTruthMap.find(muTruthOriginType);
165 if ( it != m_muTruthMap.end() ){
166 muTruthOrigin = it->second;
167 }
168 else {
169 // raise an error if the muon truth origin label is not found in the map
170 ATH_MSG_ERROR("Muon truth origin not found in the map: " << static_cast<int>(muTruthOriginType));
171 return StatusCode::FAILURE;
172 }
173 }
174
175 // decorate the muon track
176 dec_muon_origin_label(*track) = muTruthOrigin;
177 }
178 }
179 return StatusCode::SUCCESS;
180 }
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_ERROR(x)
#define ATH_MSG_DEBUG(x)
#define CHECK(...)
Evaluate an expression and check for errors.
IndexedConstituentUserInfo::Label Label
std::unordered_map< Truth::Type, unsigned int > m_muTruthMap
ToolHandle< CP::IClassificationTool > m_truthLeptonTool
SG::ReadHandleKey< xAOD::MuonContainer > m_MuonContainerKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_TrackContainerKey
ToolHandle< InDet::InDetTrackTruthOriginTool > m_trackTruthOriginTool
constexpr int UNDEFINED_ID
bool isFromDfromB(int origin)
from B-->D decay chain
Type
truth classification type enum
TrackParticleContainer_v1 TrackParticleContainer
Definition of the current "TrackParticle container version".

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ extraOutputDeps()

const DataObjIDColl & AthCommonReentrantAlgorithm< Gaudi::Algorithm >::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 94 of file AthCommonReentrantAlgorithm.cxx.

90{
91 // If we didn't find any symlinks to add, just return the collection
92 // from the base class. Otherwise, return the extended collection.
93 if (!m_extendedExtraObjects.empty()) {
95 }
97}
An algorithm that can be simultaneously executed in multiple threads.

◆ filterPassed()

virtual bool AthCommonReentrantAlgorithm< Gaudi::Algorithm >::filterPassed ( const EventContext & ctx) const
inlinevirtualinherited

Definition at line 96 of file AthCommonReentrantAlgorithm.h.

96 {
97 return execState( ctx ).filterPassed();
98 }
virtual bool filterPassed(const EventContext &ctx) const

◆ initialize()

StatusCode FlavorTagDiscriminants::TrackTruthDecoratorAlg::initialize ( )
overridevirtual

Definition at line 29 of file TrackTruthDecoratorAlg.cxx.

29 {
30 ATH_MSG_INFO( "Inizializing " << name() << "... " );
31
32 // Initialize Container keys
33 ATH_MSG_DEBUG( "Inizializing containers:" );
36 ATH_CHECK( m_TrackContainerKey.initialize() );
37 ATH_CHECK( m_MuonContainerKey.initialize() );
38
39 // Initialize accessors
40 m_acc_type_label = "TruthParticles." + m_acc_type_label.key();
41 m_acc_source_label = "TruthParticles." + m_acc_source_label.key();
42 m_acc_vertex_index = "TruthParticles." + m_acc_vertex_index.key();
43 m_acc_parent_uniqueID = "TruthParticles." + m_acc_parent_uniqueID.key();
44 ATH_CHECK( m_acc_type_label.initialize() );
45 ATH_CHECK( m_acc_source_label.initialize() );
46 ATH_CHECK( m_acc_vertex_index.initialize() );
47 ATH_CHECK( m_acc_parent_uniqueID.initialize() );
48
49 // Initialize decorators
57 CHECK( m_dec_origin_label.initialize() );
58 CHECK( m_dec_type_label.initialize() );
59 CHECK( m_dec_source_label.initialize() );
60 CHECK( m_dec_vertex_index.initialize() );
61 CHECK( m_dec_uniqueID.initialize() );
62 CHECK( m_dec_parent_uniqueID.initialize() );
63 CHECK( m_dec_muon_origin_label.initialize() );
64
65 // Retrieve tools
67 if (!m_truthLeptonTool.empty()) {
68 ATH_CHECK( m_truthLeptonTool.retrieve() );
69 }
70
71 // ATLASRECTS-8290: this should be removed eventually
72 if (m_use_barcode) m_uid = SG::ConstAccessor<int>("barcode");
73
74 return StatusCode::SUCCESS;
75 }
#define ATH_MSG_INFO(x)

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ isClonable()

◆ msg()

MsgStream & AthCommonMsg< Gaudi::Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msgLvl()

bool AthCommonMsg< Gaudi::Algorithm >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ renounce()

std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ setFilterPassed()

virtual void AthCommonReentrantAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool state,
const EventContext & ctx ) const
inlinevirtualinherited

Definition at line 100 of file AthCommonReentrantAlgorithm.h.

100 {
102 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const

◆ sysExecute()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysExecute ( const EventContext & ctx)
overridevirtualinherited

Execute an algorithm.

We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.

Definition at line 85 of file AthCommonReentrantAlgorithm.cxx.

77{
78 return BaseAlg::sysExecute (ctx);
79}

◆ sysInitialize()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysInitialize ( )
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.

Reimplemented in HypoBase, and InputMakerBase.

Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.

107 {
109
110 if (sc.isFailure()) {
111 return sc;
112 }
113
114 ServiceHandle<ICondSvc> cs("CondSvc",name());
115 for (auto h : outputHandles()) {
116 if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
117 // do this inside the loop so we don't create the CondSvc until needed
118 if ( cs.retrieve().isFailure() ) {
119 ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
120 return StatusCode::SUCCESS;
121 }
122 if (cs->regHandle(this,*h).isFailure()) {
124 ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
125 << " with CondSvc");
126 }
127 }
128 }
129 return sc;
130}
#define ATH_MSG_WARNING(x)
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308 {
309 // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310 // << " size: " << m_vhka.size() << endmsg;
311 for (auto &a : m_vhka) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }

Member Data Documentation

◆ m_acc_parent_uniqueID

RDHK FlavorTagDiscriminants::TrackTruthDecoratorAlg::m_acc_parent_uniqueID
private
Initial value:
{
this, "acc_ftagTruthParentBarcode", "ftagTruthParentBarcode",
"Accessor for the uniqueID of the parent of linked truth particle"}

Definition at line 51 of file TrackTruthDecoratorAlg.h.

51 {
52 this, "acc_ftagTruthParentBarcode", "ftagTruthParentBarcode",
53 "Accessor for the uniqueID of the parent of linked truth particle"};

◆ m_acc_source_label

RDHK FlavorTagDiscriminants::TrackTruthDecoratorAlg::m_acc_source_label
private
Initial value:
{
this, "acc_ftagTruthSourceLabel", "ftagTruthSourceLabel",
"Accessor for the truth label for the source of secondary particles"}

Definition at line 45 of file TrackTruthDecoratorAlg.h.

45 {
46 this, "acc_ftagTruthSourceLabel", "ftagTruthSourceLabel",
47 "Accessor for the truth label for the source of secondary particles"};

◆ m_acc_type_label

RDHK FlavorTagDiscriminants::TrackTruthDecoratorAlg::m_acc_type_label
private
Initial value:
{
this, "acc_ftagTruthTypeLabel", "ftagTruthTypeLabel",
"Accessor for the truth type label of the truth particle"}

Definition at line 42 of file TrackTruthDecoratorAlg.h.

42 {
43 this, "acc_ftagTruthTypeLabel", "ftagTruthTypeLabel",
44 "Accessor for the truth type label of the truth particle"};

◆ m_acc_vertex_index

RDHK FlavorTagDiscriminants::TrackTruthDecoratorAlg::m_acc_vertex_index
private
Initial value:
{
this, "acc_ftagTruthVertexIndex", "ftagTruthVertexIndex",
"Accessor for the vertex index of the truth particle"}

Definition at line 48 of file TrackTruthDecoratorAlg.h.

48 {
49 this, "acc_ftagTruthVertexIndex", "ftagTruthVertexIndex",
50 "Accessor for the vertex index of the truth particle"};

◆ m_dec_muon_origin_label

WDHK FlavorTagDiscriminants::TrackTruthDecoratorAlg::m_dec_muon_origin_label
private
Initial value:
{
this, "dec_ftagTruthMuonOriginLabel", "ftagTruthMuonOriginLabel",
"Exclusive origin label of the muon"}

Definition at line 75 of file TrackTruthDecoratorAlg.h.

75 {
76 this, "dec_ftagTruthMuonOriginLabel", "ftagTruthMuonOriginLabel",
77 "Exclusive origin label of the muon"};

◆ m_dec_origin_label

WDHK FlavorTagDiscriminants::TrackTruthDecoratorAlg::m_dec_origin_label
private
Initial value:
{
this, "dec_ftagTruthOriginLabel", "ftagTruthOriginLabel",
"Exclusive origin label of the track"}

Definition at line 57 of file TrackTruthDecoratorAlg.h.

57 {
58 this, "dec_ftagTruthOriginLabel", "ftagTruthOriginLabel",
59 "Exclusive origin label of the track"};

◆ m_dec_parent_uniqueID

WDHK FlavorTagDiscriminants::TrackTruthDecoratorAlg::m_dec_parent_uniqueID
private
Initial value:
{
this, "dec_ftagTruthParentBarcode", "ftagTruthParentBarcode",
"UniqueID of parent of linked truth particle"}

Definition at line 72 of file TrackTruthDecoratorAlg.h.

72 {
73 this, "dec_ftagTruthParentBarcode", "ftagTruthParentBarcode",
74 "UniqueID of parent of linked truth particle"};

◆ m_dec_source_label

WDHK FlavorTagDiscriminants::TrackTruthDecoratorAlg::m_dec_source_label
private
Initial value:
{
this, "dec_ftagTruthSourceLabel", "ftagTruthSourceLabel",
"Exclusive truth label for the source of secondary tracks"}

Definition at line 63 of file TrackTruthDecoratorAlg.h.

63 {
64 this, "dec_ftagTruthSourceLabel", "ftagTruthSourceLabel",
65 "Exclusive truth label for the source of secondary tracks"};

◆ m_dec_type_label

WDHK FlavorTagDiscriminants::TrackTruthDecoratorAlg::m_dec_type_label
private
Initial value:
{
this, "dec_ftagTruthTypeLabel", "ftagTruthTypeLabel",
"Exclusive truth type label of the track"}

Definition at line 60 of file TrackTruthDecoratorAlg.h.

60 {
61 this, "dec_ftagTruthTypeLabel", "ftagTruthTypeLabel",
62 "Exclusive truth type label of the track"};

◆ m_dec_uniqueID

WDHK FlavorTagDiscriminants::TrackTruthDecoratorAlg::m_dec_uniqueID
private
Initial value:
{
this, "dec_ftagTruthBarcode", "ftagTruthBarcode",
"UniqueID of linked truth particle"}

Definition at line 69 of file TrackTruthDecoratorAlg.h.

69 {
70 this, "dec_ftagTruthBarcode", "ftagTruthBarcode",
71 "UniqueID of linked truth particle"};

◆ m_dec_vertex_index

WDHK FlavorTagDiscriminants::TrackTruthDecoratorAlg::m_dec_vertex_index
private
Initial value:
{
this, "dec_ftagTruthVertexIndex", "ftagTruthVertexIndex",
"ftagTruth vertex index of the track"}

Definition at line 66 of file TrackTruthDecoratorAlg.h.

66 {
67 this, "dec_ftagTruthVertexIndex", "ftagTruthVertexIndex",
68 "ftagTruth vertex index of the track"};

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 114 of file AthCommonReentrantAlgorithm.h.

◆ m_MuonContainerKey

SG::ReadHandleKey< xAOD::MuonContainer > FlavorTagDiscriminants::TrackTruthDecoratorAlg::m_MuonContainerKey
private
Initial value:
{
this, "muonContainer", "Muons",
"Key for the input muon collection"}

Definition at line 36 of file TrackTruthDecoratorAlg.h.

36 {
37 this, "muonContainer", "Muons",
38 "Key for the input muon collection"};

◆ m_muTruthMap

std::unordered_map<Truth::Type,unsigned int> FlavorTagDiscriminants::TrackTruthDecoratorAlg::m_muTruthMap
private
Initial value:
= {
{Truth::Type::Unknown, 0},
{Truth::Type::KnownUnknown, 1},
{Truth::Type::PromptMuon, 2},
{Truth::Type::BHadronDecay, 3},
{Truth::Type::LightFlavorDecay, 6},
{Truth::Type::TauDecay, 7},
{Truth::Type::TauDecayLike, 8},
{Truth::Type::BHadronDecayLike, 8},
{Truth::Type::CHadronDecayLike, 8},
{Truth::Type::NonMuonlike, 8},
}

Definition at line 90 of file TrackTruthDecoratorAlg.h.

90 {
91 {Truth::Type::Unknown, 0}, //Fake(Uknown) muon
92 {Truth::Type::KnownUnknown, 1}, //KnownUknown muon
93 {Truth::Type::PromptMuon, 2}, //Prompt muon
94 {Truth::Type::BHadronDecay, 3}, //From B muon
95 // FromBC and FromC decay label are handled in the implementation since FromBC is not directly available for TruthClassificationTool
96 // FromBC and FromC decay label are handled in the implementation since FromBC is not directly available for TruthClassificationTool
97 {Truth::Type::LightFlavorDecay, 6}, //From light muon
98 {Truth::Type::TauDecay, 7}, //From tau muon
99 {Truth::Type::TauDecayLike, 8}, //4-like muons
100 {Truth::Type::BHadronDecayLike, 8}, //4-like muons
101 {Truth::Type::CHadronDecayLike, 8}, //4-like muons
102 {Truth::Type::NonMuonlike, 8}, //Non-muons like muons
103 // There are also cases where the muon has the truth particle associated to the ID track that is not a muon. Those muons are labelled as 9 (NotInnerDetector muons)
104 };

◆ m_TrackContainerKey

SG::ReadHandleKey< xAOD::TrackParticleContainer > FlavorTagDiscriminants::TrackTruthDecoratorAlg::m_TrackContainerKey
private
Initial value:
{
this, "trackContainer", "InDetTrackParticles",
"Key for the input track collection"}

Definition at line 33 of file TrackTruthDecoratorAlg.h.

33 {
34 this, "trackContainer", "InDetTrackParticles",
35 "Key for the input track collection"};

◆ m_trackTruthOriginTool

ToolHandle<InDet::InDetTrackTruthOriginTool> FlavorTagDiscriminants::TrackTruthDecoratorAlg::m_trackTruthOriginTool
private
Initial value:
{
this, "trackTruthOriginTool", "InDet::InDetTrackTruthOriginTool",
"track truth origin tool"}

Definition at line 81 of file TrackTruthDecoratorAlg.h.

81 {
82 this, "trackTruthOriginTool", "InDet::InDetTrackTruthOriginTool",
83 "track truth origin tool"};

◆ m_truthLeptonTool

ToolHandle<CP::IClassificationTool> FlavorTagDiscriminants::TrackTruthDecoratorAlg::m_truthLeptonTool
private
Initial value:
{
this, "truthLeptonTool", "",
"Lepton truth classification tool"}

Definition at line 85 of file TrackTruthDecoratorAlg.h.

85 {
86 this, "truthLeptonTool", "",
87 "Lepton truth classification tool"};

◆ m_uid

SG::ConstAccessor<int> FlavorTagDiscriminants::TrackTruthDecoratorAlg::m_uid {"uid"}
private

Definition at line 110 of file TrackTruthDecoratorAlg.h.

110{"uid"};

◆ m_use_barcode

Gaudi::Property<bool> FlavorTagDiscriminants::TrackTruthDecoratorAlg::m_use_barcode
private
Initial value:
{
this, "useBarcode", false, "use barcode rather than UID"
}

Definition at line 107 of file TrackTruthDecoratorAlg.h.

107 {
108 this, "useBarcode", false, "use barcode rather than UID"
109 };

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files: