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

Collects information from CTP bits and LVL1 RoIs, activates HLT chains and creates seeding RoIs. More...

#include <HLTSeeding.h>

Inheritance diagram for HLTSeeding:
Collaboration diagram for HLTSeeding:

Public Member Functions

 HLTSeeding (const std::string &name, ISvcLocator *pSvcLocator)
 
virtual StatusCode initialize () override
 
virtual StatusCode execute (const EventContext &ctx) const override
 
virtual StatusCode sysInitialize () override
 Override sysInitialize. 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 > &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
 

Protected Member Functions

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

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Static Private Member Functions

static StatusCode saveChainsInfo (const HLT::IDVec &chains, xAOD::TrigCompositeContainer *storage, const std::string &type)
 

Private Attributes

Gaudi::Property< float > m_roiZedWidthDefault
 
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
 
Data dependencies

Level-1 result with RoIs from Run-2 hardware systems

SG::ReadHandleKey< ROIB::RoIBResultm_RoIBResultKey
 
SG::ReadHandleKey< xAOD::TrigCompositeContainerm_l1TriggerResultKey
 Level-1 result with RoIs from Run-3 hardware systems. More...
 
SG::WriteHandleKey< TrigCompositeUtils::DecisionContainerm_summaryKey
 
SG::WriteHandleKey< TrigTimeStampm_startStampKey
 
Properties
Gaudi::Property< bool > m_doCostMonitoring
 
Gaudi::Property< std::string > m_costMonitoringChain
 
Tools and Services
ServiceHandle< ITrigCostSvcm_trigCostSvcHandle
 
ToolHandle< ICTPUnpackingToolm_ctpUnpacker
 
ToolHandleArray< IRoIsUnpackingToolm_roiUnpackers_roib
 
ToolHandleArray< IRoIsUnpackingToolm_roiUnpackers_xaod
 
ToolHandle< IPrescalingToolm_prescaler
 
ToolHandle< TrigConf::IKeyWriterToolm_keyWriterTool
 
ToolHandle< L1DataConsistencyCheckerm_consistencyChecker
 

Detailed Description

Collects information from CTP bits and LVL1 RoIs, activates HLT chains and creates seeding RoIs.

All the unpacking is outsourced to tools. However the menu mapping, this is from CTP items to chains and from thresholds to chains, is maintained in this algorithm and provided to unpacking tools.

Definition at line 31 of file HLTSeeding.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ HLTSeeding()

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

Definition at line 16 of file HLTSeeding.cxx.

17  : AthReentrantAlgorithm(name, pSvcLocator) {}

Member Function Documentation

◆ cardinality()

unsigned int AthReentrantAlgorithm::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.

Override this to return 0 for reentrant algorithms.

Definition at line 55 of file AthReentrantAlgorithm.cxx.

56 {
57  return 0;
58 }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T > &  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 > &  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 > &  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 > &  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 > &  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 HLTSeeding::execute ( const EventContext &  ctx) const
overridevirtual

Definition at line 60 of file HLTSeeding.cxx.

60  {
61  {
62  auto timeStampHandle = SG::makeHandle( m_startStampKey, ctx );
63  ATH_CHECK( timeStampHandle.record( std::make_unique<TrigTimeStamp>() ) );
64  }
65  using namespace TrigCompositeUtils;
66  const bool decodeRoIB = !m_RoIBResultKey.empty();
67  const bool decodexAOD = !m_l1TriggerResultKey.empty();
68 
69  const ROIB::RoIBResult* roib = nullptr;
70  if (decodeRoIB) {
72  roib = roibH.cptr();
73  ATH_MSG_DEBUG( "Obtained RoIBResult" );
74  }
75 
76  const xAOD::TrigComposite* l1TriggerResult = nullptr;
77  if (decodexAOD) {
78  auto l1TriggerResultCont = SG::makeHandle(m_l1TriggerResultKey, ctx);
79  if (!l1TriggerResultCont.isValid()) {
80  ATH_MSG_ERROR("Failed to retrieve L1TriggerResult with key " << m_l1TriggerResultKey.key());
81  return StatusCode::FAILURE;
82  }
83  if (l1TriggerResultCont->size() != 1) {
84  ATH_MSG_ERROR("Size of the L1TriggerResultContainer is " << l1TriggerResultCont->size() << " but 1 expected");
85  return StatusCode::FAILURE;
86  }
87  l1TriggerResult = l1TriggerResultCont->at(0);
88  if (msgLvl(MSG::DEBUG)) {
89  const std::vector<std::string>& linkNames = l1TriggerResult->linkColNames();
90  const std::vector<uint32_t>& linkClids = l1TriggerResult->linkColClids();
91  ATH_MSG_DEBUG("L1TriggerResult has " << linkNames.size() << " links:");
92  for (size_t i=0; i<linkNames.size(); ++i) {
93  ATH_MSG_DEBUG("--> " << linkNames.at(i) << " CLID: " << linkClids.at(i));
94  }
95  }
96  }
97 
99  auto *chainsInfo = handle.ptr();
100 
101  HLT::IDVec l1SeededChains;
102  if (decodeRoIB) {
103  ATH_CHECK( m_ctpUnpacker->decode( *roib, l1SeededChains ) );
104  } else if (m_ctpUnpacker->isEmulated()) {
105  ATH_CHECK( m_ctpUnpacker->decode( ROIB::RoIBResult{}, l1SeededChains ) );
106  }
107 
108  // important: sorting of the list of seeded chains is needed so that the deduplication and following set difference are correct
109  std::sort( l1SeededChains.begin(), l1SeededChains.end() );
110 
111  // Multiple items can seed some chains, remove duplicates from the sorted vector
112  HLT::IDVec::iterator removeFrom = std::unique(l1SeededChains.begin(), l1SeededChains.end());
113  l1SeededChains.erase(removeFrom, l1SeededChains.end());
114 
115  HLT::IDVec activeChains; // Chains which are activated to run in the first pass (seeded and pass prescale)
116  HLT::IDVec prescaledChains; // Chains which are activated but do not run in the first pass (seeded but prescaled out)
117 
118  ATH_CHECK( m_prescaler->prescaleChains( ctx, l1SeededChains, activeChains ) );
119 
120  // important: sorting of the list of active chains is needed so that the set difference is correct
121  std::sort( activeChains.begin(), activeChains.end() );
122 
123  std::set_difference(l1SeededChains.begin(), l1SeededChains.end(),
124  activeChains.begin(), activeChains.end(),
125  std::back_inserter(prescaledChains));
126 
127  // Validation
128  for (const HLT::Identifier& id : prescaledChains) {
129  if (std::find(activeChains.begin(), activeChains.end(), id) != activeChains.end()) {
130  ATH_MSG_ERROR("Prescaled chain cannot also be an active chain (" << id << ")");
131  }
132  }
133 
134  ATH_CHECK( saveChainsInfo( l1SeededChains, chainsInfo, "l1seeded" ) );
135  ATH_CHECK( saveChainsInfo( activeChains, chainsInfo, "unprescaled" ) );
136  ATH_CHECK( saveChainsInfo( prescaledChains, chainsInfo, "prescaled" ) );
137  // Note: 'prescaled' is deduced from 'l1seeded' and 'unprescaled'.
138 
139  // Do cost monitoring, this utilises the HLT_costmonitor chain
140  if (m_doCostMonitoring) {
141  const static HLT::Identifier costMonitorChain(m_costMonitoringChain);
142  const auto activeCostMonIt = std::find(activeChains.begin(), activeChains.end(), costMonitorChain);
143  if (activeCostMonIt == activeChains.end()){
144  ATH_CHECK(m_trigCostSvcHandle->discardEvent(ctx));
145  }
146  }
147 
148  ATH_MSG_DEBUG( "Unpacking RoIs" );
149  HLT::IDSet activeChainSet( activeChains.begin(), activeChains.end() );
150  if (decodeRoIB) {
151  for ( auto unpacker: m_roiUnpackers_roib ) {
152  ATH_CHECK( unpacker->unpack( ctx, *roib, activeChainSet ) );
153  }
154  } else if (m_ctpUnpacker->isEmulated()) {
155  ROIB::RoIBResult roib{};
156  for ( auto unpacker: m_roiUnpackers_roib ) {
157  ATH_CHECK( unpacker->unpack( ctx, roib, activeChainSet ) );
158  }
159  }
160  if (decodexAOD) {
161  for ( auto unpacker: m_roiUnpackers_xaod ) {
162  try {
163  ATH_CHECK( unpacker->unpack( ctx, *l1TriggerResult, activeChainSet ) );
164  } catch (const std::exception& ex) {
165  ATH_MSG_ERROR("Exception in " << unpacker->name() << "::unpack: " << ex.what());
166  return StatusCode::FAILURE;
167  }
168  }
169  }
170 
171  if ( !m_keyWriterTool.empty() ) {
172  ATH_CHECK( m_keyWriterTool->writeKeys(ctx) );
173  }
174 
175  if ( !m_consistencyChecker.empty() ) {
176  ATH_CHECK( m_consistencyChecker->consistencyCheck(l1SeededChains, ctx) );
177  }
178 
179  return StatusCode::SUCCESS;
180 }

◆ 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 & AthReentrantAlgorithm::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 79 of file AthReentrantAlgorithm.cxx.

80 {
81  // If we didn't find any symlinks to add, just return the collection
82  // from the base class. Otherwise, return the extended collection.
83  if (!m_extendedExtraObjects.empty()) {
85  }
86  return Algorithm::extraOutputDeps();
87 }

◆ filterPassed()

virtual bool AthReentrantAlgorithm::filterPassed ( const EventContext &  ctx) const
inlinevirtualinherited

Definition at line 135 of file AthReentrantAlgorithm.h.

135  {
136  return execState( ctx ).filterPassed();
137  }

◆ initialize()

StatusCode HLTSeeding::initialize ( )
overridevirtual

Definition at line 20 of file HLTSeeding.cxx.

20  {
21  ATH_MSG_INFO( "Reading RoIB information from: " << m_RoIBResultKey.objKey() << " : "
22  << m_RoIBResultKey.fullKey() << " : " << m_RoIBResultKey.key() );
23 
24  if ( m_RoIBResultKey.empty() && m_l1TriggerResultKey.empty() ) {
25  ATH_MSG_INFO( "RoIBResult and L1TriggerResult keys both empty: assume we're running with CTP emulation" );
26  }
27 
29  ATH_CHECK( m_l1TriggerResultKey.initialize(!m_l1TriggerResultKey.empty()) );
30 
31  ATH_CHECK( m_summaryKey.initialize() );
33 
34  ATH_CHECK( m_ctpUnpacker.retrieve() );
35  ATH_CHECK( m_roiUnpackers_roib.retrieve() );
36  ATH_CHECK( m_roiUnpackers_xaod.retrieve() );
37  ATH_CHECK( m_prescaler.retrieve() );
38 
39  if ( !m_keyWriterTool.empty() ) {
40  ATH_CHECK( m_keyWriterTool.retrieve() );
41  }
42 
43  if ( !m_consistencyChecker.empty() ) {
44  ATH_CHECK( m_consistencyChecker.retrieve() );
45  }
46 
47  if (m_doCostMonitoring) {
48  ATH_CHECK( m_trigCostSvcHandle.retrieve() );
49  }
50 
51  if ( m_roiZedWidthDefault!=0 ) {
52  ATH_MSG_INFO( "CHANGING THE DEFAULT ROI Z WIDTH: " << m_roiZedWidthDefault );
54  }
55 
56  return StatusCode::SUCCESS;
57 }

◆ 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 AthReentrantAlgorithm::isClonable ( ) const
overridevirtualinherited

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

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

◆ saveChainsInfo()

StatusCode HLTSeeding::saveChainsInfo ( const HLT::IDVec chains,
xAOD::TrigCompositeContainer storage,
const std::string &  type 
)
staticprivate

Definition at line 183 of file HLTSeeding.cxx.

185  {
186  using namespace TrigCompositeUtils;
187  Decision* d = newDecisionIn( storage, type );
188  for ( auto c: chains) {
189  addDecisionID(c.numeric(), d);
190  }
191  return StatusCode::SUCCESS;
192 }

◆ setFilterPassed()

virtual void AthReentrantAlgorithm::setFilterPassed ( bool  state,
const EventContext &  ctx 
) const
inlinevirtualinherited

Definition at line 139 of file AthReentrantAlgorithm.h.

139  {
140  execState( ctx ).setFilterPassed( state );
141  }

◆ sysExecute()

StatusCode AthReentrantAlgorithm::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 67 of file AthReentrantAlgorithm.cxx.

68 {
69  return Gaudi::Algorithm::sysExecute (ctx);
70 }

◆ sysInitialize()

StatusCode AthReentrantAlgorithm::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 InputMakerBase, and HypoBase.

Definition at line 96 of file AthReentrantAlgorithm.cxx.

96  {
98 
99  if (sc.isFailure()) {
100  return sc;
101  }
102 
103  ServiceHandle<ICondSvc> cs("CondSvc",name());
104  for (auto h : outputHandles()) {
105  if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
106  // do this inside the loop so we don't create the CondSvc until needed
107  if ( cs.retrieve().isFailure() ) {
108  ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
109  return StatusCode::SUCCESS;
110  }
111  if (cs->regHandle(this,*h).isFailure()) {
112  sc = StatusCode::FAILURE;
113  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
114  << " with CondSvc");
115  }
116  }
117  }
118  return sc;
119 }

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

Member Data Documentation

◆ m_consistencyChecker

ToolHandle<L1DataConsistencyChecker> HLTSeeding::m_consistencyChecker
private
Initial value:
{
this, "L1DataConsistencyChecker", "", "L1 data consistency check tool"}

Definition at line 92 of file HLTSeeding.h.

◆ m_costMonitoringChain

Gaudi::Property<std::string> HLTSeeding::m_costMonitoringChain
private
Initial value:
{
this, "CostMonitoringChain", "HLT_noalg_CostMonDS_L1All",
"Name of the chain which should enable HLT cost monitoring."}

Definition at line 64 of file HLTSeeding.h.

◆ m_ctpUnpacker

ToolHandle<ICTPUnpackingTool> HLTSeeding::m_ctpUnpacker
private
Initial value:
{
this, "ctpUnpacker", "CTPUnpackingTool/CTPUnpackingTool", "Tool used to unpack the CTP info"}

Definition at line 77 of file HLTSeeding.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_doCostMonitoring

Gaudi::Property<bool> HLTSeeding::m_doCostMonitoring
private
Initial value:
{
this, "DoCostMonitoring", false, "Enables start-of-event cost monitoring behavior."}

Definition at line 61 of file HLTSeeding.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 AthReentrantAlgorithm::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 153 of file AthReentrantAlgorithm.h.

◆ m_keyWriterTool

ToolHandle<TrigConf::IKeyWriterTool> HLTSeeding::m_keyWriterTool
private
Initial value:
{
this, "KeyWriterTool", "", "Writes the keys used when the trigger executes on an event"}

Definition at line 89 of file HLTSeeding.h.

◆ m_l1TriggerResultKey

SG::ReadHandleKey<xAOD::TrigCompositeContainer> HLTSeeding::m_l1TriggerResultKey
private
Initial value:
{
this, "L1TriggerResult", "L1TriggerResult", "Name of the L1 Trigger Result"}

Level-1 result with RoIs from Run-3 hardware systems.

Definition at line 49 of file HLTSeeding.h.

◆ m_prescaler

ToolHandle<IPrescalingTool> HLTSeeding::m_prescaler
private
Initial value:
{
this, "prescaler", "PrescalingTool/PrescalingTool", "Prescaling tool"}

Definition at line 86 of file HLTSeeding.h.

◆ m_RoIBResultKey

SG::ReadHandleKey<ROIB::RoIBResult> HLTSeeding::m_RoIBResultKey
private
Initial value:
{
this, "RoIBResult", "RoIBResult", "Name of RoIBResult"}

