ATLAS Offline Software
Loading...
Searching...
No Matches
Trig::R3MatchingTool Class Reference

#include <R3MatchingTool.h>

Inheritance diagram for Trig::R3MatchingTool:
Collaboration diagram for Trig::R3MatchingTool:

Public Types

using multInfo_t = std::vector<std::size_t>
using typeInfo_t = std::vector<xAODType::ObjectType>
using chainInfo_t = std::pair<multInfo_t, typeInfo_t>

Public Member Functions

 R3MatchingTool (const std::string &name)
 ~R3MatchingTool ()
virtual StatusCode initialize () override
 Dummy implementation of the initialisation function.
virtual bool match (const std::vector< const xAOD::IParticle * > &recoObjects, std::string_view chain, double matchThreshold, bool rerun) const override
 multi-object trigger matching
virtual bool match (const xAOD::IParticle &recoObject, std::string_view chain, double matchThreshold, bool rerun) const override
 single object trigger matching. matchThreshold is typically the deltaR requirement to obtain positive matching
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

bool matchObjects (const xAOD::IParticle *reco, const ElementLink< xAOD::IParticleContainer > &onlineLink, xAODType::ObjectType onlineType, std::map< std::pair< uint32_t, uint32_t >, bool > &cache, double drThreshold) const
const chainInfo_tgetChainInfo (const std::string &chain) const
virtual MatchingImplementationimpl () const override
 Inherited from the interface but does nothing.
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

ToolHandle< TrigDecisionToolm_trigDecTool
ToolHandle< Trig::IMatchScoringToolm_scoreTool
Gaudi::Property< bool > m_includeSubfeatures
std::map< std::string, chainInfo_t > m_chainInfoCache ATLAS_THREAD_SAFE
std::mutex m_chainInfoMutex ATLAS_THREAD_SAFE
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 20 of file R3MatchingTool.h.

Member Typedef Documentation

◆ chainInfo_t

Definition at line 26 of file R3MatchingTool.h.

◆ multInfo_t

using Trig::R3MatchingTool::multInfo_t = std::vector<std::size_t>

Definition at line 24 of file R3MatchingTool.h.

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

◆ typeInfo_t

Definition at line 25 of file R3MatchingTool.h.

Constructor & Destructor Documentation

◆ R3MatchingTool()

Trig::R3MatchingTool::R3MatchingTool ( const std::string & name)

Definition at line 19 of file R3MatchingTool.cxx.

19 : asg::AsgTool(name)
20 {
21 m_trigDecTool.setTypeAndName("Trig::TrigDecisionTool/TrigDecisionTool");
22 declareProperty("TrigDecisionTool", m_trigDecTool, "The trigger decision tool");
23 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ToolHandle< TrigDecisionTool > m_trigDecTool

◆ ~R3MatchingTool()

Trig::R3MatchingTool::~R3MatchingTool ( )

Definition at line 25 of file R3MatchingTool.cxx.

25{}

Member Function Documentation

◆ 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 }

◆ 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

◆ getChainInfo()

const R3MatchingTool::chainInfo_t & Trig::R3MatchingTool::getChainInfo ( const std::string & chain) const
private

Definition at line 203 of file R3MatchingTool.cxx.

204 {
205 std::lock_guard<std::mutex> guard(m_chainInfoMutex);
206 auto cacheItr = m_chainInfoCache.find(chain);
207 if (cacheItr == m_chainInfoCache.end())
208 {
210 for (const ChainNameParser::LegInfo &legInfo : ChainNameParser::HLTChainInfo(chain))
211 {
212 const xAODType::ObjectType type = legInfo.type();
213 if (type == xAODType::Other)
214 {
215 // Use 0 to signal that a leg expects no IParticle features
216 info.first.push_back(0);
217 }
218 else
219 {
220 info.first.push_back(legInfo.multiplicity);
221 for (std::size_t idx = 0; idx < legInfo.multiplicity; ++idx)
222 info.second.push_back(type);
223 }
224 }
225 cacheItr = m_chainInfoCache.insert(std::make_pair(chain, std::move(info))).first;
226 }
227 return cacheItr->second;
228 }
std::pair< multInfo_t, typeInfo_t > chainInfo_t
ObjectType
Type of objects that have a representation in the xAOD EDM.
Definition ObjectType.h:32
@ Other
An object not falling into any of the other categories.
Definition ObjectType.h:34

