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

#include <NavigationTesterAlg.h>

Inheritance diagram for Trig::NavigationTesterAlg:
Collaboration diagram for Trig::NavigationTesterAlg:

Public Member Functions

 NavigationTesterAlg (const std::string &name, ISvcLocator *pSvcLocator)
 ~NavigationTesterAlg () override=default
StatusCode initialize () override
StatusCode execute (const EventContext &context) 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 CombinationsVector = std::vector<std::vector<const xAOD::IParticle *>>
using CombinationsSet = std::set<std::set<const xAOD::IParticle *>>
typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

StatusCode verifyFlatContent (const std::string &chain) const
StatusCode verifyCombinationsSize (const CombinationsVector &run2, const CombinationsVector &run3, const std::string &chain) const
StatusCode verifyCombinationsContent (const CombinationsSet &run2, const CombinationsSet &run3, const std::string &chain) const
bool combinationsEmpty (const CombinationsVector &combs) const
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

PublicToolHandle< Trig::TrigDecisionToolm_tdt {this, "TrigDecisionTool", "", "When enabled read navigation from TDT/off by default"}
PublicToolHandle< Trig::TrigDecisionToolm_tdtRun3 {this, "TrigDecisionToolRun3", "", "Use for directly accessing objects"}
PublicToolHandle< Trig::TrigDecisionToolm_tdtRun2 {this, "TrigDecisionToolRun2", "", "Use for directly accessing objects"}
ToolHandle< Trig::IIParticleRetrievalToolm_toolRun2
ToolHandle< Trig::IIParticleRetrievalToolm_toolRun3
Gaudi::Property< std::vector< std::string > > m_chains
Gaudi::Property< bool > m_failOnDifference
Gaudi::Property< bool > m_verifyCombinationsSize
Gaudi::Property< bool > m_verifyCombinations
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 14 of file NavigationTesterAlg.h.

Member Typedef Documentation

◆ CombinationsSet

using Trig::NavigationTesterAlg::CombinationsSet = std::set<std::set<const xAOD::IParticle *>>
private

Definition at line 45 of file NavigationTesterAlg.h.

◆ CombinationsVector

using Trig::NavigationTesterAlg::CombinationsVector = std::vector<std::vector<const xAOD::IParticle *>>
private

Definition at line 44 of file NavigationTesterAlg.h.

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ NavigationTesterAlg()

Trig::NavigationTesterAlg::NavigationTesterAlg ( const std::string & name,
ISvcLocator * pSvcLocator )

Definition at line 59 of file NavigationTesterAlg.cxx.

59 :
60 AthReentrantAlgorithm(name, pSvcLocator)
61 {}

◆ ~NavigationTesterAlg()

Trig::NavigationTesterAlg::~NavigationTesterAlg ( )
overridedefault

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}

◆ combinationsEmpty()

bool Trig::NavigationTesterAlg::combinationsEmpty ( const CombinationsVector & combs) const
private

Definition at line 257 of file NavigationTesterAlg.cxx.

257 {
258 size_t counter = 0;
259 for ( const std::vector<const xAOD::IParticle*>& outerc: combs )
260 counter += outerc.size();
261 return counter == 0;
262 }

◆ 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 Trig::NavigationTesterAlg::execute ( const EventContext & context) const
override

Definition at line 76 of file NavigationTesterAlg.cxx.

