ATLAS Offline Software
Loading...
Searching...
No Matches
TauAnalysisTools::TauTruthTrackMatchingTool Class Reference

#include <TauTruthTrackMatchingTool.h>

Inheritance diagram for TauAnalysisTools::TauTruthTrackMatchingTool:
Collaboration diagram for TauAnalysisTools::TauTruthTrackMatchingTool:

Public Member Functions

virtual void print () const
 Print the state of the tool.
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 sysInitialize () override
 Perform system initialization for an algorithm.
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
Additional helper functions, not directly mimicking Athena
template<class T>
const T * getProperty (const std::string &name) const
 Get one of the tool's properties.
const std::string & msg_level_name () const __attribute__((deprecated))
 A deprecated function for getting the message level's name.
const std::string & getName (const void *ptr) const
 Get the name of an object that is / should be in the event store.
SG::sgkey_t getKey (const void *ptr) const
 Get the (hashed) key of an object that is in the event store.

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

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

virtual ASG_TOOL_CLASS(TauTruthTrackMatchingTool, TauAnalysisTools::ITauTruthTrackMatchingTool) public ~TauTruthTrackMatchingTool ()
 Create a proper constructor for Athena.
virtual StatusCode initialize () override
 Declare the interface that the class provides.
virtual StatusCode classifyTracks (std::vector< const xAOD::TauTrack * > &vTracks) const override
virtual StatusCode classifyTrack (const xAOD::TauTrack &xTrackParticle) const override
StatusCode classifyConversion (const xAOD::TauTrack &xTrackParticle, const xAOD::TruthParticle &xTruthParticle) const
StatusCode checkTrackType (const xAOD::TauTrack &xTrackParticle) const
StatusCode checkTrackIsTauInheritant (const xAOD::TauTrack &xTrackParticle) const
bool checkTruthParent (const xAOD::TruthParticle &xTruthParticle, int &iDepth, std::string &sHistory) const
const xAOD::TruthParticlegetTruthParticle (const xAOD::TauTrack &xTrackParticle) const
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

CxxUtils::CachedValue< bool > m_bIsHadronicTrackAvailable
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 39 of file TauTruthTrackMatchingTool.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Member Function Documentation

◆ checkTrackIsTauInheritant()

StatusCode TauTruthTrackMatchingTool::checkTrackIsTauInheritant ( const xAOD::TauTrack & xTrackParticle) const
private

Definition at line 185 of file TauTruthTrackMatchingTool.cxx.

186{
187 static const SG::Decorator< char > decIsHadronicTrack("IsHadronicTrack");
188 static const SG::Decorator< int > decIsHadronicTrackDecayDepth("IsHadronicTrackDecayDepth");
189 static const SG::Decorator< std::string > decDecayHistory("DecayHistory");
190 decIsHadronicTrack(xTrackParticle) = (char)false;
191 int iDepth = -1;
192 const xAOD::TruthParticle* xTruthParticle = getTruthParticle(xTrackParticle);
193 std::string sHistory = "";
194 if (xTruthParticle)
195 {
196 sHistory = std::to_string(xTruthParticle->pdgId());
197 if (checkTruthParent(*xTruthParticle, iDepth, sHistory))
198 {
199 decIsHadronicTrack(xTrackParticle) = (char)true;
200 }
201 }
202 decIsHadronicTrackDecayDepth(xTrackParticle) = iDepth;
203 decDecayHistory(xTrackParticle) = sHistory;
204
205 return StatusCode::SUCCESS;
206}
const xAOD::TruthParticle * getTruthParticle(const xAOD::TauTrack &xTrackParticle) const
bool checkTruthParent(const xAOD::TruthParticle &xTruthParticle, int &iDepth, std::string &sHistory) const
int pdgId() const
PDG ID code.
TruthParticle_v1 TruthParticle
Typedef to implementation.

◆ checkTrackType()

StatusCode TauTruthTrackMatchingTool::checkTrackType ( const xAOD::TauTrack & xTrackParticle) const
private