◆ 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::Event 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::Event, 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::Event 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::Event, 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.

◆ impl()

virtual MatchingImplementation * Trig::R3MatchingTool::impl ( ) const
inlineoverrideprivatevirtual

Inherited from the interface but does nothing.

Implements Trig::IMatchingTool.

Definition at line 69 of file R3MatchingTool.h.

69{ return nullptr; }

◆ initialize()

StatusCode Trig::R3MatchingTool::initialize ( void )
overridevirtual

Dummy implementation of the initialisation function.

It's here to allow the dual-use tools to skip defining an initialisation function. Since many are doing so...

Reimplemented from asg::AsgTool.

Definition at line 27 of file R3MatchingTool.cxx.

28 {
29 ATH_CHECK(m_trigDecTool.retrieve());
30 ATH_CHECK(m_scoreTool.retrieve());
31 return StatusCode::SUCCESS;
32 }
#define ATH_CHECK
Evaluate an expression and check for errors.
ToolHandle< Trig::IMatchScoringTool > m_scoreTool

◆ 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.

◆ match() [1/2]

bool Trig::R3MatchingTool::match ( const std::vector< const xAOD::IParticle * > & recoObjects,
std::string_view chain,
double matchThreshold,
bool rerun ) const
overridevirtual

multi-object trigger matching

Implements Trig::IMatchingTool.

Definition at line 34 of file R3MatchingTool.cxx.