77 {
78 for (const std::string &chain : m_chains)
79 {
80 ATH_MSG_DEBUG("Begin testing chain " << chain << (m_tdt->isPassed(chain) ? " and will dive into details as the chain passed " : " but will not do anything as the chain did not pass"));
81 if (!m_tdt->isPassed(chain)) continue;
82
83 // explicitely excluded chains
84 bool isExcluded = false;
85 for (const auto& excludedChain : SpecialCases::excludedChains) {
86 if (chain == excludedChain) {
87 isExcluded = true;
88 break; // Break out of the exclusion check loop
89 }
90 }
91
92 if (isExcluded) {
93 continue; // Skip the current iteration of the main loop
94 }
95
96 // We assume that the navigation is ultimately a set of element links
97 // We're comparing two types of navigation but they should both point to the same
98 // objects.
99 // We don't care about the order of the combinations, or the order within the
100 // combinations, we just care that they are the same. Therefore, we can convert the
101 // vectors to sets and just look at the differences between them
102 CombinationsVector vecCombinationsRun2;
103 ATH_MSG_DEBUG("###### checking features of CHAIN " << chain);
104 ATH_CHECK(m_toolRun2->retrieveParticles(vecCombinationsRun2, chain));
105 auto combsRun2 = vectorToSet(vecCombinationsRun2);
106 ATH_MSG_DEBUG("Run 2 size " << combsRun2.size());
107 // if Run 2 size is 0 we discard any further testing
108 if (combsRun2.size() == 0)
109 {
110 ATH_MSG_DEBUG("Chain " << chain << " testing discarded due to detected Run 2 size == 0");
111 continue;
112 }
113 for (auto& c : combsRun2 ) {
114 ATH_MSG_DEBUG(c);
115 }
116 CombinationsVector vecCombinationsRun3;
117 ATH_CHECK(m_toolRun3->retrieveParticles(vecCombinationsRun3, chain));
118 auto combsRun3 = vectorToSet(vecCombinationsRun3);
119 ATH_MSG_DEBUG("Run 3 size " << combsRun3.size());
120
121 if (combinationsEmpty(vecCombinationsRun2) and combinationsEmpty(vecCombinationsRun3)) {
122 ATH_MSG_DEBUG("Both, Run2 and Run3 combinations are effectively empty");
123 continue;
124 }
125
126
127 for (auto& c : combsRun3 ) {
128 ATH_MSG_DEBUG(c);
129 }
130 if ( std::regex_match(chain, SpecialCases::gammaXeChain) ) {
132 } else {
134 ATH_CHECK(verifyCombinationsSize(vecCombinationsRun2, vecCombinationsRun3, chain));
135 }
136 if ( m_verifyCombinations ) {
137 ATH_CHECK(verifyCombinationsContent(combsRun2, combsRun3, chain));
138 }
139 }
140
141 ATH_MSG_DEBUG("Verified chain " << chain);
142 }
143 return StatusCode::SUCCESS;
144 }
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x)
StatusCode verifyFlatContent(const std::string &chain) const
StatusCode verifyCombinationsSize(const CombinationsVector &run2, const CombinationsVector &run3, const std::string &chain) const
PublicToolHandle< Trig::TrigDecisionTool > m_tdt
ToolHandle< Trig::IIParticleRetrievalTool > m_toolRun3
std::vector< std::vector< const xAOD::IParticle * > > CombinationsVector
StatusCode verifyCombinationsContent(const CombinationsSet &run2, const CombinationsSet &run3, const std::string &chain) const
Gaudi::Property< bool > m_verifyCombinations
Gaudi::Property< bool > m_verifyCombinationsSize
bool combinationsEmpty(const CombinationsVector &combs) const
ToolHandle< Trig::IIParticleRetrievalTool > m_toolRun2
Gaudi::Property< std::vector< std::string > > m_chains
const std::regex gammaXeChain
const std::vector< std::string > excludedChains
Definition SpecialCases.h:8

◆ 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 Trig::NavigationTesterAlg::initialize ( )
override

Definition at line 63 of file NavigationTesterAlg.cxx.

64 {
65 ATH_CHECK(m_tdt.retrieve());
66 ATH_CHECK(m_tdtRun2.retrieve());
67 ATH_CHECK(m_tdtRun3.retrieve());
68 ATH_CHECK(m_toolRun2.retrieve());
69 ATH_CHECK(m_toolRun3.retrieve());
70
71 if (m_chains.size() == 0)
72 ATH_MSG_WARNING("No chains provided, algorithm will be no-op");
73 return StatusCode::SUCCESS;
74 }
#define ATH_MSG_WARNING(x)
PublicToolHandle< Trig::TrigDecisionTool > m_tdtRun3
PublicToolHandle< Trig::TrigDecisionTool > m_tdtRun2

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

◆ verifyCombinationsContent()

StatusCode Trig::NavigationTesterAlg::verifyCombinationsContent ( const CombinationsSet & run2,
const CombinationsSet & run3,
const std::string & chain ) const
private

Definition at line 194 of file NavigationTesterAlg.cxx.

194 {
195 // compare combinations
196
197 using xAODParticle = const xAOD::IParticle;
198
199 auto isSubsetPresent = [](const std::set<xAODParticle*>& subset, const CombinationsSet& run2) {
200 for (const auto& setInRun2 : run2) {
201 // Manual check for all particles in subset
202 bool allFound = true;
203 for (auto particle : subset) {
204 if (setInRun2.find(particle) == setInRun2.end()) {
205 allFound = false;
206 break; // If any particle is not found, no need to check further
207 }
208 }
209 if (allFound) return true; // Found all particles in this subset of Run2
210 }
211 return false; // Did not find the subset
212 };
213
214
215 auto isAnySubsetPresent = [&isSubsetPresent](const CombinationsSet& run3, const CombinationsSet& run2) {
216 for (const auto& subset : run3) {
217 if (isSubsetPresent(subset, run2)) {
218 return true; // At least one subset from Run3 is found in Run2
219 }
220 }
221 return false; // No subset from Run3 was found in Run2
222 };
223
224 bool result { false };
225 // hack for "HLT_e26_lhmedium_nod0_mu8noL1" case
226 // hack for "HLT_e24_lhmedium_L1EM20VHI_mu8noL1" type case
227 // hack for "HLT_mu11_2mu4noL1_nscan03_L1MU11_2MU6" type case
228 if ( std::regex_match(chain, SpecialCases::specialEchain) or
229 std::regex_match(chain, SpecialCases::specialElMuChain) or
230 std::regex_match(chain, SpecialCases::mu2MunoL1Special) ) {
231 result = isAnySubsetPresent(run3, run2);
232 } else {
233 // now subset checked on a level of objects, instead of group of objects
234 result = isAnySubsetPresent(run2, run3);
235 }
236
237 if (run2 != run3)
238 {
239 ATH_MSG_WARNING("Difference in combinations between Run2 and Run3 format for chain: " << chain << " parsed multiplicities " << ChainNameParser::multiplicities(chain));
240 ATH_MSG_WARNING("Run2 combs: " << run2);
241 ATH_MSG_WARNING("Run3 combs: " << run3);
242 }
243
244 if (not result) // previous not isSubset, loosened condition
245 {
246 ATH_MSG_WARNING("NOT PASSED: failed, Run2 objects are not within a subset of Run3 objects for chain: " << chain << " parsed multiplicities " << ChainNameParser::multiplicities(chain));
247 ATH_MSG_WARNING("Run2 combs: " << run2);
248 ATH_MSG_WARNING("Run3 combs: " << run3);
249 if ( m_failOnDifference ) {
250 return StatusCode::FAILURE;
251 }
252 }
253
254 return StatusCode::SUCCESS;
255 }
std::set< std::set< const xAOD::IParticle * > > CombinationsSet
Gaudi::Property< bool > m_failOnDifference
std::vector< int > multiplicities(const std::string &chain)
const std::regex specialElMuChain
const std::regex specialEchain
const std::regex mu2MunoL1Special

◆ verifyCombinationsSize()

StatusCode Trig::NavigationTesterAlg::verifyCombinationsSize ( const CombinationsVector & run2,
const CombinationsVector & run3,
const std::string & chain ) const
private

Definition at line 181 of file NavigationTesterAlg.cxx.

181 {
182 if (run2.size() > run3.size()) { // in Run3 we do not use decision per RoI but per object. For single RoI there is more than one object we will have more combinations in Run3
183 ATH_MSG_WARNING("Issue in combination sizes for chain " << chain
184 << " using Run 2 navigation " << run2.size()
185 << " Run 3 navigation " << run3.size());
186 ATH_MSG_WARNING("Mismatched sizes of combinations for chain " << chain << " (enable WARNING messages for more details), this may be a false positive if chain is incorrectly decoded");
187 if ( m_failOnDifference ) {
188 return StatusCode::FAILURE;
189 }
190 }
191 return StatusCode::SUCCESS;
192 }

◆ verifyFlatContent()

StatusCode Trig::NavigationTesterAlg::verifyFlatContent ( const std::string & chain) const
private

Definition at line 146 of file NavigationTesterAlg.cxx.

146 {
147 const auto &run3 = m_tdtRun3->features<xAOD::IParticleContainer>(chain);
148 std::set<const xAOD::IParticle*> particlesRun3;
149 for ( auto l: run3) {
150 if ( l.link.isValid() )
151 particlesRun3.insert(*(l.link));
152 }
153
154 CombinationsVector vecCombinationsRun2;
155 ATH_CHECK(m_toolRun2->retrieveParticles(vecCombinationsRun2, chain));
156 std::set<const xAOD::IParticle*> particlesRun2;
157 for ( auto& comb: vecCombinationsRun2) {
158 for ( auto el: comb) {
159 particlesRun2.insert(el);
160 }
161 }
162
163 for ( auto f2: particlesRun2 ) {
164 bool found=false;
165 for ( auto f3: particlesRun3 ) {
166 ATH_MSG_DEBUG("Serial set of features " << f3 );
167 if ( f2 == f3)
168 found = true;
169 }
170 if ( not found ) {
171 ATH_MSG_ERROR("Missing feature in Run 3 that is present in Run 2 " << f2 << " chain " << chain << " enable DEBUG to see more details" );
172 if ( m_failOnDifference ) {
173 return StatusCode::FAILURE;
174 }
175 }
176 }
177 return StatusCode::SUCCESS;
178 }
l
Printing final latex table to .tex output file.
DataVector< IParticle > IParticleContainer
Simple convenience declaration of IParticleContainer.

Member Data Documentation

◆ m_chains

Gaudi::Property<std::vector<std::string> > Trig::NavigationTesterAlg::m_chains
private
Initial value:
{
this, "Chains", {}, "The chains to test"}

Definition at line 32 of file NavigationTesterAlg.h.

32 {
33 this, "Chains", {}, "The chains to test"};

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

Gaudi::Property<bool> Trig::NavigationTesterAlg::m_failOnDifference
private
Initial value:
{
this, "FailOnDifference", false,
"Return FAILURE if the navigation does not compare equal"}

Definition at line 34 of file NavigationTesterAlg.h.

34 {
35 this, "FailOnDifference", false,
36 "Return FAILURE if the navigation does not compare equal"};

◆ m_tdt

PublicToolHandle<Trig::TrigDecisionTool> Trig::NavigationTesterAlg::m_tdt {this, "TrigDecisionTool", "", "When enabled read navigation from TDT/off by default"}
private

Definition at line 24 of file NavigationTesterAlg.h.

24{this, "TrigDecisionTool", "", "When enabled read navigation from TDT/off by default"};

◆ m_tdtRun2

PublicToolHandle<Trig::TrigDecisionTool> Trig::NavigationTesterAlg::m_tdtRun2 {this, "TrigDecisionToolRun2", "", "Use for directly accessing objects"}
private

Definition at line 26 of file NavigationTesterAlg.h.

26{this, "TrigDecisionToolRun2", "", "Use for directly accessing objects"};

◆ m_tdtRun3

PublicToolHandle<Trig::TrigDecisionTool> Trig::NavigationTesterAlg::m_tdtRun3 {this, "TrigDecisionToolRun3", "", "Use for directly accessing objects"}
private

Definition at line 25 of file NavigationTesterAlg.h.

25{this, "TrigDecisionToolRun3", "", "Use for directly accessing objects"};

◆ m_toolRun2

ToolHandle<Trig::IIParticleRetrievalTool> Trig::NavigationTesterAlg::m_toolRun2
private
Initial value:
{
this, "RetrievalToolRun2Nav", "", "The tool configured to use Run 2 format"}

Definition at line 28 of file NavigationTesterAlg.h.

28 {
29 this, "RetrievalToolRun2Nav", "", "The tool configured to use Run 2 format"};

◆ m_toolRun3

ToolHandle<Trig::IIParticleRetrievalTool> Trig::NavigationTesterAlg::m_toolRun3
private
Initial value:
{
this, "RetrievalToolRun3Nav", "", "The tool configured to use Run 3 format"}

Definition at line 30 of file NavigationTesterAlg.h.

30 {
31 this, "RetrievalToolRun3Nav", "", "The tool configured to use Run 3 format"};

◆ m_varHandleArraysDeclared

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

Definition at line 399 of file AthCommonDataStore.h.

◆ m_verifyCombinations

Gaudi::Property<bool> Trig::NavigationTesterAlg::m_verifyCombinations
private
Initial value:
{
this, "VerifyCombinationsContent", true,
"Check if combinations are compatible (point to same objects)"}

Definition at line 40 of file NavigationTesterAlg.h.

40 {
41 this, "VerifyCombinationsContent", true,
42 "Check if combinations are compatible (point to same objects)"};

◆ m_verifyCombinationsSize

Gaudi::Property<bool> Trig::NavigationTesterAlg::m_verifyCombinationsSize
private
Initial value:
{
this, "VerifyCombinationsSize", true,
"Check if combinations have matching size (that is Run2 >= Run3)"}

Definition at line 37 of file NavigationTesterAlg.h.

37 {
38 this, "VerifyCombinationsSize", true,
39 "Check if combinations have matching size (that is Run2 >= Run3)"};

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