Definition at line 66 of file TauTruthTrackMatchingTool.cxx.

67{
68 const xAOD::TruthParticle* xTruthParticle = getTruthParticle(xTrackParticle);
69
70 static const SG::Decorator<int> decTruthType("TruthType");
71 if (!xTruthParticle)
72 {
73 decTruthType(xTrackParticle) = TauAnalysisTools::UnclassifiedTrack;
74 return StatusCode::SUCCESS;
75 }
76
77 static const SG::ConstAccessor<float> accTruthMatchProbability("truthMatchProbability");
78
79 if (accTruthMatchProbability(*(xTrackParticle.track())) < 0.5)
80 {
81 decTruthType(xTrackParticle) = TauAnalysisTools::FakeTrack;
82 return StatusCode::SUCCESS;
83 }
84
85 static const SG::ConstAccessor< char > accIsHadronicTrack("IsHadronicTrack");
86 static const SG::ConstAccessor< int > accIsHadronicTrackDecayDepth("IsHadronicTrackDecayDepth");
87 if (static_cast<bool>(accIsHadronicTrack(xTrackParticle)) and accIsHadronicTrackDecayDepth(xTrackParticle) == 0)
88 {
89 decTruthType(xTrackParticle) = TauAnalysisTools::TauTrack;
90 return StatusCode::SUCCESS;
91 }
92
93// AV: The old code had TauAnalysisTools::UnderlyingEventTrack, TauAnalysisTools::PileupTrack, TauAnalysisTools::FakeTrack.
94// Based on https://its.cern.ch/jira/browse/ATLTAU-482 one can speculate the code was designed to distinguish between
95// TauAnalysisTools::UnderlyingEventTrack and TauAnalysisTools::PileupTrack.
96// But such distinction has never been implemented, so the new code has just TauAnalysisTools::UnderlyingEventTrack and TauAnalysisTools::FakeTrack
97
98// protection against code break because of missing uniqueID
99 try{
100 HepMC::no_truth_link(xTruthParticle);
101 } catch (...) {
102 ATH_MSG_DEBUG("unique ID not available for this truth track. Will mark as UnclassifiedTrack ");
103 decTruthType(xTrackParticle) = TauAnalysisTools::UnclassifiedTrack;
104 return StatusCode::SUCCESS;
105 }
106
107 if (HepMC::no_truth_link(xTruthParticle)) decTruthType(xTrackParticle) = TauAnalysisTools::FakeTrack;
108 else if (HepMC::is_simulation_particle(xTruthParticle)) ATH_CHECK(classifyConversion(xTrackParticle, *xTruthParticle));
109 else decTruthType(xTrackParticle) = TauAnalysisTools::UnderlyingEventTrack;
110
111 return StatusCode::SUCCESS;
112}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x)
StatusCode classifyConversion(const xAOD::TauTrack &xTrackParticle, const xAOD::TruthParticle &xTruthParticle) const
const TrackParticle * track() const
bool is_simulation_particle(const T &p)
Method to establish if a particle (or barcode) was created during the simulation (TODO update to be s...
bool no_truth_link(const T &p)
Method to establish if a if the object is linked to something which was never saved to the HepMC Trut...

◆ checkTruthParent()

bool TauTruthTrackMatchingTool::checkTruthParent ( const xAOD::TruthParticle & xTruthParticle,
int & iDepth,
std::string & sHistory ) const
private

Definition at line 209 of file TauTruthTrackMatchingTool.cxx.

210{
211 iDepth++;
212 if (xTruthParticle.hasProdVtx())
213 {
214 const xAOD::TruthVertex* xVertex = xTruthParticle.prodVtx();
215 if (xVertex->nIncomingParticles() != 1)
216 ATH_MSG_VERBOSE("not exactly one incomming particles for vertex, number of incomming particles: "<<xVertex->nIncomingParticles());
217 if (xVertex->nIncomingParticles() > 0)
218 {
219 const xAOD::TruthParticle* xTruthParticleParent = xVertex->incomingParticle(0);
220 if (xTruthParticleParent) {
221 // store parent pdgID in history
222 sHistory.insert(0, std::to_string(xTruthParticleParent->pdgId())+":");//xTruthParticleParent->pdgId());
223 if (MC::isTau(xTruthParticleParent))
224 {
225 return true;
226 }
227 else
228 {
229 return checkTruthParent(*xTruthParticleParent, iDepth, sHistory);
230 }
231 } else {
232 ATH_MSG_WARNING("vertex has incoming particles but no valid parent particle");
233 }
234 }
235 }
236 return false;
237}
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_WARNING(x)
bool hasProdVtx() const
Check for a production vertex on this particle.
const TruthVertex_v1 * prodVtx() const
The production vertex of this particle.
const TruthParticle_v1 * incomingParticle(size_t index) const
Get one of the incoming particles.
size_t nIncomingParticles() const
Get the number of incoming particles.
bool isTau(const T &p)
TruthVertex_v1 TruthVertex
Typedef to implementation.
Definition TruthVertex.h:15

◆ classifyConversion()

StatusCode TauTruthTrackMatchingTool::classifyConversion ( const xAOD::TauTrack & xTrackParticle,
const xAOD::TruthParticle & xTruthParticle ) const
private

Definition at line 115 of file TauTruthTrackMatchingTool.cxx.

116{
117 static const SG::Decorator<int> decTruthType("TruthType");
118 if (!xTruthParticle.isElectron())
119 {
120 decTruthType(xTrackParticle) = TauAnalysisTools::SecondaryTrack;
121 return StatusCode::SUCCESS;
122 }
123 const xAOD::TruthVertex* xProdVertex = xTruthParticle.prodVtx();
124 if ( !xProdVertex )
125 {
126 decTruthType(xTrackParticle) = TauAnalysisTools::SecondaryTrack;
127 return StatusCode::SUCCESS;
128 }
129 for ( size_t iIncomingParticle = 0; iIncomingParticle < xProdVertex->nIncomingParticles(); ++iIncomingParticle )
130 {
131 const xAOD::TruthParticle* xTruthParent = xProdVertex->incomingParticle(iIncomingParticle);
132 if (!xTruthParent)
133 {
134 ATH_MSG_WARNING("Truth parent of tau decay was not found in TruthParticles container. Please ensure that this container has the full tau decay information or produce the TruthTaus container in AtlasDerivation.\nInformation on how to do this can be found here:\nhttps://twiki.cern.ch/twiki/bin/viewauth/AtlasProtected/TauPreRecommendations2015#Accessing_Tau_Truth_Information");
135 decTruthType(xTrackParticle) = TauAnalysisTools::SecondaryTrack;
136 return StatusCode::SUCCESS;
137 }
138
139 if (!xTruthParent->isPhoton())
140 {
141 decTruthType(xTrackParticle) = TauAnalysisTools::SecondaryTrack;
142 return StatusCode::SUCCESS;
143 }
144 }
145
146 size_t iElectrons = 0;
147 for ( size_t iOutgoingParticle = 0; iOutgoingParticle < xProdVertex->nOutgoingParticles(); ++iOutgoingParticle )
148 {
149 const xAOD::TruthParticle* xTruthDaughter = xProdVertex->outgoingParticle(iOutgoingParticle);
150 if (!xTruthDaughter)
151 {
152 ATH_MSG_WARNING("Truth daughter of tau decay was not found in TruthParticles container. Please ensure that this container has the full tau decay information or produce the TruthTaus container in AtlasDerivation.\nInformation on how to do this can be found here:\nhttps://twiki.cern.ch/twiki/bin/viewauth/AtlasProtected/TauPreRecommendations2015#Accessing_Tau_Truth_Information");
153 decTruthType(xTrackParticle) = TauAnalysisTools::SecondaryTrack;
154 return StatusCode::SUCCESS;
155 }
156
157 if (!xTruthDaughter->isElectron())
158 {
159 decTruthType(xTrackParticle) = TauAnalysisTools::SecondaryTrack;
160 return StatusCode::SUCCESS;
161 }
162 iElectrons++;
163 }
164 if (iElectrons != 2)
165 {
166 decTruthType(xTrackParticle) = TauAnalysisTools::SecondaryTrack;
167 return StatusCode::SUCCESS;
168 }
169 decTruthType(xTrackParticle) = TauAnalysisTools::ConversionTrack;
170 return StatusCode::SUCCESS;
171}
bool isElectron() const
Whether the particle is an electron (or positron)
bool isPhoton() const
Whether the particle is a photon.
const TruthParticle_v1 * outgoingParticle(size_t index) const
Get one of the outgoing particles.
size_t nOutgoingParticles() const
Get the number of outgoing particles.

◆ classifyTrack()

StatusCode TauTruthTrackMatchingTool::classifyTrack ( const xAOD::TauTrack & xTrackParticle) const
overrideprivatevirtual

Implements TauAnalysisTools::ITauTruthTrackMatchingTool.

Definition at line 31 of file TauTruthTrackMatchingTool.cxx.

32{
33 // don't classify tracks if this was already done
34 if (!m_bIsHadronicTrackAvailable.isValid())
35 {
36 static const SG::ConstAccessor<char> accIsHadronicTrack("IsHadronicTrack");
37 bool avail = accIsHadronicTrack.isAvailable(xTrackParticle);
39 if (avail)
40 {
41 ATH_MSG_DEBUG("IsHadronicTrack decoration is available on first track processed, switched of rerun for further taus.");
42 ATH_MSG_DEBUG("If a truth track matching needs to be redone, please pass a shallow copy of the original track.");
43 }
44 }
46 return StatusCode::SUCCESS;
47
48 ATH_CHECK(checkTrackIsTauInheritant(xTrackParticle));
49 ATH_CHECK(checkTrackType(xTrackParticle));
50 return StatusCode::SUCCESS;
51}
CxxUtils::CachedValue< bool > m_bIsHadronicTrackAvailable
StatusCode checkTrackIsTauInheritant(const xAOD::TauTrack &xTrackParticle) const
StatusCode checkTrackType(const xAOD::TauTrack &xTrackParticle) const

◆ classifyTracks()

StatusCode TauTruthTrackMatchingTool::classifyTracks ( std::vector< const xAOD::TauTrack * > & vTracks) const
overrideprivatevirtual

Implements TauAnalysisTools::ITauTruthTrackMatchingTool.

Definition at line 54 of file TauTruthTrackMatchingTool.cxx.

55{
56 for (auto xTrackParticle : vTrackParticles)
57 {
58 ATH_CHECK(checkTrackIsTauInheritant(*xTrackParticle));
59 ATH_CHECK(checkTrackType(*xTrackParticle));
60 }
61 return StatusCode::SUCCESS;
62}

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::evtStore ( )
inlineinherited

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

Definition at line 85 of file AthCommonDataStore.h.

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::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

◆ getKey()

SG::sgkey_t asg::AsgTool::getKey ( const void * ptr) const
inherited

Get the (hashed) key of an object that is in the event store.

This is a bit of a special one. StoreGateSvc and xAOD::TEvent both provide ways for getting the SG::sgkey_t key for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.

In order to allow tools to efficiently perform this operation, they can use this helper function.

See also
asg::AsgTool::getName
Parameters
ptrThe bare pointer to the object that the event store should know about
Returns
The hashed key of the object in the store. If not found, an invalid (zero) key.

Definition at line 119 of file AsgTool.cxx.

119 {
120
121#ifdef XAOD_STANDALONE
122 // In case we use @c xAOD::TEvent, we have a direct function call
123 // for this.
124 return evtStore()->event()->getKey( ptr );
125#else
126 const SG::DataProxy* proxy = evtStore()->proxy( ptr );
127 return ( proxy == nullptr ? 0 : proxy->sgkey() );
128#endif // XAOD_STANDALONE
129 }
ServiceHandle< StoreGateSvc > & evtStore()

◆ getName()

const std::string & asg::AsgTool::getName ( const void * ptr) const
inherited

Get the name of an object that is / should be in the event store.

This is a bit of a special one. StoreGateSvc and xAOD::TEvent both provide ways for getting the std::string name for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.

In order to allow tools to efficiently perform this operation, they can use this helper function.

See also
asg::AsgTool::getKey
Parameters
ptrThe bare pointer to the object that the event store should know about
Returns
The string name of the object in the store. If not found, an empty string.

Definition at line 106 of file AsgTool.cxx.

106 {
107
108#ifdef XAOD_STANDALONE
109 // In case we use @c xAOD::TEvent, we have a direct function call
110 // for this.
111 return evtStore()->event()->getName( ptr );
112#else
113 const SG::DataProxy* proxy = evtStore()->proxy( ptr );
114 static const std::string dummy = "";
115 return ( proxy == nullptr ? dummy : proxy->name() );
116#endif // XAOD_STANDALONE
117 }

◆ getProperty()

template<class T>
const T * asg::AsgTool::getProperty ( const std::string & name) const
inherited

Get one of the tool's properties.

◆ getTruthParticle()

const xAOD::TruthParticle * TauTruthTrackMatchingTool::getTruthParticle ( const xAOD::TauTrack & xTrackParticle) const
private

Definition at line 174 of file TauTruthTrackMatchingTool.cxx.

175{
176 static const SG::ConstAccessor< ElementLink<xAOD::TruthParticleContainer> > accTruthParticleLink("truthParticleLink");
177 auto xTruthParticleLink = accTruthParticleLink(*(xTrackParticle.track()));
178 //check validity of truth particle element link
179 if (xTruthParticleLink.isValid())
180 return (*xTruthParticleLink);
181 return nullptr;
182}

◆ initialize()

StatusCode TauTruthTrackMatchingTool::initialize ( )
overrideprivatevirtual

Declare the interface that the class provides.

Function initialising the tool

Implements TauAnalysisTools::ITauTruthTrackMatchingTool.

Definition at line 25 of file TauTruthTrackMatchingTool.cxx.

26{
27 return StatusCode::SUCCESS;
28}

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::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.

◆ msg()

MsgStream & AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg_level_name()

const std::string & asg::AsgTool::msg_level_name ( ) const
inherited

A deprecated function for getting the message level's name.

Instead of using this, weirdly named function, user code should get the string name of the current minimum message level (in case they really need it...), with:

MSG::name( msg().level() )

This function's name doesn't follow the ATLAS coding rules, and as such will be removed in the not too distant future.

Returns
The string name of the current minimum message level that's printed

Definition at line 101 of file AsgTool.cxx.

101 {
102
103 return MSG::name( msg().level() );
104 }
MsgStream & msg() const
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
Definition MsgLevel.cxx:19

◆ msgLvl()

bool AthCommonMsg< AlgTool >::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< AlgTool > >::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.

◆ print()

◆ 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< AlgTool > >::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< AlgTool > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in asg::AsgMetadataTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and DerivationFramework::CfAthAlgTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::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< AlgTool > >::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 }
std::vector< SG::VarHandleKeyArray * > m_vhka

◆ ~TauTruthTrackMatchingTool()

TauTruthTrackMatchingTool::~TauTruthTrackMatchingTool ( )
privatevirtual

Create a proper constructor for Athena.

Definition at line 21 of file TauTruthTrackMatchingTool.cxx.

22{}

Member Data Documentation

◆ m_bIsHadronicTrackAvailable

CxxUtils::CachedValue<bool> TauAnalysisTools::TauTruthTrackMatchingTool::m_bIsHadronicTrackAvailable
private

Definition at line 70 of file TauTruthTrackMatchingTool.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.


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