39 {
40 if (recoObjects.size() == 0)
41 // If there are no reco objects, the matching is trivially true
42 return true;
43 // Make the LinkInfo type less verbose
44 using IPartLinkInfo_t = TrigCompositeUtils::LinkInfo<xAOD::IParticleContainer>;
45 using VecLinkInfo_t = std::vector<IPartLinkInfo_t>;
46 // TODO - detect if we're looking at run 3 data.
47 // If we are, then setting rerun to true should give a warning as it no
48 // longer makes sense for run 3
49
50 // In what follows, the same comparisons between reco and trigger objects will done
51 // fairly frequently. As these include DR checks we want to minimise how often we do these
52 // Therefore we keep track of any comparisons that we've already done
53 // There is one map per input reco object, and then each map entry is the keyed on information
54 // extracted from the element link
55 std::vector<std::map<std::pair<uint32_t, uint32_t>, bool>> cachedComparisons(recoObjects.size());
56
57 // Note that the user can supply a regex pattern which matches multiple chains
58 // We should return true if any individual chain matches
59 const Trig::ChainGroup *chainGroup = m_trigDecTool->getChainGroup(chain);
60 for (const std::string &chainName : chainGroup->getListOfTriggers())
61 {
62 const chainInfo_t &chainInfo = getChainInfo(chainName);
64 {
65 ATH_MSG_DEBUG("Chain " << chainName << " did not pass");
66 continue;
67 }
68 ATH_MSG_DEBUG("Chain " << chainName << " passed");
69 // Note: regarding R2-to-R3 converted trigger navigation. We do not pass
70 // TrigDefs::allowResurrectedDecision to the R3 feature request - the R3
71 // navigation has no concept of rerun. The physics objects of
72 // analysis-flagged R2 rerun chains have been copied to the R3 structure as
73 // if they had passed in the initial pass. The rerun status of R2 trigger
74 // chains remains available from the TrigDecisionTool.
75 Trig::FeatureRequestDescriptor frd(chainName);
76 VecLinkInfo_t features = m_trigDecTool->features<xAOD::IParticleContainer>(frd);
77
78 // Note: regarding R2-to-R3 converted trigger navigation. If
79 // IncludeSubfeatures is enabled, also retrieve the subfeature links:
80 // lower-pT objects from within a single R2 RoI, which the standard
81 // DAOD-based trigger matching procedure used prior to this migration did
82 // not consider.
84 frd.setLinkName("subfeature");
85 VecLinkInfo_t subfeatures = m_trigDecTool->features<xAOD::IParticleContainer>(frd);
86 features.insert(features.end(), subfeatures.begin(), subfeatures.end());
87 ATH_MSG_DEBUG("Added " << subfeatures.size() << " subfeatures for chain " << chainName);
88 }
89
90
91 // See if we have any that have invalid links. This is a sign that the
92 // input file does not contain the required information and should be seen
93 // as reason for a job failure
94 for (IPartLinkInfo_t &linkInfo : features)
95 {
96 if (!linkInfo.isValid())
97 {
98 ATH_MSG_ERROR("Chain " << chainName << " has invalid link info!");
99 throw std::runtime_error("Bad link info");
100 }
101 }
102 // Now we have to build up combinations
103 // TODO - right now we use a filter that passes everything that isn't pointer-equal.
104 // This will probably need to be fixed to something else later - at least the unique RoI filter
105 TrigCompositeUtils::Combinations combinations = TrigCompositeUtils::buildCombinations(
106 chainName,
107 features,
108 chainInfo.first,
110 // Warn once per call if one of the chain groups is too small to match anything
111 if (combinations.size() < recoObjects.size())
112 {
114 "Chain " << chainName << " (matching pattern " << chain << ") has too few objects ("
115 << combinations.size() << ") to match the number of provided reco objects (" << recoObjects.size() << ")");
116 continue;
117 }
118 // Now we iterate through the available combinations
119 for (const VecLinkInfo_t &combination : combinations)
120 {
121 // Prepare the index vector
122 std::vector<std::size_t> onlineIndices(combination.size());
123 std::iota(onlineIndices.begin(), onlineIndices.end(), 0);
124 do
125 {
126 bool match = true;
127 for (std::size_t recoIdx = 0; recoIdx < recoObjects.size(); ++recoIdx)
128 {
129 std::size_t onlineIdx = onlineIndices[recoIdx];
130 if (!matchObjects(
131 recoObjects[recoIdx],
132 combination[onlineIdx].link,
133 chainInfo.second[onlineIdx],
134 cachedComparisons[recoIdx],
135 matchThreshold))
136 {
137 match = false;
138 break;
139 }
140 }
141 if (match)
142 return true;
143 } while (std::next_permutation(onlineIndices.begin(), onlineIndices.end()));
144 }
145 }
146
147 // If we reach here we've tried all combinations from all chains in the group and none of them matched
148 return false;
149 }
#define ATH_MSG_DEBUG(x,...)
#define ATH_MSG_ERROR(x,...)
#define ATH_MSG_WARNING(x,...)
iterator insert(iterator position, value_type pElem)
Add a new element to the collection.
std::vector< std::string > getListOfTriggers() const
bool matchObjects(const xAOD::IParticle *reco, const ElementLink< xAOD::IParticleContainer > &onlineLink, xAODType::ObjectType onlineType, std::map< std::pair< uint32_t, uint32_t >, bool > &cache, double drThreshold) const
const chainInfo_t & getChainInfo(const std::string &chain) const
virtual bool match(const std::vector< const xAOD::IParticle * > &recoObjects, std::string_view chain, double matchThreshold, bool rerun) const override
multi-object trigger matching
Gaudi::Property< bool > m_includeSubfeatures
Combinations buildCombinations(const std::string &chainName, const std::vector< LinkInfo< xAOD::IParticleContainer > > &features, const std::vector< std::size_t > &legMultiplicities, const IPartCombItr::FilterFunc_t &filter)
Produce the combinations for a set of features.
@ UniqueObjects
Do not allow any repeated objects.
combinations(items, n)
Definition combo.py:84
DataVector< IParticle > IParticleContainer
Simple convenience declaration of IParticleContainer.

◆ match() [2/2]

bool Trig::R3MatchingTool::match ( const xAOD::IParticle & recoObject,
std::string_view chain,
double matchThreshold,
bool rerun ) const
overridevirtual

single object trigger matching. matchThreshold is typically the deltaR requirement to obtain positive matching

Implements Trig::IMatchingTool.

Definition at line 151 of file R3MatchingTool.cxx.

156 {
157 std::vector<const xAOD::IParticle *> tmpVec{&recoObject};
158 return match(tmpVec, chain, matchThreshold, rerun);
159 }

◆ matchObjects()