Definition at line 45 of file HLTSeeding.h.

◆ m_roiUnpackers_roib

ToolHandleArray<IRoIsUnpackingTool> HLTSeeding::m_roiUnpackers_roib
private
Initial value:
{
this, "RoIBRoIUnpackers", {}, "Tools unpacking Run-2 RoIs from RoIBResult"}

Definition at line 80 of file HLTSeeding.h.

◆ m_roiUnpackers_xaod

ToolHandleArray<IRoIsUnpackingTool> HLTSeeding::m_roiUnpackers_xaod
private
Initial value:
{
this, "xAODRoIUnpackers", {}, "Tools unpacking xAOD RoIs from L1TriggerResult"}

Definition at line 83 of file HLTSeeding.h.

◆ m_roiZedWidthDefault

Gaudi::Property<float> HLTSeeding::m_roiZedWidthDefault
private
Initial value:
{
this, "RoiZedWidthDefault", 0, "default Roi z width"}

Definition at line 69 of file HLTSeeding.h.

◆ m_startStampKey

SG::WriteHandleKey<TrigTimeStamp> HLTSeeding::m_startStampKey
private
Initial value:
{
this, "StartStampKey", "HLTSeedingStart", "Object with the time stamp when decoding started" }

Definition at line 55 of file HLTSeeding.h.

◆ m_summaryKey

SG::WriteHandleKey<TrigCompositeUtils::DecisionContainer> HLTSeeding::m_summaryKey
private
Initial value:
{
this, "HLTSeedingSummaryKey", "HLTSeedingSummary", "Chains status after L1 and prescaling"}

Definition at line 52 of file HLTSeeding.h.

◆ m_trigCostSvcHandle

ServiceHandle<ITrigCostSvc> HLTSeeding::m_trigCostSvcHandle
private
Initial value:
{
this, "TrigCostSvc", "TrigCostSvc", "The trigger cost service" }

