ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
TrigBjetBtagHypoAlg Class Reference

#include <TrigBjetBtagHypoAlg.h>

Inheritance diagram for TrigBjetBtagHypoAlg:
Collaboration diagram for TrigBjetBtagHypoAlg:

Public Member Functions

 TrigBjetBtagHypoAlg (const std::string &name, ISvcLocator *pSvcLocator)
 
virtual StatusCode initialize ()
 
virtual StatusCode execute (const EventContext &context) const
 
virtual StatusCode sysInitialize () override
 initialise this base class More...
 
virtual bool isClonable () const override
 Specify if the algorithm is clonable. More...
 
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. More...
 
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm. More...
 
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies. More...
 
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. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Static Public Member Functions

static StatusCode runtimeValidation (SG::WriteHandle< TrigCompositeUtils::DecisionContainer > &outputHandle, MsgStream &msg, bool onlyValidateOneStep=true, bool runTwoConversion=false)
 Executes all individual runtime tests. More...
 

Protected Member Functions

StatusCode retrievePreviousDecisionContainer (const EventContext &, const TrigCompositeUtils::DecisionContainer *&) const
 
template<class CONTAINER >
StatusCode retrieveCollectionFromView (const EventContext &, ElementLinkVector< CONTAINER > &, const SG::ReadHandleKey< CONTAINER > &, const TrigCompositeUtils::Decision *) const
 
template<class CONTAINER >
StatusCode retrieveObjectFromNavigation (const std::string &, ElementLink< CONTAINER > &, const TrigCompositeUtils::Decision *) const
 
template<class CONTAINER >
StatusCode retrieveCollectionFromNavigation (const std::string &linkName, ElementLinkVector< CONTAINER > &objELs, const TrigCompositeUtils::DecisionContainer *) const
 
template<class CONTAINER >
StatusCode retrieveObjectFromStoreGate (const EventContext &, ElementLinkVector< CONTAINER > &, const SG::ReadHandleKey< CONTAINER > &) const
 
template<class CONTAINER >
StatusCode retrieveObjectFromEventView (const EventContext &, ElementLinkVector< CONTAINER > &, const SG::ReadHandleKey< CONTAINER > &, const TrigCompositeUtils::DecisionContainer *) const
 
template<class CONTAINER >
StatusCode attachObjectLinkToDecisionFromStoreGate (TrigCompositeUtils::Decision &, const SG::ReadHandleKey< CONTAINER > &, const std::string &, int objIndex=0) const
 
template<class CONTAINER >
StatusCode attachObjectLinkToDecisionsFromStoreGate (std::vector< TrigCompositeUtils::Decision * > &, const SG::ReadHandleKey< CONTAINER > &, const std::string &, int forcedIndex=-1) const
 
template<class CONTAINER >
StatusCode attachObjectLinkToDecisionFromEventView (const EventContext &, TrigCompositeUtils::Decision &, const SG::ReadHandleKey< CONTAINER > &, const std::string &, int objIndex=0) const
 
template<class CONTAINER >
StatusCode attachObjectLinkToDecisionsFromEventView (const EventContext &, std::vector< TrigCompositeUtils::Decision * > &, const SG::ReadHandleKey< CONTAINER > &, const std::string &, int forcedIndex=-1) const
 
template<class CONTAINER >
StatusCode attachObjectCollectionLinkToDecisionsFromEventView (const EventContext &, std::vector< TrigCompositeUtils::Decision * > &, const SG::ReadHandleKey< CONTAINER > &, const std::string &) const
 
const SG::ReadHandleKey< TrigCompositeUtils::DecisionContainer > & decisionInput () const
 methods for derived classes to access handles of the base class input other read/write handles may be implemented by derived classes More...
 
const SG::WriteHandleKey< TrigCompositeUtils::DecisionContainer > & decisionOutput () const
 methods for derived classes to access handles of the base class output other read/write handles may be implemented by derived classes
More...
 
StatusCode hypoBaseOutputProcessing (SG::WriteHandle< TrigCompositeUtils::DecisionContainer > &outputHandle, MSG::Level lvl=MSG::DEBUG) const
 Base class function to be called once slice specific code has finished. Handles debug printing and validation. More...
 
void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
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. More...
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

 TrigBjetBtagHypoAlg ()
 
virtual StatusCode monitor_jets (const ElementLinkVector< xAOD::JetContainer > &jetELs, const ElementLinkVector< xAOD::JetContainer > &all_bTaggedJetELs) const
 
virtual StatusCode monitor_tracks (const EventContext &context, const TrigCompositeUtils::DecisionContainer *prevDecisionContainer) const
 
virtual StatusCode monitor_primary_vertex (const ElementLink< xAOD::VertexContainer > &primVertexEL) const
 
virtual StatusCode monitor_flavor_probabilities (const ElementLinkVector< xAOD::JetContainer > &jetEL, const std::string &var_name) const
 
virtual StatusCode monitor_flavor_bb_probabilities (const ElementLinkVector< xAOD::JetContainer > &jetEL, const std::string &var_name) const
 
virtual ElementLinkVector< xAOD::JetContainercollect_valid_links (const ElementLinkVector< xAOD::JetContainer > &jetEL, std::string tagger) const
 
virtual StatusCode monitor_btagging (const ElementLinkVector< xAOD::JetContainer > &jetEL) const
 
StatusCode printDebugInformation (SG::WriteHandle< TrigCompositeUtils::DecisionContainer > &outputHandle, MSG::Level lvl) const
 Common base function to print information on chains passed by objects considered in the hypo. More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

ToolHandleArray< TrigBjetBtagHypoToolm_hypoTools {this,"HypoTools",{},"Hypo Tools"}
 
ToolHandle< GenericMonitoringToolm_monTool {this,"MonTool","","Monitoring tool"}
 
SG::ReadHandleKey< xAOD::JetContainerm_bTaggedJetKey {this,"BTaggedJetKey","","Key for b-tagged jets"}
 
SG::ReadHandleKey< xAOD::TrackParticleContainerm_trackKey {this,"TracksKey","","Key for precision tracks"}
 
SG::ReadHandleKey< xAOD::VertexContainerm_inputPrmVtx {this,"PrmVtxKey","","Key for Primary vertex collection for monitoring"}
 
Gaudi::Property< std::string > m_prmVtxLink {this,"PrmVtxLink","Unspecified","Vertex Link name in navigation (input)"}
 
SG::ReadCondHandleKey< InDet::BeamSpotDatam_beamSpotKey { this, "BeamSpotKey", "BeamSpotData", "SG key for beam spot" }
 
SG::ReadHandleKey< TrigCompositeUtils::DecisionContainerm_input { this, "HypoInputDecisions", "UNSPECIFIED_INPUT", "Input Decision (implicit)" }
 input decisions More...
 
SG::WriteHandleKey< TrigCompositeUtils::DecisionContainerm_output { this, "HypoOutputDecisions", "UNSPECIFIED_OUTPUT", "Ouput Decision" }
 output decisions More...
 
Gaudi::Property< bool > m_runtimeValidation { this, "RuntimeValidation", false, "Enable detailed runtime validation of HypoAlg output, and upstream Decisions." }
 Enabling of detailed validation checks for use during development. More...
 
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. More...
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Runtime validation methods


enum  LogicalFlowCheckMode { kRequireOne, kRequireAll }
 
static StatusCode validateHasLinks (const ElementLink< TrigCompositeUtils::DecisionContainer > &dEL, MsgStream &msg)
 Ensure all Decisions have the named ElementLink graph edges which they are required to by spec. More...
 
static StatusCode validateLogicalFlow (const ElementLink< TrigCompositeUtils::DecisionContainer > &dEL, MsgStream &msg, const LogicalFlowCheckMode mode)
 Ensure that all DecisionIDs have propagated correctly from their parent. More...
 
static StatusCode validateDuplicatedDecisionID (const ElementLink< TrigCompositeUtils::DecisionContainer > &dEL, MsgStream &msg)
 Ensure that no space is being wasted by duplicated DecisionIDs in any Decision objects. More...
 
static StatusCode validateDecisionIDs (const ElementLink< TrigCompositeUtils::DecisionContainer > &dEL, MsgStream &msg)
 Ensure that all present IDs correspond to configured chains. More...
 
static StatusCode validateParentLinking (const ElementLink< TrigCompositeUtils::DecisionContainer > &dEL, MsgStream &msg, bool runTwoConversion)
 Ensure that the Decision has at least one valid parent, unless it is a initial Decision from the HLTSeeding. More...
 
static StatusCode recursiveValidateGraph (const ElementLink< TrigCompositeUtils::DecisionContainer > &dEL, MsgStream &msg, bool onlyValidateOneStep, bool runTwoConversion, size_t callDepth, std::set< const TrigCompositeUtils::Decision * > &fullyExploredFrom)
 Execute all checks on one node in the graph, d, then recursive call self on all parent nodes up to L1. More...
 
static void printBangs (MsgStream &msg)
 Print header line. More...
 
static void printErrorHeader (const ElementLink< TrigCompositeUtils::DecisionContainer > &dEL, MsgStream &msg)
 A problem was found, print common output data. More...
 

Detailed Description

Definition at line 27 of file TrigBjetBtagHypoAlg.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Member Enumeration Documentation

◆ LogicalFlowCheckMode

enum HypoBase::LogicalFlowCheckMode
privateinherited
Enumerator
kRequireOne 

Require all DecisionIDs to be present in at least one of my parent Decision objects.

kRequireAll 

Definition at line 52 of file HypoBase.h.

52  {
53  kRequireOne,
54  kRequireAll //<! Require all DecisionIDs to be present in all of my parent Decision objects
55  };

Constructor & Destructor Documentation

◆ TrigBjetBtagHypoAlg() [1/2]

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

Definition at line 12 of file TrigBjetBtagHypoAlg.cxx.

13  :
14  TrigBjetHypoAlgBase( name, pSvcLocator ) {}

◆ TrigBjetBtagHypoAlg() [2/2]

TrigBjetBtagHypoAlg::TrigBjetBtagHypoAlg ( )
private

Member Function Documentation

◆ attachObjectCollectionLinkToDecisionsFromEventView()

template<class CONTAINER >
StatusCode TrigBjetHypoAlgBase::attachObjectCollectionLinkToDecisionsFromEventView ( const EventContext &  ,
std::vector< TrigCompositeUtils::Decision * > &  ,
const SG::ReadHandleKey< CONTAINER > &  ,
const std::string &   
) const
protectedinherited

◆ attachObjectLinkToDecisionFromEventView()

template<class CONTAINER >
StatusCode TrigBjetHypoAlgBase::attachObjectLinkToDecisionFromEventView ( const EventContext &  ,
TrigCompositeUtils::Decision ,
const SG::ReadHandleKey< CONTAINER > &  ,
const std::string &  ,
int  objIndex = 0 
) const
protectedinherited

◆ attachObjectLinkToDecisionFromStoreGate()

template<class CONTAINER >
StatusCode TrigBjetHypoAlgBase::attachObjectLinkToDecisionFromStoreGate ( TrigCompositeUtils::Decision ,
const SG::ReadHandleKey< CONTAINER > &  ,
const std::string &  ,
int  objIndex = 0 
) const
protectedinherited

◆ attachObjectLinkToDecisionsFromEventView()

template<class CONTAINER >
StatusCode TrigBjetHypoAlgBase::attachObjectLinkToDecisionsFromEventView ( const EventContext &  ,
std::vector< TrigCompositeUtils::Decision * > &  ,
const SG::ReadHandleKey< CONTAINER > &  ,
const std::string &  ,
int  forcedIndex = -1 
) const
protectedinherited

◆ attachObjectLinkToDecisionsFromStoreGate()

template<class CONTAINER >
StatusCode TrigBjetHypoAlgBase::attachObjectLinkToDecisionsFromStoreGate ( std::vector< TrigCompositeUtils::Decision * > &  ,
const SG::ReadHandleKey< CONTAINER > &  ,
const std::string &  ,
int  forcedIndex = -1 
) const
protectedinherited

◆ cardinality()

unsigned int AthCommonReentrantAlgorithm< Gaudi::Algorithm >::cardinality
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.

Override this to return 0 for reentrant algorithms.

Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.

64 {
65  return 0;
66 }

◆ collect_valid_links()

ElementLinkVector< xAOD::JetContainer > TrigBjetBtagHypoAlg::collect_valid_links ( const ElementLinkVector< xAOD::JetContainer > &  jetEL,
std::string  tagger 
) const
privatevirtual

Definition at line 396 of file TrigBjetBtagHypoAlg.cxx.

397  {
398 
400  for (const ElementLink< xAOD::JetContainer > jetLink : jetEL) {
401  SG::ConstAccessor<char> acc(tagger+"_isDefaults");
402  if ( not acc(**jetLink) ) { valid_jetEL.push_back( jetLink ); }
403  }
404  return valid_jetEL;
405 }

◆ decisionInput()

const SG::ReadHandleKey< TrigCompositeUtils::DecisionContainer > & HypoBase::decisionInput ( ) const
protectedinherited

methods for derived classes to access handles of the base class input other read/write handles may be implemented by derived classes

Definition at line 18 of file HypoBase.cxx.

18  {
19  return m_input;
20 }

◆ decisionOutput()

const SG::WriteHandleKey< TrigCompositeUtils::DecisionContainer > & HypoBase::decisionOutput ( ) const
protectedinherited

methods for derived classes to access handles of the base class output other read/write handles may be implemented by derived classes

Definition at line 22 of file HypoBase.cxx.

22  {
23  return m_output;
24 }

◆ declareGaudiProperty() [1/4]

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

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

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

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  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

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

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

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

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

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 245 of file AthCommonDataStore.h.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 221 of file AthCommonDataStore.h.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.

Definition at line 333 of file AthCommonDataStore.h.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.

Definition at line 352 of file AthCommonDataStore.h.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

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  }

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

95 { return m_detStore; }

◆ evtStore() [1/2]

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.

85 { return m_evtStore; }

◆ evtStore() [2/2]

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

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

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ execute()

StatusCode TrigBjetBtagHypoAlg::execute ( const EventContext &  context) const
virtual

Implements TrigBjetHypoAlgBase.

Definition at line 36 of file TrigBjetBtagHypoAlg.cxx.

36  {
37  ATH_MSG_DEBUG ( "Executing " << name() << "..." );
38 
39  // ========================================================================================================================== // ** Retrieve Ingredients
40  // ==========================================================================================================================
41 
42  // Read in previous Decisions made before running this Hypo Alg.
43  const TrigCompositeUtils::DecisionContainer *prevDecisionContainer = nullptr;
44  CHECK( retrievePreviousDecisionContainer( context,prevDecisionContainer ) );
45  ATH_MSG_DEBUG( "Running with "<< prevDecisionContainer->size() <<" previous decisions");
46 
47  // Retrive Precision tracks from Event Views. We get them all in this way!
49  CHECK( retrieveObjectFromEventView( context,trackELs,m_trackKey,prevDecisionContainer ) );
50  ATH_MSG_DEBUG( "Retrieved " << trackELs.size() << " precision tracks..." );
51 
52 
53  for ( const ElementLink< xAOD::TrackParticleContainer > trackLink : trackELs )
54  ATH_MSG_DEBUG( " * pt=" << (*trackLink)->p4().Et() <<
55  " eta=" << (*trackLink)->eta() <<
56  " phi=" << (*trackLink)->phi() );
57 
58 
59  // Retrieve Jets
61  CHECK( retrieveCollectionFromNavigation( TrigCompositeUtils::featureString(), jetELs, prevDecisionContainer ) );
62  ATH_MSG_DEBUG( "Retrieved " << jetELs.size() << " Jets of key " << TrigCompositeUtils::featureString() );
63 
64  // online monitoring for tracks, per decision
65  CHECK( monitor_tracks( context, prevDecisionContainer ) );
66 
67  // Retrieve Vertices
69  CHECK( retrieveObjectFromStoreGate( context,vertexELs,m_inputPrmVtx ) );
70  ATH_MSG_DEBUG( "Retrieved " << vertexELs.size() <<" vertices..." );
71 
72  // opnline monitoring for vertex
73  auto monitor_for_vertex_count = Monitored::Scalar( "vertex_count", vertexELs.size() );
74 
75 
76  // ==========================================================================================================================
77  // ** Prepare Outputs
78  // ==========================================================================================================================
79 
80  // Decisions
82  TrigCompositeUtils::DecisionContainer *outputDecisions = handle.ptr();
83 
84  // ==========================================================================================================================
85  // ** Prepare Decisions
86  // ==========================================================================================================================
87 
88  const unsigned int nDecisions = prevDecisionContainer->size();
89 
90  // Create output decisions
91  ATH_MSG_DEBUG("Creating Output Decisions and Linking Stuff to it");
92  std::vector< TrigCompositeUtils::Decision* > newDecisions;
94  for ( unsigned int index(0); index<nDecisions; index++ ) {
96  prevDecisionContainer->at(index),
98 
99  // Attaching links to the output decisions
100  // Retrieved jets from view on which we have run flavour tagging
103  bTaggedJetEL,
105  prevDecisionContainer->at(index) ) );
106 
107  if ( bTaggedJetEL.size() != 1 ) {
108  ATH_MSG_ERROR( "Did not find only 1 b-tagged jet object from View!" );
109  return StatusCode::FAILURE;
110  }
111 
112  toAdd->setObjectLink< xAOD::JetContainer >( TrigCompositeUtils::featureString(),bTaggedJetEL.front() );
113  all_bTaggedJetELs.push_back( bTaggedJetEL.front() );
114 
115  // online monitoring for btagging, with a check to ensure the PV is marked
117  CHECK( retrieveObjectFromNavigation( m_prmVtxLink.value(), vertexEL, prevDecisionContainer->at(index) ) );
118 
119  if ( (*vertexEL)->vertexType() == xAOD::VxType::VertexType::PriVtx ) {
120  CHECK( monitor_primary_vertex( vertexEL ) );
121  CHECK( monitor_btagging( bTaggedJetEL ) );
122  }
123  // Add to Decision collection
124  newDecisions.push_back( toAdd );
125  }
126 
127  // online monitoring for jets
128  auto monitor_for_jet_count = Monitored::Scalar( "jet_count", jetELs.size() );
129  CHECK( monitor_jets( jetELs, all_bTaggedJetELs ) );
130 
131  auto monitor_group_for_events = Monitored::Group( m_monTool, monitor_for_jet_count, monitor_for_vertex_count );
132 
133 
134 
136  //auto monitor_for_jet_count = Monitored::Scalar( "jet_count", jetELs.size() );
137  //CHECK( monitor_jets( jetELs ) );
138 
139 
140  // ==========================================================================================================================
141  // ** Prepare input to Hypo Tools
142  // ==========================================================================================================================
143 
145  m_beamSpotKey, context);
146  const InDet::BeamSpotData* beamSpot = beamSpotHandle.retrieve();
147 
148  std::vector< TrigBjetBtagHypoTool::TrigBjetBtagHypoToolInfo > bTagHypoInputs;
149 
150  for ( unsigned int index(0); index<nDecisions; index++ ) {
151 
152  // Extract the IDs of the b-jet chains which are active.
153  // Previous decision IDs.
154  const TrigCompositeUtils::Decision *previousDecision = prevDecisionContainer->at(index);
155 
156  TrigCompositeUtils::DecisionIDContainer previousDecisionIDs {
157  TrigCompositeUtils::decisionIDs( previousDecision ).begin(),
158  TrigCompositeUtils::decisionIDs( previousDecision ).end() };
159 
160  // Retrieve PV from navigation
162  CHECK( retrieveObjectFromNavigation( m_prmVtxLink.value(), vertexEL, previousDecision ) );
164  CHECK( retrieveCollectionFromView( context, bTaggedJetEL, m_bTaggedJetKey, previousDecision ) );
165  CHECK( bTaggedJetEL.size() == 1 );
166  // Put everything in place
168  infoToAdd.previousDecisionIDs = previousDecisionIDs;
169  infoToAdd.jetEL = bTaggedJetEL.front();
170  infoToAdd.vertexEL = vertexEL;
171  infoToAdd.decision = newDecisions.at( index );
172  infoToAdd.beamSpot = beamSpot;
173  bTagHypoInputs.push_back( infoToAdd );
174  }
175 
176  // ==========================================================================================================================
177 
178  // Run on Trigger Chains
179  for ( const ToolHandle< TrigBjetBtagHypoTool >& tool : m_hypoTools )
180  CHECK( tool->decide( bTagHypoInputs ) );
181 
182  ATH_MSG_DEBUG( "Exiting with " << handle->size() << " decisions" );
183  ATH_MSG_DEBUG( "CHECKING OUTPUT DECISION HANDLE" );
184  CHECK( hypoBaseOutputProcessing(handle) );
185 
186  // ==========================================================================================================================
187 
188  return StatusCode::SUCCESS;
189 }

◆ 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
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  }
96  return BaseAlg::extraOutputDeps();
97 }

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

◆ hypoBaseOutputProcessing()

StatusCode HypoBase::hypoBaseOutputProcessing ( SG::WriteHandle< TrigCompositeUtils::DecisionContainer > &  outputHandle,
MSG::Level  lvl = MSG::DEBUG 
) const
protectedinherited

Base class function to be called once slice specific code has finished. Handles debug printing and validation.

Definition at line 35 of file HypoBase.cxx.

35  {
36 
37  ATH_CHECK( printDebugInformation(outputHandle, lvl) );
38 
39  if (m_runtimeValidation) {
40  ATH_CHECK( runtimeValidation(outputHandle, msg()) );
41  }
42 
43  return StatusCode::SUCCESS;
44 }

◆ initialize()

StatusCode TrigBjetBtagHypoAlg::initialize ( )
virtual

Implements TrigBjetHypoAlgBase.

Definition at line 17 of file TrigBjetBtagHypoAlg.cxx.

17  {
18 
19  ATH_CHECK( m_hypoTools.retrieve() );
20  if ( !m_monTool.empty() ) CHECK( m_monTool.retrieve() );
21 
24  ATH_CHECK( m_inputPrmVtx.initialize() );
25 
29 
31 
32  return StatusCode::SUCCESS;
33 }

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

bool AthCommonReentrantAlgorithm< Gaudi::Algorithm >::isClonable
overridevirtualinherited

Specify if the algorithm is clonable.

Reentrant algorithms are clonable.

Definition at line 68 of file AthCommonReentrantAlgorithm.cxx.

52 {
53  // Reentrant algorithms are clonable.
54  return true;
55 }

◆ monitor_btagging()

StatusCode TrigBjetBtagHypoAlg::monitor_btagging ( const ElementLinkVector< xAOD::JetContainer > &  jetEL) const
privatevirtual

Definition at line 408 of file TrigBjetBtagHypoAlg.cxx.

408  {
409  // Monitor high-level tagger flavor probabilites
410  CHECK( monitor_flavor_probabilities(jetEL, "dips20211116") );
411  CHECK( monitor_flavor_probabilities(jetEL, "GN120220813") );
412  CHECK( monitor_flavor_probabilities(jetEL, "GN220240122") );
413 
414  return StatusCode::SUCCESS;
415 }

◆ monitor_flavor_bb_probabilities()

StatusCode TrigBjetBtagHypoAlg::monitor_flavor_bb_probabilities ( const ElementLinkVector< xAOD::JetContainer > &  jetEL,
const std::string &  var_name 
) const
privatevirtual

Definition at line 360 of file TrigBjetBtagHypoAlg.cxx.

360  {
361 
362  auto monitor_pb = Monitored::Collection( "bbtag_"+var_name+"_pb", jetEL,
363  [var_name](const ElementLink< xAOD::JetContainer >& jetlink) {
364  auto jet = *jetlink;
365  double pb = -1;
367  pb = acc(*jet);
368  return pb;
369  } );
370 
371  auto monitor_pbb = Monitored::Collection( "bbtag_"+var_name+"_pbb", jetEL,
372  [var_name](const ElementLink< xAOD::JetContainer >& jetlink) {
373  auto jet = *jetlink;
374  double pbb = -1;
376  pbb = acc(*jet);
377  return pbb;
378  } );
379 
380  auto monitor_group_for_flavor_bb_tag_var = Monitored::Group( m_monTool, monitor_pb, monitor_pbb );
381 
382  return StatusCode::SUCCESS;
383 }

◆ monitor_flavor_probabilities()

StatusCode TrigBjetBtagHypoAlg::monitor_flavor_probabilities ( const ElementLinkVector< xAOD::JetContainer > &  jetEL,
const std::string &  var_name 
) const
privatevirtual

Definition at line 306 of file TrigBjetBtagHypoAlg.cxx.

306  {
307  auto monitor_pu = Monitored::Collection( "btag_"+var_name+"_pu", jetEL,
308  [var_name](const ElementLink< xAOD::JetContainer >& jetlink) {
309  auto jet = *jetlink;
310  double pu = -1;
312  pu = acc(*jet);
313  return pu;
314  } );
315 
316  auto monitor_pb = Monitored::Collection( "btag_"+var_name+"_pb", jetEL,
317  [var_name](const ElementLink< xAOD::JetContainer >& jetlink) {
318  auto jet = *jetlink;
319  double pb = -1;
321  pb = acc(*jet);
322  return pb;
323  } );
324 
325  auto monitor_pc = Monitored::Collection( "btag_"+var_name+"_pc", jetEL,
326  [var_name](const ElementLink< xAOD::JetContainer >& jetlink) {
327  auto jet = *jetlink;
328  double pc = -1;
330  pc = acc(*jet);
331  return pc;
332  } );
333 
334  auto monitor_llr = Monitored::Collection( "btag_"+var_name+"_llr", jetEL,
335  [var_name](const ElementLink< xAOD::JetContainer >& jetlink) {
336  auto jet = *jetlink;
337  SG::ConstAccessor<float> acc_pb(var_name+"_pb");
338  double pb = -1.0;
339  pb = acc_pb(*jet);
340  SG::ConstAccessor<float> acc_pu(var_name+"_pu");
341  double pu = -1.0;
342  pu = acc_pu(*jet);
343  if( !pb || !pu ) return -1.0f;
344  float llr = 0.;
345  if(pb<=0.) {
346  llr = -30.;
347  } else if(pu<=0.) {
348  llr = +100.;
349  } else {
350  llr = std::log(pb/pu);
351  }
352  return llr;
353  } );
354 
355  auto monitor_group_for_flavor_tag_var = Monitored::Group( m_monTool, monitor_pu, monitor_pb, monitor_pc, monitor_llr );
356 
357  return StatusCode::SUCCESS;
358 }

◆ monitor_jets()

StatusCode TrigBjetBtagHypoAlg::monitor_jets ( const ElementLinkVector< xAOD::JetContainer > &  jetELs,
const ElementLinkVector< xAOD::JetContainer > &  all_bTaggedJetELs 
) const
privatevirtual

Definition at line 191 of file TrigBjetBtagHypoAlg.cxx.

191  {
192 
193  auto monitor_for_jet_pt = Monitored::Collection( "jet_pt", jetELs,
194  [](const ElementLink< xAOD::JetContainer >& jetLink) { return (*jetLink)->pt() / 1000.0 /*Gev*/; } );
195  auto monitor_for_jet_eta = Monitored::Collection( "jet_eta", jetELs,
196  [](const ElementLink< xAOD::JetContainer >& jetLink) { return (*jetLink)->eta(); } );
197  auto monitor_for_jet_phi = Monitored::Collection( "jet_phi", jetELs,
198  [](const ElementLink< xAOD::JetContainer >& jetLink) { return (*jetLink)->phi(); } );
199 
200  auto monitor_for_Bjet_pt = Monitored::Collection( "Bjet_pt", all_bTaggedJetELs,
201  [](const ElementLink< xAOD::JetContainer >& jetLink) { return (*jetLink)->pt() / 1000.0 /*Gev*/; } );
202  auto monitor_for_Bjet_eta = Monitored::Collection( "Bjet_eta", all_bTaggedJetELs,
203  [](const ElementLink< xAOD::JetContainer >& jetLink) { return (*jetLink)->eta(); } );
204  auto monitor_for_Bjet_phi = Monitored::Collection( "Bjet_phi", all_bTaggedJetELs,
205  [](const ElementLink< xAOD::JetContainer >& jetLink) { return (*jetLink)->phi(); } );
206 
207  for( unsigned int i = 0; i < jetELs.size(); i++ ) {
208  const ElementLink< xAOD::JetContainer >& jetLink = jetELs[i];
209  const ElementLink< xAOD::JetContainer >& BjetLink = all_bTaggedJetELs[i];
210  auto monitor_for_jet_delta_pt = Monitored::Scalar( "jet_bjet_delta_pt", (*jetLink)->pt() - (*BjetLink)->pt() );
211  auto monitor_for_jet_delta_eta = Monitored::Scalar( "jet_bjet_delta_eta", (*jetLink)->eta() - (*BjetLink)->eta() );
212  auto monitor_for_jet_delta_phi = Monitored::Scalar( "jet_bjet_delta_phi", (*jetLink)->phi() - (*BjetLink)->phi() );
213  auto monitor_group_for_jet_deltas = Monitored::Group( m_monTool,
214  monitor_for_jet_delta_pt, monitor_for_jet_delta_eta, monitor_for_jet_delta_phi
215  );
216 
217  }
218 
219  auto monitor_group_for_jets = Monitored::Group( m_monTool,
220  monitor_for_jet_pt, monitor_for_jet_eta, monitor_for_jet_phi,
221  monitor_for_Bjet_pt, monitor_for_Bjet_eta, monitor_for_Bjet_phi
222  );
223 
224  return StatusCode::SUCCESS;
225 }

◆ monitor_primary_vertex()

StatusCode TrigBjetBtagHypoAlg::monitor_primary_vertex ( const ElementLink< xAOD::VertexContainer > &  primVertexEL) const
privatevirtual

Definition at line 386 of file TrigBjetBtagHypoAlg.cxx.

386  {
387  auto monitor_for_primVtx_x = Monitored::Scalar( "primVtx_x", (*primVertexEL)->x() );
388  auto monitor_for_primVtx_y = Monitored::Scalar( "primVtx_y", (*primVertexEL)->y() );
389  auto monitor_for_primVtx_z = Monitored::Scalar( "primVtx_z", (*primVertexEL)->z() );
390 
391  auto monitor_group_for_primary_vertex = Monitored::Group( m_monTool, monitor_for_primVtx_x, monitor_for_primVtx_y, monitor_for_primVtx_z );
392  return StatusCode::SUCCESS;
393 }

◆ monitor_tracks()

StatusCode TrigBjetBtagHypoAlg::monitor_tracks ( const EventContext &  context,
const TrigCompositeUtils::DecisionContainer prevDecisionContainer 
) const
privatevirtual

Definition at line 227 of file TrigBjetBtagHypoAlg.cxx.

227  {
228  // This vector is for checking we are not reading more than once from the same View, thus retrieving the same objects multiple times!
229  std::vector< ElementLink< ViewContainer > > readViews;
230  for ( const TrigCompositeUtils::Decision* previousDecision: *prevDecisionContainer ) {
231  // get View
232  ElementLink< ViewContainer > viewEL = previousDecision->objectLink< ViewContainer >( TrigCompositeUtils::viewString() );
233  ATH_CHECK( viewEL.isValid() );
234  ATH_MSG_DEBUG( "Retrieved View" );
235 
236  bool alreadyUsed = false;
237  for ( const ElementLink< ViewContainer >& storedViews : readViews ) {
238  if ( viewEL == storedViews ) {
239  ATH_MSG_DEBUG( "We have already used this view!" );
240  alreadyUsed = true;
241  break;
242  }
243  }
244  if ( alreadyUsed ) continue;
245 
246  readViews.push_back( viewEL );
247 
248  // online monitoring for tracks
250  ATH_CHECK( trackHandle.isValid() );
251  size_t Counter = 0;
253  for ( auto it = trackHandle->begin(); it != trackHandle->end(); ++it, ++Counter ) {
254  ElementLink< xAOD::TrackParticleContainer > tracks = ViewHelper::makeLink< xAOD::TrackParticleContainer >( *viewEL, trackHandle, Counter );
255  ATH_CHECK( tracks.isValid() );
256  trackELs.push_back( tracks );
257  }
258  auto monitor_for_track_count = Monitored::Scalar( "track_count", trackELs.size() );
259  auto monitor_group_for_decision = Monitored::Group( m_monTool, monitor_for_track_count);
260 
261  auto monitor_for_track_Et = Monitored::Collection( "track_Et", trackELs,
262  [](const ElementLink< xAOD::TrackParticleContainer >& trackLink) { return (*trackLink)->p4().Et() / 1000.0 /*Gev*/; } );
263  auto monitor_for_track_eta = Monitored::Collection( "track_eta", trackELs,
264  [](const ElementLink< xAOD::TrackParticleContainer >& trackLink) { return (*trackLink)->eta(); } );
265  auto monitor_for_track_phi = Monitored::Collection( "track_phi", trackELs,
266  [](const ElementLink< xAOD::TrackParticleContainer >& trackLink) { return (*trackLink)->phi(); } );
267 
268  // Monitors for d0 and z0 track impact parameter variables
269  auto monitor_for_track_d0 = Monitored::Collection( "track_d0", trackELs,
270  [](const ElementLink< xAOD::TrackParticleContainer >& trackLink) { return (*trackLink)->d0(); } );
271 
272  auto monitor_for_track_d0err = Monitored::Collection( "track_d0err", trackELs,
273  [](const ElementLink< xAOD::TrackParticleContainer >& trackLink) {
274  return Amg::error( (*trackLink)->definingParametersCovMatrix(), 0);
275  } );
276 
277  auto monitor_for_track_d0sig = Monitored::Collection( "track_d0sig", trackELs,
278  [](const ElementLink< xAOD::TrackParticleContainer >& trackLink) {
279  return (*trackLink)->d0() / Amg::error( (*trackLink)->definingParametersCovMatrix(), 0);
280  } );
281 
282  auto monitor_for_track_z0 = Monitored::Collection( "track_z0", trackELs,
283  [](const ElementLink< xAOD::TrackParticleContainer >& trackLink) { return (*trackLink)->z0(); } );
284 
285  auto monitor_for_track_z0err = Monitored::Collection( "track_z0err", trackELs,
286  [](const ElementLink< xAOD::TrackParticleContainer >& trackLink) {
287  return Amg::error( (*trackLink)->definingParametersCovMatrix(), 1);
288  } );
289 
290  auto monitor_for_track_z0sig = Monitored::Collection( "track_z0sig", trackELs,
291  [](const ElementLink< xAOD::TrackParticleContainer >& trackLink) {
292  return (*trackLink)->z0() / Amg::error( (*trackLink)->definingParametersCovMatrix(), 1);
293  } );
294 
295  auto monitor_group_for_tracks = Monitored::Group( m_monTool,
296  monitor_for_track_Et, monitor_for_track_eta, monitor_for_track_phi,
297  monitor_for_track_d0, monitor_for_track_d0err, monitor_for_track_d0sig,
298  monitor_for_track_z0, monitor_for_track_z0err, monitor_for_track_z0sig
299  );
300 
301  }
302  return StatusCode::SUCCESS;
303 }

◆ msg() [1/2]

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

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

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

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

◆ printBangs()

void HypoBase::printBangs ( MsgStream &  msg)
staticprivateinherited

Print header line.

Definition at line 390 of file HypoBase.cxx.

390  {
391  msg << MSG::ERROR << "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" << endmsg;
392 }

◆ printDebugInformation()

StatusCode HypoBase::printDebugInformation ( SG::WriteHandle< TrigCompositeUtils::DecisionContainer > &  outputHandle,
MSG::Level  lvl 
) const
privateinherited

Common base function to print information on chains passed by objects considered in the hypo.

Definition at line 406 of file HypoBase.cxx.

406  {
407  if (msgLvl(lvl)) {
408  msg() << lvl;
409  msg() << "Exiting with " << outputHandle->size() <<" Decision objects" << endmsg;
410  size_t count = 0;
411  for (const Decision* d : *outputHandle){
412  DecisionIDContainer objDecisions;
413  decisionIDs( d, objDecisions );
414  msg() << "Number of positive decisions for Decision object #" << count++ << ": " << objDecisions.size() << endmsg;
415  for (const TrigCompositeUtils::DecisionID id : objDecisions ) {
416  msg() << " --- Passes: " << HLT::Identifier( id ) << endmsg;
417  }
418  }
419  }
420  return StatusCode::SUCCESS;
421 }

◆ printErrorHeader()

void HypoBase::printErrorHeader ( const ElementLink< TrigCompositeUtils::DecisionContainer > &  dEL,
MsgStream &  msg 
)
staticprivateinherited

A problem was found, print common output data.

Definition at line 395 of file HypoBase.cxx.

397 {
398  printBangs(msg);
399  msg << MSG::ERROR << "! RUNTIME TRIGGER NAVIGATION VALIDATION ERROR" << endmsg;
400  msg << MSG::ERROR << "! Caused by Decision with index:" << (*dEL)->index() << endmsg;
401  msg << MSG::ERROR << "! From collection:" << dEL.dataID() << endmsg;
402  msg << MSG::ERROR << "! " << **dEL << endmsg;
403 }

◆ recursiveValidateGraph()

StatusCode HypoBase::recursiveValidateGraph ( const ElementLink< TrigCompositeUtils::DecisionContainer > &  dEL,
MsgStream &  msg,
bool  onlyValidateOneStep,
bool  runTwoConversion,
size_t  callDepth,
std::set< const TrigCompositeUtils::Decision * > &  fullyExploredFrom 
)
staticprivateinherited

Execute all checks on one node in the graph, d, then recursive call self on all parent nodes up to L1.

Definition at line 71 of file HypoBase.cxx.

77 {
78  if (onlyValidateOneStep && callDepth > 0) {
79  if ((*dEL)->name() == hypoAlgNodeName()) {
80  // Validation is called from HypoAlg nodes. So if we have reached the _previous_ HypoAlg node, then we have already
81  // validated back from here in the past. Can stop at this point.
82  return StatusCode::SUCCESS;
83  }
84  }
85 
86  // Check logical flow at this place in the graph
87  if ((*dEL)->name() == hypoAlgNodeName()) {
88  // Check that all Hypo Decisions produced here satisfy the more-strict all-parent logical flow
89  if ( validateLogicalFlow(dEL, msg, kRequireAll).isFailure() ) {
90  return StatusCode::FAILURE;
91  }
92  } else {
93  // (looser requirement of one-valid-parent-with-decision than we had when we knew that d corresponded to a HypoAlg output)
94  if ( validateLogicalFlow(dEL, msg, kRequireOne).isFailure() ) {
95  return StatusCode::FAILURE;
96  }
97  }
98 
99  // Check my IDs
100  if ( validateDecisionIDs(dEL, msg).isFailure() ) {
101  return StatusCode::FAILURE;
102  }
103  if ( validateDuplicatedDecisionID(dEL, msg).isFailure() ) {
104  return StatusCode::FAILURE;
105  }
106 
107  // Check my linking
108  if( validateParentLinking(dEL, msg, runTwoConversion).isFailure() ) {
109  return StatusCode::FAILURE;
110  }
111  if ( validateHasLinks(dEL, msg).isFailure() ) {
112  return StatusCode::FAILURE;
113  }
114 
115  // Continue upstream
116  const std::vector<ElementLink<DecisionContainer>> seeds = (*dEL)->objectCollectionLinks<DecisionContainer>(seedString());
117  for (const ElementLink<DecisionContainer>& seed : seeds) {
118  if (fullyExploredFrom.count( (*seed) ) == 1) {
119  continue; // Already fully explored from this seed and up
120  }
121  if ( not seed.isValid() ) {
122  msg << MSG::ERROR << "Invalid seed element link in recursiveValidateGraph" << endmsg;
123  return StatusCode::FAILURE;
124  }
125  if ( recursiveValidateGraph(seed, msg, onlyValidateOneStep, runTwoConversion, callDepth + 1, fullyExploredFrom).isFailure() ) {
126  return StatusCode::FAILURE;
127  }
128  }
129 
130  fullyExploredFrom.insert( *dEL );
131  return StatusCode::SUCCESS;
132 }

◆ 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();
383  PBASE::renounce (h);
384  }

◆ 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  {
365  handlesArray.renounce();
366  }

◆ retrieveCollectionFromNavigation()

template<class CONTAINER >
StatusCode TrigBjetHypoAlgBase::retrieveCollectionFromNavigation ( const std::string &  linkName,
ElementLinkVector< CONTAINER > &  objELs,
const TrigCompositeUtils::DecisionContainer  
) const
protectedinherited

◆ retrieveCollectionFromView()

template<class CONTAINER >
StatusCode TrigBjetHypoAlgBase::retrieveCollectionFromView ( const EventContext &  ,
ElementLinkVector< CONTAINER > &  ,
const SG::ReadHandleKey< CONTAINER > &  ,
const TrigCompositeUtils::Decision  
) const
protectedinherited

◆ retrieveObjectFromEventView()

template<class CONTAINER >
StatusCode TrigBjetHypoAlgBase::retrieveObjectFromEventView ( const EventContext &  ,
ElementLinkVector< CONTAINER > &  ,
const SG::ReadHandleKey< CONTAINER > &  ,
const TrigCompositeUtils::DecisionContainer  
) const
protectedinherited

◆ retrieveObjectFromNavigation()

template<class CONTAINER >
StatusCode TrigBjetHypoAlgBase::retrieveObjectFromNavigation ( const std::string &  ,
ElementLink< CONTAINER > &  ,
const TrigCompositeUtils::Decision  
) const
protectedinherited

◆ retrieveObjectFromStoreGate()

template<class CONTAINER >
StatusCode TrigBjetHypoAlgBase::retrieveObjectFromStoreGate ( const EventContext &  ,
ElementLinkVector< CONTAINER > &  ,
const SG::ReadHandleKey< CONTAINER > &   
) const
protectedinherited

◆ retrievePreviousDecisionContainer()

StatusCode TrigBjetHypoAlgBase::retrievePreviousDecisionContainer ( const EventContext &  context,
const TrigCompositeUtils::DecisionContainer *&  prevDecisionContainer 
) const
protectedinherited

Definition at line 15 of file TrigBjetHypoAlgBase.cxx.

16  {
17 
18  ATH_MSG_DEBUG( "Retrieving Previous Decision" );
20  CHECK( prevDecisionContainerHandle.isValid() );
21 
22  prevDecisionContainer = prevDecisionContainerHandle.get();
23  return StatusCode::SUCCESS;
24 }

◆ runtimeValidation()

StatusCode HypoBase::runtimeValidation ( SG::WriteHandle< TrigCompositeUtils::DecisionContainer > &  outputHandle,
MsgStream &  msg,
bool  onlyValidateOneStep = true,
bool  runTwoConversion = false 
)
staticinherited

Executes all individual runtime tests.

Definition at line 47 of file HypoBase.cxx.

51 {
52  // Detailed checks on the output container of this HypoAlg
53  std::set<const Decision*> fullyExploredFrom; // Cache used to avoid exploring regions of the graph more than once
54  for (const Decision* d : *outputHandle) {
55  const DecisionContainer* dContainer = dynamic_cast<const DecisionContainer*>( d->container() );
56  const ElementLink<DecisionContainer> dEL = ElementLink<DecisionContainer>(*dContainer, d->index());
57  if (not dEL.isValid()) {
58  msg << MSG::ERROR << "Invalid seed element link in recursiveValidateGraph" << endmsg;
59  return StatusCode::FAILURE;
60  }
61  // Check that we can reach L1 along all navigation paths up from each Decision
62  // and validate these Decisions on the way up too.
63  if (recursiveValidateGraph(dEL, msg, onlyValidateOneStep, runTwoConversion, 0, fullyExploredFrom).isFailure()) {
64  return StatusCode::FAILURE;
65  }
66  }
67  return StatusCode::SUCCESS;
68 }

◆ setFilterPassed()

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

Definition at line 100 of file AthCommonReentrantAlgorithm.h.

100  {
101  execState( ctx ).setFilterPassed( state );
102  }

◆ 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 HypoBase::sysInitialize ( )
overridevirtualinherited

initialise this base class

Reimplemented from AthCommonReentrantAlgorithm< Gaudi::Algorithm >.

Definition at line 26 of file HypoBase.cxx.

26  {
27  CHECK( AthReentrantAlgorithm::sysInitialize() ); // initialise base class
28  CHECK( m_input.initialize() );
29  ATH_MSG_DEBUG("HypoBase::sysInitialize() Will consume decision: " << m_input.key() );
30  CHECK( m_output.initialize() );
31  ATH_MSG_DEBUG("HypoBase::sysInitialize() And produce decision: " << m_output.key() );
32  return StatusCode::SUCCESS;
33 }

◆ 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) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

◆ validateDecisionIDs()

StatusCode HypoBase::validateDecisionIDs ( const ElementLink< TrigCompositeUtils::DecisionContainer > &  dEL,
MsgStream &  msg 
)
staticprivateinherited

Ensure that all present IDs correspond to configured chains.

Definition at line 209 of file HypoBase.cxx.

211 {
212  // All numeric IDs must correspond to a know, configured, HLT chain
213  DecisionIDContainer decisionIDSet;
214  decisionIDs(*dEL, decisionIDSet);
215  for (const DecisionID id : decisionIDSet) {
216  const std::string chain = HLT::Identifier( id ).name();
217  if (!isChainId(chain) and !isLegId(chain)) {
218  printErrorHeader(dEL, msg);
219  msg << MSG::ERROR << "! Decision contains an ID which does not correspond to a configured chain or a configured chain-leg: " << HLT::Identifier( id ) << endmsg;
220  msg << MSG::ERROR << "! SOLUTION: Locate the producer of the collection, investigate how this bad ID could have been added." << endmsg;
221  printBangs(msg);
222  return StatusCode::FAILURE;
223  }
224  }
225  return StatusCode::SUCCESS;
226 }

◆ validateDuplicatedDecisionID()

StatusCode HypoBase::validateDuplicatedDecisionID ( const ElementLink< TrigCompositeUtils::DecisionContainer > &  dEL,
MsgStream &  msg 
)
staticprivateinherited

Ensure that no space is being wasted by duplicated DecisionIDs in any Decision objects.

Definition at line 229 of file HypoBase.cxx.

231 {
232  // Persistent vector storage does not guarantee against duplicate entries
233  DecisionIDContainer decisionIDSet;
234  decisionIDs(*dEL, decisionIDSet);
235  if (decisionIDSet.size() != (*dEL)->decisions().size()) {
236  printErrorHeader(dEL, msg);
237  msg << MSG::ERROR << "! Decision contains duplicate DecisionIDs." << endmsg;
238  msg << MSG::ERROR << "! SOLUTION: If combining DecisionIDs from multiple parents, de-duplicate the internal std::vector<DecisionID> of 'Decision* d' with:" << endmsg;
239  msg << MSG::ERROR << "! TrigCompositeUtils::insertDecisionIDs(DecisionIDContainer(), d);" << endmsg;
240  printBangs(msg);
241  return StatusCode::FAILURE;
242  }
243  return StatusCode::SUCCESS;
244 }

◆ validateHasLinks()

StatusCode HypoBase::validateHasLinks ( const ElementLink< TrigCompositeUtils::DecisionContainer > &  dEL,
MsgStream &  msg 
)
staticprivateinherited

Ensure all Decisions have the named ElementLink graph edges which they are required to by spec.

Definition at line 338 of file HypoBase.cxx.

340 {
341  const std::string& name = (*dEL)->name();
342  if (name == hypoAlgNodeName()) {
343 
344  // Check that I have a "feature"
345  if ((*dEL)->hasObjectLink( featureString() )) {
346  return StatusCode::SUCCESS;
347  }
348  printErrorHeader(dEL, msg);
349  msg << MSG::ERROR << "! Decision has no '" << featureString() << "' ElementLink." << endmsg;
350  msg << MSG::ERROR << "! Every Decision created by a HypoAlg must correspond to some physics object, and be linked to the object." << endmsg;
351  msg << MSG::ERROR << "! SOLUTION: Ensure that all produced Decision objects are assigned their feature:" << endmsg;
352  msg << MSG::ERROR << "! SOLUTION: decision->setObjectLink<MY_FEATURE_CONTANER_TYPE>(featureString(), MY_FEATURE_ELEMENT_LINK);" << endmsg;
353  printBangs(msg);
354  return StatusCode::FAILURE;
355 
356  } else if (name == inputMakerNodeName()) {
357 
358  // This requirement is dropped for empty input makers to avoid unnecessary graph clutter.
359  bool exempt = false;
360  if ((*dEL)->hasDetail<int32_t>("isEmpty") and (*dEL)->getDetail<int32_t>("isEmpty") == 1) {
361  exempt = true;
362  }
363 
364  if (not (*dEL)->hasObjectLink( roiString() ) and not exempt) {
365  printErrorHeader(dEL, msg);
366  msg << MSG::ERROR << "! Decision has no '" << roiString() << "' ElementLink." << endmsg;
367  msg << MSG::ERROR << "! Every Decision created by a InputMaker must link to the ROI which reconstruction will run on for that Decision object in this Step." << endmsg;
368  msg << MSG::ERROR << "! It can be the FullScan ROI created by the HLTSeeding (FSNOSEED) if no other suitable ROI exists." << endmsg;
369  msg << MSG::ERROR << "! SOLUTION: Check the configuration of InputMakerForRoI or EventViewCreatorAlgorithm responsible for creating this Decision Object" << endmsg;
370  msg << MSG::ERROR << "! SOLUTION: The algorithm must have an ROITool which must attach an '"<< roiString() <<"' link to each Decision Object" << endmsg;
371  printBangs(msg);
372  }
373 
374  } else if (name == hltSeedingNodeName()) {
375 
376  if (not (*dEL)->hasObjectLink( initialRoIString() )) {
377  printErrorHeader(dEL, msg);
378  msg << MSG::ERROR << "! Decision has no '" << initialRoIString() << "' ElementLink." << endmsg;
379  msg << MSG::ERROR << "! Every Decision created by the HLTSeeding must link to the initial ROI which caused it to be created." << endmsg;
380  msg << MSG::ERROR << "! This includes the Decision Object created to represent the Full-Scan/NoSeed (FSNOSEED) ROI." << endmsg;
381  msg << MSG::ERROR << "! SOLUTION: Check the configuration of the HLTSeeding tool responsible for creating this Decision Object" << endmsg;
382  printBangs(msg);
383  }
384 
385  }
386  return StatusCode::SUCCESS;
387 }

◆ validateLogicalFlow()

StatusCode HypoBase::validateLogicalFlow ( const ElementLink< TrigCompositeUtils::DecisionContainer > &  dEL,
MsgStream &  msg,
const LogicalFlowCheckMode  mode 
)
staticprivateinherited

Ensure that all DecisionIDs have propagated correctly from their parent.

Definition at line 247 of file HypoBase.cxx.

250 {
251  // Do not need to validate for L1 Decisions as these have no parents
252  if ((*dEL)->name() == hltSeedingNodeName()) {
253  return StatusCode::SUCCESS;
254  }
255 
256  // Get all my passed DecisionIDs
257  DecisionIDContainer decisionIDSet;
258  decisionIDs(*dEL, decisionIDSet);
259  const std::vector<ElementLink<DecisionContainer>> seeds = (*dEL)->objectCollectionLinks<DecisionContainer>(seedString());
260  for (const DecisionID id : decisionIDSet) {
261  // For each chain that I'm passing, check how many of my parents were also passing the chain
262  size_t parentsWithDecision = 0;
263  for (const ElementLink<DecisionContainer>& seed : seeds) {
264  if ( not seed.isValid() ) {
265  msg << MSG::ERROR << "Invalid seed element link in recursiveValidateGraph" << endmsg;
266  return StatusCode::FAILURE;
267  }
268  DecisionIDContainer seedIDSet;
269  decisionIDs(*seed, seedIDSet);
270  // Id may be a chain-ID (represents a whole chain) or a leg-ID (represents just a single leg of a multi-leg chain)
271  // Is ID is in this parent's set of passed IDs?
272  // Or, (if ID is a leg-ID) is the chain-ID of leg-ID in the parent's set of passed IDs?
273  if (passed(id, seedIDSet) or passed(getIDFromLeg(id).numeric(), seedIDSet)) {
274  ++parentsWithDecision;
275  }
276  else{ // Or, for each of the seed IDs, if the seed ID is a leg-ID, is the seed chain-ID of the seed leg-ID the same as ID?
277  for (auto sid: seedIDSet){
278  if (getIDFromLeg(sid).numeric() == id){
279  ++parentsWithDecision;
280  break;
281  }
282  }
283  }
284  }
285 
286  if (mode == kRequireOne && parentsWithDecision == 0) {
287  // InputMakers may merge multiple of their input collections in order to run reconstruction on a common set of ROI (for example)
288  // So the DecisionIDs may have come from any one or more of the inputs. But zero is not allowed.
289  printErrorHeader(dEL, msg);
290  msg << MSG::ERROR << "! This Decision object is not respecting logical flow of DecisionIDs for chain: " << HLT::Identifier( id ) << endmsg;
291  msg << MSG::ERROR << "! This chain's DecisionID can not be found in any parents of this Decision object:" << endmsg;
292  size_t seed_n = 0;
293  for (const ElementLink<DecisionContainer>& seed : seeds) {
294  msg << MSG::ERROR << "! Index:" << (*seed)->index() << " from collection:" << seed.dataID() << endmsg;
295  msg << MSG::ERROR << "! " << **seed << endmsg;
296  DecisionIDContainer objDecisions;
297  decisionIDs(*seed, objDecisions);
298  for (const TrigCompositeUtils::DecisionID id : objDecisions ) {
299  msg << "! --- Passing in parent #" << seed_n << ": " << HLT::Identifier( id ) << endmsg;
300  }
301  ++seed_n;
302  }
303  msg << MSG::ERROR << "! SOLUTION: Ensure that the producer of this Decision object only adds DecisionIDs"
304  " which were present in at least one of its parents." << endmsg;
305  printBangs(msg);
306  return StatusCode::FAILURE;
307  } else if (mode == kRequireAll && parentsWithDecision != seeds.size()) {
308  // HypoAlgs may form a new physics object from multiple objects in the previous step
309  // (think a BPhysics object whose parents are two Decisions which each correspond to a different L1 MU RoI,
310  // both ROI need to be in active state for the chain, if the chain's HypoTool considers the BPhysics object)
311  // This case requires *all* of the physics objects which are being combined together to be active for the chain
312  // in order to preserve logical flow
313  printErrorHeader(dEL, msg);
314  msg << MSG::ERROR << "! This Decision object is not respecting logical flow of DecisionIDs for chain: " << HLT::Identifier( id ) << endmsg;
315  msg << MSG::ERROR << "! As this Decision object represents the output of a HypoAlg, it must respect logical flow on all "
316  << seeds.size() << " of its parent(s):" << endmsg;
317  size_t seed_n = 0;
318  for (const ElementLink<DecisionContainer>& seed : seeds) {
319  msg << MSG::ERROR << "! Index:" << (*seed)->index() << " from collection:" << seed.dataID() << endmsg;
320  msg << MSG::ERROR << "! " << **seed << endmsg;
321  DecisionIDContainer objDecisions;
322  decisionIDs(*seed, objDecisions);
323  for (const TrigCompositeUtils::DecisionID id : objDecisions ) {
324  msg << "! --- Passing in parent #" << seed_n << ": " << HLT::Identifier( id ) << endmsg;
325  }
326  ++seed_n;
327  }
328  msg << MSG::ERROR << "! SOLUTION: Ensure that the HypoTool responsible for " << HLT::Identifier( id )
329  << " in this HypoAlg only runs if this ID is present in all parent decisions." << endmsg;
330  printBangs(msg);
331  return StatusCode::FAILURE;
332  }
333  }
334  return StatusCode::SUCCESS;
335 }

◆ validateParentLinking()

StatusCode HypoBase::validateParentLinking ( const ElementLink< TrigCompositeUtils::DecisionContainer > &  dEL,
MsgStream &  msg,
bool  runTwoConversion 
)
staticprivateinherited

Ensure that the Decision has at least one valid parent, unless it is a initial Decision from the HLTSeeding.

Definition at line 135 of file HypoBase.cxx.

138 {
139  const std::vector<ElementLink<DecisionContainer>> seeds = (*dEL)->objectCollectionLinks<DecisionContainer>(seedString());
140  // All Decision object must have at least one parent, unless they are the initial set of objects created by the HLTSeeding
141  const std::string& name = (*dEL)->name();
142  if (seeds.size() == 0 && name != hltSeedingNodeName()) {
143  printErrorHeader(dEL, msg);
144  msg << MSG::ERROR << "! Decision has zero parents. This is only allowed for the initial Decisions created by the HLTSeeding." << endmsg;
145  msg << MSG::ERROR << "! SOLUTION: Attach parent Decision(s) with TrigCompositeUtils::linkToPrevious" << endmsg;
146  printBangs(msg);
147  return StatusCode::FAILURE;
148  }
149 
150  if (name == hltSeedingNodeName()) {
151  if (seeds.size() > 0) {
152  printErrorHeader(dEL, msg);
153  msg << MSG::ERROR << "! Decision has parents. This is not allowed for the initial Decisions created by the HLTSeeding." << endmsg;
154  msg << MSG::ERROR << "! SOLUTION: Check HLTSeeding, no where should it be adding a parent link." << endmsg;
155  printBangs(msg);
156  return StatusCode::FAILURE;
157  }
158  return StatusCode::SUCCESS;
159  }
160 
161  static const std::set<std::string> expectedParentsFilter = {hypoAlgNodeName(), comboHypoAlgNodeName(), hltSeedingNodeName()};
162  static const std::set<std::string> expectedParentsInputMaker = {filterNodeName()};
163  static const std::set<std::string> expectedParentsHypoAlg = {inputMakerNodeName()};
164  static const std::set<std::string> expectedParentsComboHypoAlg = {hypoAlgNodeName(), inputMakerNodeName(), hltSeedingNodeName()}; // TODO check hltSeedingNodeName(), needed for newJO
165  static const std::set<std::string> expectedParentsSummaryFilter = {hypoAlgNodeName(), comboHypoAlgNodeName(), hltSeedingNodeName()};
166  static const std::set<std::string> expectedParentsSummaryPassed = {summaryFilterNodeName()};
167 
168  const std::set<std::string>* expectedParentsPtr = nullptr;
169  if (name == filterNodeName()) {
170  expectedParentsPtr = &expectedParentsFilter;
171  } else if (name == inputMakerNodeName() and !runTwoConversion) {
172  expectedParentsPtr = &expectedParentsInputMaker;
173  } else if (name == inputMakerNodeName() and runTwoConversion) {
174  expectedParentsPtr = &expectedParentsFilter; // We don't have Filter nodes in the R2->R3 conversion
175  } else if (name == hypoAlgNodeName()) {
176  expectedParentsPtr = &expectedParentsHypoAlg;
177  } else if (name == comboHypoAlgNodeName()) {
178  expectedParentsPtr = &expectedParentsComboHypoAlg;
179  } else if (name == summaryFilterNodeName()) {
180  expectedParentsPtr = &expectedParentsSummaryFilter;
181  } else if (name == summaryPassNodeName()) {
182  expectedParentsPtr = &expectedParentsSummaryPassed;
183  } else {
184  printErrorHeader(dEL, msg);
185  msg << MSG::ERROR << "! Invalid Node name '" << name << "'." << endmsg;
186  msg << MSG::ERROR << "! SOLUTION: Find the alg which made a node with this name. Allowed named may be found in TrigCompositeUtils.h, See:'Constant string literals used within the HLT'." << endmsg;
187  printBangs(msg);
188  return StatusCode::FAILURE;
189  }
190 
191  for (const ElementLink<DecisionContainer>& seed : seeds) {
192  if (!expectedParentsPtr->contains( (*seed)->name() )) {
193  printErrorHeader(dEL, msg);
194  msg << MSG::ERROR << "! Invalid linking from node with name '" << name << "' to one with name '"<< (*seed)->name() << "'." << endmsg;
195  msg << MSG::ERROR << "! Allowed seed names are:" << endmsg;
196  for (const std::string& allowed : *expectedParentsPtr) {
197  msg << MSG::ERROR << "! " << allowed << endmsg;
198  }
199  msg << MSG::ERROR << "! SOLUTION: Find where this invalid parent was added and correct it." << endmsg;
200  printBangs(msg);
201  return StatusCode::FAILURE;
202  }
203  }
204 
205  return StatusCode::SUCCESS;
206 }

Member Data Documentation

◆ m_beamSpotKey

SG::ReadCondHandleKey< InDet::BeamSpotData > TrigBjetBtagHypoAlg::m_beamSpotKey { this, "BeamSpotKey", "BeamSpotData", "SG key for beam spot" }
private

Definition at line 56 of file TrigBjetBtagHypoAlg.h.

◆ m_bTaggedJetKey

SG::ReadHandleKey< xAOD::JetContainer > TrigBjetBtagHypoAlg::m_bTaggedJetKey {this,"BTaggedJetKey","","Key for b-tagged jets"}
private

Definition at line 50 of file TrigBjetBtagHypoAlg.h.

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

ToolHandleArray< TrigBjetBtagHypoTool > TrigBjetBtagHypoAlg::m_hypoTools {this,"HypoTools",{},"Hypo Tools"}
private

Definition at line 47 of file TrigBjetBtagHypoAlg.h.

◆ m_input

SG::ReadHandleKey<TrigCompositeUtils::DecisionContainer> HypoBase::m_input { this, "HypoInputDecisions", "UNSPECIFIED_INPUT", "Input Decision (implicit)" }
privateinherited

input decisions

Definition at line 101 of file HypoBase.h.

◆ m_inputPrmVtx

SG::ReadHandleKey< xAOD::VertexContainer > TrigBjetBtagHypoAlg::m_inputPrmVtx {this,"PrmVtxKey","","Key for Primary vertex collection for monitoring"}
private

Definition at line 52 of file TrigBjetBtagHypoAlg.h.

◆ m_monTool

ToolHandle<GenericMonitoringTool> TrigBjetBtagHypoAlg::m_monTool {this,"MonTool","","Monitoring tool"}
private

Definition at line 48 of file TrigBjetBtagHypoAlg.h.

◆ m_output

SG::WriteHandleKey<TrigCompositeUtils::DecisionContainer> HypoBase::m_output { this, "HypoOutputDecisions", "UNSPECIFIED_OUTPUT", "Ouput Decision" }
privateinherited

output decisions

Definition at line 103 of file HypoBase.h.

◆ m_prmVtxLink

Gaudi::Property< std::string > TrigBjetBtagHypoAlg::m_prmVtxLink {this,"PrmVtxLink","Unspecified","Vertex Link name in navigation (input)"}
private

Definition at line 54 of file TrigBjetBtagHypoAlg.h.

◆ m_runtimeValidation

Gaudi::Property<bool> HypoBase::m_runtimeValidation { this, "RuntimeValidation", false, "Enable detailed runtime validation of HypoAlg output, and upstream Decisions." }
privateinherited

Enabling of detailed validation checks for use during development.

Definition at line 105 of file HypoBase.h.

◆ m_trackKey

SG::ReadHandleKey< xAOD::TrackParticleContainer > TrigBjetBtagHypoAlg::m_trackKey {this,"TracksKey","","Key for precision tracks"}
private

Definition at line 51 of file TrigBjetBtagHypoAlg.h.

◆ m_varHandleArraysDeclared

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

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
TrigCompositeUtils::featureString
const std::string & featureString()
Definition: TrigCompositeUtils.h:420
TrigBjetBtagHypoTool::TrigBjetBtagHypoToolInfo::jetEL
ElementLink< xAOD::JetContainer > jetEL
Definition: TrigBjetBtagHypoTool.h:37
TrigDefs::Group
Group
Properties of a chain group.
Definition: GroupProperties.h:13
runLayerRecalibration.chain
chain
Definition: runLayerRecalibration.py:175
TrigCompositeUtils::DecisionID
unsigned int DecisionID
Definition: TrigComposite_v1.h:27
TrigBjetBtagHypoAlg::m_bTaggedJetKey
SG::ReadHandleKey< xAOD::JetContainer > m_bTaggedJetKey
Definition: TrigBjetBtagHypoAlg.h:50
keylayer_zslicemap.pb
pb
Definition: keylayer_zslicemap.py:188
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
TrigCompositeUtils::passed
bool passed(DecisionID id, const DecisionIDContainer &idSet)
checks if required decision ID is in the set of IDs in the container
Definition: TrigCompositeUtilsRoot.cxx:117
CheckAppliedSFs.var_name
var_name
Definition: CheckAppliedSFs.py:241
TrigCompositeUtils::newDecisionIn
Decision * newDecisionIn(DecisionContainer *dc, const std::string &name)
Helper method to create a Decision object, place it in the container and return a pointer to it.
Definition: TrigCompositeUtilsRoot.cxx:43
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:67
index
Definition: index.py:1
hist_file_dump.d
d
Definition: hist_file_dump.py:142
TrigCompositeUtils::summaryFilterNodeName
const std::string & summaryFilterNodeName()
Definition: TrigCompositeUtils.h:428
ViewHelper::makeHandle
SG::ReadHandle< T > makeHandle(const SG::View *view, const SG::ReadHandleKey< T > &rhKey, const EventContext &context)
navigate from the TrigComposite to nearest view and fetch object from it
Definition: ViewHelper.h:265
TrigCompositeUtils::summaryPassNodeName
const std::string & summaryPassNodeName()
Definition: TrigCompositeUtils.h:429
TrigBjetBtagHypoTool::TrigBjetBtagHypoToolInfo::beamSpot
const InDet::BeamSpotData * beamSpot
Definition: TrigBjetBtagHypoTool.h:40
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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 > renounce(T &h)
Definition: AthCommonDataStore.h:380
python.TrigCompositeUtils.isLegId
def isLegId(chainName)
Definition: DecisionHandling/python/TrigCompositeUtils.py:18
skel.it
it
Definition: skel.GENtoEVGEN.py:407
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
TrigBjetBtagHypoAlg::m_trackKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackKey
Definition: TrigBjetBtagHypoAlg.h:51
AthCommonMsg< Gaudi::Algorithm >::msgLvl
bool msgLvl(const MSG::Level lvl) const
Definition: AthCommonMsg.h:30
TrigBjetHypoAlgBase::retrieveObjectFromEventView
StatusCode retrieveObjectFromEventView(const EventContext &, ElementLinkVector< CONTAINER > &, const SG::ReadHandleKey< CONTAINER > &, const TrigCompositeUtils::DecisionContainer *) const
HypoBase::decisionInput
const SG::ReadHandleKey< TrigCompositeUtils::DecisionContainer > & decisionInput() const
methods for derived classes to access handles of the base class input other read/write handles may be...
Definition: HypoBase.cxx:18
HypoBase::printBangs
static void printBangs(MsgStream &msg)
Print header line.
Definition: HypoBase.cxx:390
TrigCompositeUtils::comboHypoAlgNodeName
const std::string & comboHypoAlgNodeName()
Definition: TrigCompositeUtils.h:427
ElementLinkVector
ElementLinkVector implementation for standalone ROOT.
Definition: AthLinks/ElementLinkVector.h:65
SG::ConstAccessor< char >
HypoBase::kRequireAll
@ kRequireAll
Definition: HypoBase.h:54
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
TrigBjetHypoAlgBase::retrieveCollectionFromNavigation
StatusCode retrieveCollectionFromNavigation(const std::string &linkName, ElementLinkVector< CONTAINER > &objELs, const TrigCompositeUtils::DecisionContainer *) const
TrigCompositeUtils::createAndStore
SG::WriteHandle< DecisionContainer > createAndStore(const SG::WriteHandleKey< DecisionContainer > &key, const EventContext &ctx)
Creates and right away records the DecisionContainer with the key.
Definition: TrigCompositeUtilsRoot.cxx:27
TrigCompositeUtils::roiString
const std::string & roiString()
Definition: TrigCompositeUtils.h:418
TrigBjetBtagHypoTool::TrigBjetBtagHypoToolInfo::vertexEL
ElementLink< xAOD::VertexContainer > vertexEL
Definition: TrigBjetBtagHypoTool.h:38
HypoBase::decisionOutput
const SG::WriteHandleKey< TrigCompositeUtils::DecisionContainer > & decisionOutput() const
methods for derived classes to access handles of the base class output other read/write handles may b...
Definition: HypoBase.cxx:22
XMLtoHeader.count
count
Definition: XMLtoHeader.py:84
Monitored::Collection
ValuesCollection< T > Collection(std::string name, const T &collection)
Declare a monitored (double-convertible) collection.
Definition: MonitoredCollection.h:38
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
SG::makeHandle
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
Definition: ReadCondHandle.h:274
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
HypoBase::recursiveValidateGraph
static StatusCode recursiveValidateGraph(const ElementLink< TrigCompositeUtils::DecisionContainer > &dEL, MsgStream &msg, bool onlyValidateOneStep, bool runTwoConversion, size_t callDepth, std::set< const TrigCompositeUtils::Decision * > &fullyExploredFrom)
Execute all checks on one node in the graph, d, then recursive call self on all parent nodes up to L1...
Definition: HypoBase.cxx:71
AthCommonReentrantAlgorithm::extraOutputDeps
virtual const DataObjIDColl & extraOutputDeps() const override
Return the list of extra output dependencies.
Definition: AthCommonReentrantAlgorithm.cxx:89
TrigBjetBtagHypoAlg::m_prmVtxLink
Gaudi::Property< std::string > m_prmVtxLink
Definition: TrigBjetBtagHypoAlg.h:54
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:209
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
AthCommonDataStore
Definition: AthCommonDataStore.h:52
Generate_dsid_ranseed.seed
seed
Definition: Generate_dsid_ranseed.py:10
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
TrigCompositeUtils::filterNodeName
const std::string & filterNodeName()
Definition: TrigCompositeUtils.h:424
TrigBjetBtagHypoAlg::monitor_primary_vertex
virtual StatusCode monitor_primary_vertex(const ElementLink< xAOD::VertexContainer > &primVertexEL) const
Definition: TrigBjetBtagHypoAlg.cxx:386
lumiFormat.i
int i
Definition: lumiFormat.py:85
HypoBase::validateDuplicatedDecisionID
static StatusCode validateDuplicatedDecisionID(const ElementLink< TrigCompositeUtils::DecisionContainer > &dEL, MsgStream &msg)
Ensure that no space is being wasted by duplicated DecisionIDs in any Decision objects.
Definition: HypoBase.cxx:229
HypoBase::hypoBaseOutputProcessing
StatusCode hypoBaseOutputProcessing(SG::WriteHandle< TrigCompositeUtils::DecisionContainer > &outputHandle, MSG::Level lvl=MSG::DEBUG) const
Base class function to be called once slice specific code has finished. Handles debug printing and va...
Definition: HypoBase.cxx:35
HypoBase::m_runtimeValidation
Gaudi::Property< bool > m_runtimeValidation
Enabling of detailed validation checks for use during development.
Definition: HypoBase.h:105
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
SG::WriteHandle::ptr
pointer_type ptr()
Dereference the pointer.
SG::ReadHandle::get
const_pointer_type get() const
Dereference the pointer, but don't cache anything.
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Definition: AthCommonDataStore.h:145
HypoBase::m_input
SG::ReadHandleKey< TrigCompositeUtils::DecisionContainer > m_input
input decisions
Definition: HypoBase.h:101
AthCommonReentrantAlgorithm::sysExecute
virtual StatusCode sysExecute(const EventContext &ctx) override
Execute an algorithm.
Definition: AthCommonReentrantAlgorithm.cxx:76
xAOD::VxType::PriVtx
@ PriVtx
Primary vertex.
Definition: TrackingPrimitives.h:572
TrigBjetHypoAlgBase::retrievePreviousDecisionContainer
StatusCode retrievePreviousDecisionContainer(const EventContext &, const TrigCompositeUtils::DecisionContainer *&) const
Definition: TrigBjetHypoAlgBase.cxx:15
ftag::defaults::tagger
const std::string tagger
Definition: ToolDefaults.h:11
AthenaPoolTestRead.acc
acc
Definition: AthenaPoolTestRead.py:16
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
Preparation.mode
mode
Definition: Preparation.py:107
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:422
HypoBase::validateLogicalFlow
static StatusCode validateLogicalFlow(const ElementLink< TrigCompositeUtils::DecisionContainer > &dEL, MsgStream &msg, const LogicalFlowCheckMode mode)
Ensure that all DecisionIDs have propagated correctly from their parent.
Definition: HypoBase.cxx:247
HypoBase::validateDecisionIDs
static StatusCode validateDecisionIDs(const ElementLink< TrigCompositeUtils::DecisionContainer > &dEL, MsgStream &msg)
Ensure that all present IDs correspond to configured chains.
Definition: HypoBase.cxx:209
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
xAOD::TrigComposite_v1
Class used to describe composite objects in the HLT.
Definition: TrigComposite_v1.h:52
TrigCompositeUtils::initialRoIString
const std::string & initialRoIString()
Definition: TrigCompositeUtils.h:416
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
HLT::Identifier
Definition: TrigCompositeUtils/TrigCompositeUtils/HLTIdentifier.h:19
DeMoUpdate.toAdd
bool toAdd
Definition: DeMoUpdate.py:1304
TrigCompositeUtils::hltSeedingNodeName
const std::string & hltSeedingNodeName()
Definition: TrigCompositeUtils.h:423
ElementLinkVector::push_back
void push_back(const ElemLink &link)
Definition: AthLinks/ElementLinkVector.h:318
SG::ReadHandle::isValid
virtual bool isValid() override final
Can the handle be successfully dereferenced?
TrigBjetHypoAlgBase::retrieveObjectFromStoreGate
StatusCode retrieveObjectFromStoreGate(const EventContext &, ElementLinkVector< CONTAINER > &, const SG::ReadHandleKey< CONTAINER > &) const
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
TrigBjetBtagHypoAlg::monitor_flavor_probabilities
virtual StatusCode monitor_flavor_probabilities(const ElementLinkVector< xAOD::JetContainer > &jetEL, const std::string &var_name) const
Definition: TrigBjetBtagHypoAlg.cxx:306
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
TrigBjetHypoAlgBase::retrieveCollectionFromView
StatusCode retrieveCollectionFromView(const EventContext &, ElementLinkVector< CONTAINER > &, const SG::ReadHandleKey< CONTAINER > &, const TrigCompositeUtils::Decision *) const
TrigBjetBtagHypoAlg::monitor_tracks
virtual StatusCode monitor_tracks(const EventContext &context, const TrigCompositeUtils::DecisionContainer *prevDecisionContainer) const
Definition: TrigBjetBtagHypoAlg.cxx:227
TrigCompositeUtils::isChainId
bool isChainId(const HLT::Identifier &chainIdentifier)
Recognise whether the HLT identifier corresponds to a whole chain.
Definition: TrigCompositeUtilsRoot.cxx:226
TrigBjetBtagHypoAlg::m_inputPrmVtx
SG::ReadHandleKey< xAOD::VertexContainer > m_inputPrmVtx
Definition: TrigBjetBtagHypoAlg.h:52
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
ElementLinkVector::front
const_reference front() const
Definition: AthLinks/ElementLinkVector.h:311
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
Amg::error
double error(const Amg::MatrixX &mat, int index)
return diagonal error of the matrix caller should ensure the matrix is symmetric and the index is in ...
Definition: EventPrimitivesHelpers.h:40
TrigBjetBtagHypoAlg::monitor_jets
virtual StatusCode monitor_jets(const ElementLinkVector< xAOD::JetContainer > &jetELs, const ElementLinkVector< xAOD::JetContainer > &all_bTaggedJetELs) const
Definition: TrigBjetBtagHypoAlg.cxx:191
AtlCoolConsole.tool
tool
Definition: AtlCoolConsole.py:452
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
TrigCompositeUtils::viewString
const std::string & viewString()
Definition: TrigCompositeUtils.h:419
TrigCompositeUtils::seedString
const std::string & seedString()
Definition: TrigCompositeUtils.h:421
DataVector::end
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
CheckAppliedSFs.pu
pu
Definition: CheckAppliedSFs.py:311
SG::WriteHandle
Definition: StoreGate/StoreGate/WriteHandle.h:73
DeMoScan.index
string index
Definition: DeMoScan.py:362
InDet::BeamSpotData
Definition: BeamSpotData.h:21
a
TList * a
Definition: liststreamerinfos.cxx:10
TrigCompositeUtils::DecisionIDContainer
std::set< DecisionID > DecisionIDContainer
Definition: TrigComposite_v1.h:28
TrigBjetBtagHypoAlg::m_monTool
ToolHandle< GenericMonitoringTool > m_monTool
Definition: TrigBjetBtagHypoAlg.h:48
h
HypoBase::printDebugInformation
StatusCode printDebugInformation(SG::WriteHandle< TrigCompositeUtils::DecisionContainer > &outputHandle, MSG::Level lvl) const
Common base function to print information on chains passed by objects considered in the hypo.
Definition: HypoBase.cxx:406
HypoBase::validateParentLinking
static StatusCode validateParentLinking(const ElementLink< TrigCompositeUtils::DecisionContainer > &dEL, MsgStream &msg, bool runTwoConversion)
Ensure that the Decision has at least one valid parent, unless it is a initial Decision from the HLTS...
Definition: HypoBase.cxx:135
TrigBjetBtagHypoAlg::m_hypoTools
ToolHandleArray< TrigBjetBtagHypoTool > m_hypoTools
Definition: TrigBjetBtagHypoAlg.h:47
TrigCompositeUtils::hypoAlgNodeName
const std::string & hypoAlgNodeName()
Definition: TrigCompositeUtils.h:426
AthCommonMsg< Gaudi::Algorithm >::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24
TrigBjetBtagHypoTool::TrigBjetBtagHypoToolInfo
Definition: TrigBjetBtagHypoTool.h:35
ElementLinkVector::size
size_type size() const
Definition: AthLinks/ElementLinkVector.h:294
TrigCompositeUtils::decisionIDs
void decisionIDs(const Decision *d, DecisionIDContainer &destination)
Extracts DecisionIDs stored in the Decision object.
Definition: TrigCompositeUtilsRoot.cxx:64
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
HLT::Identifier::name
std::string name() const
reports human redable name
Definition: HLTIdentifier.cxx:12
TrigBjetBtagHypoTool::TrigBjetBtagHypoToolInfo::previousDecisionIDs
TrigCompositeUtils::DecisionIDContainer previousDecisionIDs
Definition: TrigBjetBtagHypoTool.h:36
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:629
HypoBase::m_output
SG::WriteHandleKey< TrigCompositeUtils::DecisionContainer > m_output
output decisions
Definition: HypoBase.h:103
AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthCommonReentrantAlgorithm.cxx:107
TrigBjetHypoAlgBase::retrieveObjectFromNavigation
StatusCode retrieveObjectFromNavigation(const std::string &, ElementLink< CONTAINER > &, const TrigCompositeUtils::Decision *) const
python.BuildSignatureFlags.beamSpot
AthConfigFlags beamSpot(AthConfigFlags flags, str instanceName, str recoMode)
Definition: BuildSignatureFlags.py:475
TrigBjetBtagHypoAlg::m_beamSpotKey
SG::ReadCondHandleKey< InDet::BeamSpotData > m_beamSpotKey
Definition: TrigBjetBtagHypoAlg.h:56
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:801
HypoBase::runtimeValidation
static StatusCode runtimeValidation(SG::WriteHandle< TrigCompositeUtils::DecisionContainer > &outputHandle, MsgStream &msg, bool onlyValidateOneStep=true, bool runTwoConversion=false)
Executes all individual runtime tests.
Definition: HypoBase.cxx:47
TrigCompositeUtils::getIDFromLeg
HLT::Identifier getIDFromLeg(const HLT::Identifier &legIdentifier)
Generate the HLT::Identifier which corresponds to the chain name from the leg name.
Definition: TrigCompositeUtilsRoot.cxx:179
DataVector::at
const T * at(size_type n) const
Access an element, as an rvalue.
Monitored::Scalar
Declare a monitored scalar variable.
Definition: MonitoredScalar.h:34
TrigBjetHypoAlgBase::TrigBjetHypoAlgBase
TrigBjetHypoAlgBase()
AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthCommonReentrantAlgorithm.h:114
HypoBase::validateHasLinks
static StatusCode validateHasLinks(const ElementLink< TrigCompositeUtils::DecisionContainer > &dEL, MsgStream &msg)
Ensure all Decisions have the named ElementLink graph edges which they are required to by spec.
Definition: HypoBase.cxx:338
TrigCompositeUtils::inputMakerNodeName
const std::string & inputMakerNodeName()
Definition: TrigCompositeUtils.h:425
DataVector::size
size_type size() const noexcept
Returns the number of elements in the collection.
HypoBase::printErrorHeader
static void printErrorHeader(const ElementLink< TrigCompositeUtils::DecisionContainer > &dEL, MsgStream &msg)
A problem was found, print common output data.
Definition: HypoBase.cxx:395
python.SystemOfUnits.pc
float pc
Definition: SystemOfUnits.py:114
HypoBase::kRequireOne
@ kRequireOne
Require all DecisionIDs to be present in at least one of my parent Decision objects.
Definition: HypoBase.h:53
DataVector::begin
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
TrigBjetBtagHypoAlg::monitor_btagging
virtual StatusCode monitor_btagging(const ElementLinkVector< xAOD::JetContainer > &jetEL) const
Definition: TrigBjetBtagHypoAlg.cxx:408
fitman.k
k
Definition: fitman.py:528
TrigBjetBtagHypoTool::TrigBjetBtagHypoToolInfo::decision
TrigCompositeUtils::Decision * decision
Definition: TrigBjetBtagHypoTool.h:39
ViewContainer
Definition: View.h:158