bool Trig::R3MatchingTool::matchObjects ( const xAOD::IParticle * reco,
const ElementLink< xAOD::IParticleContainer > & onlineLink,
xAODType::ObjectType onlineType,
std::map< std::pair< uint32_t, uint32_t >, bool > & cache,
double drThreshold ) const
private

Definition at line 161 of file R3MatchingTool.cxx.

167 {
168 if (!onlineLink.isValid())
169 {
170 ATH_MSG_WARNING("Invalid element link!");
171 return false;
172 }
173 std::pair<uint32_t, uint32_t> linkIndices(onlineLink.persKey(), onlineLink.persIndex());
174 auto cacheItr = cache.find(linkIndices);
175 if (cacheItr == cache.end())
176 {
177 const xAOD::IParticle *online = *onlineLink;
178 ATH_MSG_DEBUG("Match online " << onlineType << " to offline " << reco->type());
179 bool match = onlineType == reco->type();
180 if (onlineType == xAOD::Type::CaloCluster && (reco->type() == xAOD::Type::Electron || reco->type() == xAOD::Type::Photon))
181 {
182 // Calo cluster is a special case - some of the egamma chains can return these (the etcut chains)
183 // In these cases we need to match this against the caloCluster object contained in electrons or photons
184 const xAOD::Egamma *egamma = dynamic_cast<const xAOD::Egamma *>(reco);
185 if (!egamma)
186 // this should never happen
187 throw std::runtime_error("Failed to cast to egamma object");
188 const xAOD::IParticle *cluster = egamma->caloCluster();
189 if (cluster)
190 reco = cluster;
191 else
192 ATH_MSG_WARNING("Cannot retrieve egamma object's primary calorimeter cluster, will match to the egamma object");
193 match = true;
194 }
195 if (reco->type() == xAOD::Type::TruthParticle) match=true;
196 if (match)
197 match = m_scoreTool->score(*online, *reco) < scoreThreshold;
198 cacheItr = cache.insert(std::make_pair(linkIndices, match)).first;
199 }
200 return cacheItr->second;
201 }
stored_index_type persIndex() const
Return the index of the link.
sgkey_t persKey() const
Return the SG key that we reference, as a hash.
const IIntersectionCache * cache() const
Retrieve the associated cache block, if it exists.
@ Photon
The object is a photon.
Definition ObjectType.h:47
@ CaloCluster
The object is a calorimeter cluster.
Definition ObjectType.h:39
@ TruthParticle
The object is a truth particle.
Definition ObjectType.h:67
@ Electron
The object is an electron.
Definition ObjectType.h:46
Egamma_v1 Egamma
Definition of the current "egamma version".
Definition Egamma.h:17

◆ 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()

void asg::AsgTool::print ( ) const
virtualinherited

◆ 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 >, and AthCheckedComponent<::AthAlgTool >.

◆ 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

Member Data Documentation

◆ ATLAS_THREAD_SAFE [1/2]

std::mutex m_chainInfoMutex Trig::R3MatchingTool::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 63 of file R3MatchingTool.h.

◆ ATLAS_THREAD_SAFE [2/2]

std::map<std::string, chainInfo_t> m_chainInfoCache Trig::R3MatchingTool::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 62 of file R3MatchingTool.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_includeSubfeatures

Gaudi::Property<bool> Trig::R3MatchingTool::m_includeSubfeatures
private
Initial value:
{
this, "IncludeSubfeatures", false,
"When true, also retrieve 'subfeature' links (lower-pT objects from Run2->Run3 conversion)"}

Definition at line 49 of file R3MatchingTool.h.

49 {
50 this, "IncludeSubfeatures", false,
51 "When true, also retrieve 'subfeature' links (lower-pT objects from Run2->Run3 conversion)"};

◆ m_scoreTool

ToolHandle<Trig::IMatchScoringTool> Trig::R3MatchingTool::m_scoreTool
private
Initial value:
{
this, "ScoringTool", "Trig::DRScoringTool","Tool to score pairs of particles"}

Definition at line 47 of file R3MatchingTool.h.

47 {
48 this, "ScoringTool", "Trig::DRScoringTool","Tool to score pairs of particles"};

◆ m_trigDecTool

ToolHandle<TrigDecisionTool> Trig::R3MatchingTool::m_trigDecTool
private

Definition at line 46 of file R3MatchingTool.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: