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 258 of file NavigationTesterAlg.cxx.

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

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

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

182 {
183 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
184 ATH_MSG_WARNING("Issue in combination sizes for chain " << chain
185 << " using Run 2 navigation " << run2.size()
186 << " Run 3 navigation " << run3.size());
187 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");
188 if ( m_failOnDifference ) {
189 return StatusCode::FAILURE;
190 }
191 }
192 return StatusCode::SUCCESS;
193 }

◆ verifyFlatContent()

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

Definition at line 147 of file NavigationTesterAlg.cxx.

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