Definition at line 74 of file HLTSeeding.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:
HLTSeeding::m_consistencyChecker
ToolHandle< L1DataConsistencyChecker > m_consistencyChecker
Definition: HLTSeeding.h:92
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
HLTSeeding::m_roiUnpackers_xaod
ToolHandleArray< IRoIsUnpackingTool > m_roiUnpackers_xaod
Definition: HLTSeeding.h:83
HLTSeeding::m_prescaler
ToolHandle< IPrescalingTool > m_prescaler
Definition: HLTSeeding.h:86
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
find
std::string find(const std::string &s)
return a remapped string
Definition: hcg.cxx:135
HLTSeeding::m_doCostMonitoring
Gaudi::Property< bool > m_doCostMonitoring
Definition: HLTSeeding.h:61
ROIB::RoIBResult
Class holding the LVL1 RoIB result build by the RoIBuilder.
Definition: RoIBResult.h:47
HLTSeeding::saveChainsInfo
static StatusCode saveChainsInfo(const HLT::IDVec &chains, xAOD::TrigCompositeContainer *storage, const std::string &type)
Definition: HLTSeeding.cxx:183
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:46
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
hist_file_dump.d
d
Definition: hist_file_dump.py:137
HLTSeeding::m_l1TriggerResultKey
SG::ReadHandleKey< xAOD::TrigCompositeContainer > m_l1TriggerResultKey
Level-1 result with RoIs from Run-3 hardware systems.
Definition: HLTSeeding.h:49
TrigCompositeUtils::addDecisionID
void addDecisionID(DecisionID id, Decision *d)
Appends the decision (given as ID) to the decision object.
Definition: TrigCompositeUtilsRoot.cxx:61
AthCommonDataStore::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
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
AthCommonMsg< Gaudi::Algorithm >::msgLvl
bool msgLvl(const MSG::Level lvl) const
Definition: AthCommonMsg.h:30
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:30
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SG::VarHandleKey::key
const std::string & key() const
Return the StoreGate ID for the referenced object.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
SG::VarHandleKey::empty
bool empty() const
Test if the key is blank.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:150
xAOD::TrigComposite_v1::linkColClids
const std::vector< uint32_t > & linkColClids() const
Raw access to the persistent link CLIDs.
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
HLTSeeding::m_startStampKey
SG::WriteHandleKey< TrigTimeStamp > m_startStampKey
Definition: HLTSeeding.h:55
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:27
SG::makeHandle
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
Definition: ReadCondHandle.h:270
HLTSeeding::m_RoIBResultKey
SG::ReadHandleKey< ROIB::RoIBResult > m_RoIBResultKey
Definition: HLTSeeding.h:45
HLTSeeding::m_roiUnpackers_roib
ToolHandleArray< IRoIsUnpackingTool > m_roiUnpackers_roib
Definition: HLTSeeding.h:80
HLT::IDVec
std::vector< HLT::Identifier > IDVec
Definition: TrigCompositeUtils/TrigCompositeUtils/HLTIdentifier.h:62
HLTSeeding::m_trigCostSvcHandle
ServiceHandle< ITrigCostSvc > m_trigCostSvcHandle
Definition: HLTSeeding.h:74
AthCommonDataStore
Definition: AthCommonDataStore.h:52
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
lumiFormat.i
int i
Definition: lumiFormat.py:85
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
SG::WriteHandle::ptr
pointer_type ptr()
Dereference the pointer.
std::unique
std::reverse_iterator< DataModel_detail::iterator< DVL > > unique(typename std::reverse_iterator< DataModel_detail::iterator< DVL > > beg, typename std::reverse_iterator< DataModel_detail::iterator< DVL > > end, BinaryPredicate pred)
Specialization of unique for DataVector/List.
Definition: DVL_algorithms.h:199
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
calibdata.exception
exception
Definition: calibdata.py:496
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
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
HLT::Identifier
Definition: TrigCompositeUtils/TrigCompositeUtils/HLTIdentifier.h:20
AthReentrantAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthReentrantAlgorithm.h:153
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
HLTSeeding::m_roiZedWidthDefault
Gaudi::Property< float > m_roiZedWidthDefault
Definition: HLTSeeding.h:69
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
HLTSeeding::m_costMonitoringChain
Gaudi::Property< std::string > m_costMonitoringChain
Definition: HLTSeeding.h:64
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
AthReentrantAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthReentrantAlgorithm.cxx:96
xAOD::TrigComposite_v1::linkColNames
const std::vector< std::string > & linkColNames() const
Raw access to the persistent link names.
python.copyTCTOutput.chains
chains
Definition: copyTCTOutput.py:81
SG::WriteHandle
Definition: StoreGate/StoreGate/WriteHandle.h:76
HLTSeeding::m_keyWriterTool
ToolHandle< TrigConf::IKeyWriterTool > m_keyWriterTool
Definition: HLTSeeding.h:89
a
TList * a
Definition: liststreamerinfos.cxx:10
h
std::sort
void sort(typename std::reverse_iterator< DataModel_detail::iterator< DVL > > beg, typename std::reverse_iterator< DataModel_detail::iterator< DVL > > end, const Compare &comp)
Specialization of sort for DataVector/List.
Definition: DVL_algorithms.h:623
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
RoiDescriptor::zedWidthDefault
static double zedWidthDefault()
Definition: RoiDescriptor.h:183
DEBUG
#define DEBUG
Definition: page_access.h:11
HLTSeeding::m_ctpUnpacker
ToolHandle< ICTPUnpackingTool > m_ctpUnpacker
Definition: HLTSeeding.h:77
HLT::IDSet
std::set< HLT::Identifier > IDSet
Definition: TrigCompositeUtils/TrigCompositeUtils/HLTIdentifier.h:63
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
TrigCompositeUtils
Definition: Event/xAOD/xAODTrigger/xAODTrigger/TrigComposite.h:19
HLTSeeding::m_summaryKey
SG::WriteHandleKey< TrigCompositeUtils::DecisionContainer > m_summaryKey
Definition: HLTSeeding.h:52
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
python.compressB64.c
def c
Definition: compressB64.py:93
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
fitman.k
k
Definition: fitman.py:528
ServiceHandle< ICondSvc >