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

Tool taking care of copying the trigger configuration from file to file. More...

#include <TriggerMenuMetaDataTool.h>

Inheritance diagram for xAODMaker::TriggerMenuMetaDataTool:
Collaboration diagram for xAODMaker::TriggerMenuMetaDataTool:

Public Member Functions

 TriggerMenuMetaDataTool (const std::string &name="TriggerMenuMetaDataTool")
 Declare the correct constructor for Athena. More...
 
virtual StatusCode initialize ()
 Function initialising the tool. More...
 
virtual StatusCode sysInitialize ()
 Function initialising the tool in the correct way in Athena. More...
 
virtual void print () const
 Print the state of the tool. More...
 
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
 

Static Public Member Functions

static const InterfaceID & interfaceID ()
 Gaudi boilerplate. More...
 

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...
 
Functions called by the AsgMetadataTool base class
virtual StatusCode beginInputFile ()
 Function collecting the trigger configuration metadata from the input file. More...
 
virtual StatusCode endInputFile ()
 Function called when the currently open input file got completely processed. More...
 
virtual StatusCode beginEvent ()
 Function used to make sure that file openings are not missed. More...
 
virtual StatusCode metaDataStop ()
 Function writing out the collected metadata. More...
 
virtual StatusCode beginInputFile (const SG::SourceID &)
 Function collecting the metadata from a new input file. More...
 
virtual StatusCode endInputFile (const SG::SourceID &)
 Function collecting the metadata from a new input file. More...
 
virtual StatusCode metaDataStop (const SG::SourceID &)
 Function writing the collected metadata to the output. More...
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

StatusCode checkxAODTriggerMenu ()
 Perform the R2 data copy from the input metastore to the internal metastore. More...
 
StatusCode endxAODTriggerMenu ()
 Perform the R2 data copy from the internal metastore to the output metastore. More...
 
StatusCode doCopyxAODTriggerMenu (const xAOD::TriggerMenuContainer *copyFrom, xAOD::TriggerMenuContainer *copyTo)
 Common code to copy and de-duplicate menus from the copyFrom collection into the copyTo collection. More...
 
StatusCode checkxAODTriggerMenuJson ()
 Perform the R3 data copy from the input metastore to the internal metastore. More...
 
StatusCode endxAODTriggerMenuJson ()
 Perform the R3 data copy from the internal metastore to the output metastore. More...
 
StatusCode doCopyxAODTriggerMenuJson (const std::string &inputMetaSGKey, const xAOD::TriggerMenuJsonContainer *copyFrom, xAOD::TriggerMenuJsonContainer *copyTo)
 Common code to copy and de-duplicate menus from the copyFrom collection into the copyTo collection. More...
 
StatusCode checkCopyJson (const std::string &inputMetaSGKey, std::unique_ptr< xAOD::TriggerMenuJsonContainer > &internalContainer, std::unique_ptr< xAOD::TriggerMenuJsonAuxContainer > &internalAuxContainer)
 Helper function to do the R3 data copy to the internal store for a given JSON. More...
 
StatusCode checkExportJson (const std::string &outputMetaSGKey, std::unique_ptr< xAOD::TriggerMenuJsonContainer > &internalContainer, std::unique_ptr< xAOD::TriggerMenuJsonAuxContainer > &internalAuxContainer)
 
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...
 

Private Attributes

bool m_beginFileIncidentSeen
 Internal status flag showing whether a BeginInputFile incident was seen already. More...
 
MetaStore_t m_inputMetaStore
 Object accessing the input metadata store. More...
 
MetaStore_t m_outputMetaStore
 Object accessing the output metadata store. More...
 
bool m_beginInputFileCalled
 Flag helping to discover when the tool misses the opening of the first input file. More...
 
bool m_useIncidents
 
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
 
Runs 1, 2 data propagation
std::string m_inputKey
 The key of the trigger menu in the input file. More...
 
std::string m_outputKey
 The key of the trigger menu for the output file. More...
 
std::unique_ptr< xAOD::TriggerMenuContainerm_menu
 The merged trigger menu container. More...
 
std::unique_ptr< xAOD::TriggerMenuAuxContainerm_menuAux
 The merged trigger menu auxiliary container. More...
 
Run 3 data propagation
std::string m_inputKeyJSON_HLT
 
std::string m_outputKeyJSON_HLT
 
std::string m_inputKeyJSON_HLTMonitoring
 
std::string m_outputKeyJSON_HLTMonitoring
 
std::string m_inputKeyJSON_L1
 
std::string m_outputKeyJSON_L1
 
std::string m_inputKeyJSON_HLTPS
 
std::string m_outputKeyJSON_HLTPS
 
std::string m_inputKeyJSON_L1PS
 
std::string m_outputKeyJSON_L1PS
 
std::string m_inputKeyJSON_BG
 
std::string m_outputKeyJSON_BG
 
std::unique_ptr< xAOD::TriggerMenuJsonContainerm_menuJSON_hlt
 
std::unique_ptr< xAOD::TriggerMenuJsonAuxContainerm_menuJSON_hltAux
 
std::unique_ptr< xAOD::TriggerMenuJsonContainerm_menuJSON_hltmonitoring
 
std::unique_ptr< xAOD::TriggerMenuJsonAuxContainerm_menuJSON_hltmonitoringAux
 
std::unique_ptr< xAOD::TriggerMenuJsonContainerm_menuJSON_l1
 
std::unique_ptr< xAOD::TriggerMenuJsonAuxContainerm_menuJSON_l1Aux
 
std::unique_ptr< xAOD::TriggerMenuJsonContainerm_menuJSON_hltps
 
std::unique_ptr< xAOD::TriggerMenuJsonAuxContainerm_menuJSON_hltpsAux
 
std::unique_ptr< xAOD::TriggerMenuJsonContainerm_menuJSON_l1ps
 
std::unique_ptr< xAOD::TriggerMenuJsonAuxContainerm_menuJSON_l1psAux
 
std::unique_ptr< xAOD::TriggerMenuJsonContainerm_menuJSON_bg
 
std::unique_ptr< xAOD::TriggerMenuJsonAuxContainerm_menuJSON_bgAux
 

Static Private Attributes

static std::mutex s_mutex ATLAS_THREAD_SAFE
 Global serial protection over writing to the output store for MP. More...
 

Detailed Description

Tool taking care of copying the trigger configuration from file to file.

This tool does the heavy lifting when creating/merging DxAOD files to make sure that the trigger configuration metadata ends up in the output.

Author
Attila Krasznahorkay Attil.nosp@m.a.Kr.nosp@m.aszna.nosp@m.hork.nosp@m.ay@ce.nosp@m.rn.c.nosp@m.h
Revision
683395
Date
2015-07-16 13:11:56 +0200 (Thu, 16 Jul 2015)

Definition at line 42 of file TriggerMenuMetaDataTool.h.

Member Typedef Documentation

◆ MetaStore_t

Type of the metadata store object in Athena.

Definition at line 66 of file AsgMetadataTool.h.

◆ MetaStorePtr_t

Type of the metadata store pointer in standalone mode.

Definition at line 68 of file AsgMetadataTool.h.

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ TriggerMenuMetaDataTool()

xAODMaker::TriggerMenuMetaDataTool::TriggerMenuMetaDataTool ( const std::string &  name = "TriggerMenuMetaDataTool")

Declare the correct constructor for Athena.

Regular AlgTool constructor

Definition at line 25 of file TriggerMenuMetaDataTool.cxx.

28 
29 
30 
31 #ifndef XAOD_STANDALONE
32  declareInterface< ::IMetaDataTool >( this );
33 #endif // XAOD_STANDALONE
34 
35  declareProperty("InputKey", m_inputKey = "TriggerMenu");
36  declareProperty("OutputKey", m_outputKey = "TriggerMenu");
37  declareProperty("InputKeyJSON_HLT", m_inputKeyJSON_HLT = "TriggerMenuJson_HLT");
38  declareProperty("OutputKeyJSON_HLT", m_outputKeyJSON_HLT = "TriggerMenuJson_HLT");
39  declareProperty("InputKeyJSON_HLTMonitoring", m_inputKeyJSON_HLTMonitoring = "TriggerMenuJson_HLTMonitoring");
40  declareProperty("OutputKeyJSON_HLTMonitoring", m_outputKeyJSON_HLTMonitoring = "TriggerMenuJson_HLTMonitoring");
41  declareProperty("InputKeyJSON_L1", m_inputKeyJSON_L1 = "TriggerMenuJson_L1");
42  declareProperty("OutputKeyJSON_L1", m_outputKeyJSON_L1 = "TriggerMenuJson_L1");
43  declareProperty("InputKeyJSON_HLTPS", m_inputKeyJSON_HLTPS = "TriggerMenuJson_HLTPS");
44  declareProperty("OutputKeyJSON_HLTPS", m_outputKeyJSON_HLTPS = "TriggerMenuJson_HLTPS");
45  declareProperty("InputKeyJSON_L1PS", m_inputKeyJSON_L1PS = "TriggerMenuJson_L1PS");
46  declareProperty("OutputKeyJSON_L1PS", m_outputKeyJSON_L1PS = "TriggerMenuJson_L1PS");
47  declareProperty("InputKeyJSON_BG", m_inputKeyJSON_BG = "TriggerMenuJson_BG");
48  declareProperty("OutputKeyJSON_BG", m_outputKeyJSON_BG = "TriggerMenuJson_BG");
49  }

Member Function Documentation

◆ beginEvent()

StatusCode xAODMaker::TriggerMenuMetaDataTool::beginEvent ( )
protectedvirtual

Function used to make sure that file openings are not missed.

Reimplemented from asg::AsgMetadataTool.

Definition at line 210 of file TriggerMenuMetaDataTool.cxx.

210  {
211 
212  // In case the BeginInputFile incident was missed in standalone mode, make
213  // sure that the metadata from the first input file is collected at this
214  // point at least.
215  if( ! m_beginFileIncidentSeen ) {
217  }
218 
219  // Return gracefully:
220  return StatusCode::SUCCESS;
221  }

◆ beginInputFile() [1/2]

StatusCode xAODMaker::TriggerMenuMetaDataTool::beginInputFile ( )
protectedvirtual

Function collecting the trigger configuration metadata from the input file.

Reimplemented from asg::AsgMetadataTool.

Definition at line 83 of file TriggerMenuMetaDataTool.cxx.

83  {
84  // Whatever happens, we've seen the first BeginInputFile incident now.
88  return StatusCode::SUCCESS;
89  }

◆ beginInputFile() [2/2]

virtual StatusCode xAODMaker::TriggerMenuMetaDataTool::beginInputFile ( const SG::SourceID )
inlineprotectedvirtual

Function collecting the metadata from a new input file.

Implements IMetaDataTool.

Definition at line 76 of file TriggerMenuMetaDataTool.h.

76 {return beginInputFile();}

◆ checkCopyJson()

StatusCode xAODMaker::TriggerMenuMetaDataTool::checkCopyJson ( const std::string &  inputMetaSGKey,
std::unique_ptr< xAOD::TriggerMenuJsonContainer > &  internalContainer,
std::unique_ptr< xAOD::TriggerMenuJsonAuxContainer > &  internalAuxContainer 
)
private

Helper function to do the R3 data copy to the internal store for a given JSON.

Definition at line 157 of file TriggerMenuMetaDataTool.cxx.

160  {
161 
162  if( !inputMetaStore()->contains<xAOD::TriggerMenuJsonContainer>(inputMetaSGKey)) {
163  return StatusCode::SUCCESS;
164  }
165 
166  const xAOD::TriggerMenuJsonContainer* input = nullptr;
167  if (inputMetaStore()->retrieve( input, inputMetaSGKey ).isSuccess() ) {
168 
169  // Create an internal container if it doesn't exist yet:
170  if( ( ! internalContainer.get() ) && ( ! internalAuxContainer.get() ) ) {
171  ATH_MSG_DEBUG( "Creating internal container" );
172  internalContainer = std::make_unique<xAOD::TriggerMenuJsonContainer>( );
173  internalAuxContainer = std::make_unique<xAOD::TriggerMenuJsonAuxContainer>( );
174  internalContainer->setStore( internalAuxContainer.get() );
175  }
176 
177  // Copy (and de-duplicate) from the input collection to the internal collection
178  ATH_CHECK( doCopyxAODTriggerMenuJson(inputMetaSGKey, input, internalContainer.get()) );
179  }
180  return StatusCode::SUCCESS;
181  }

◆ checkExportJson()

StatusCode xAODMaker::TriggerMenuMetaDataTool::checkExportJson ( const std::string &  outputMetaSGKey,
std::unique_ptr< xAOD::TriggerMenuJsonContainer > &  internalContainer,
std::unique_ptr< xAOD::TriggerMenuJsonAuxContainer > &  internalAuxContainer 
)
private

Definition at line 274 of file TriggerMenuMetaDataTool.cxx.

277  {
278 
279  // The output may already have trigger configuration metadata in it.
280  // For instance from TrigConf::xAODMenuWriter or other instances of the
281  // TriggerMenuMetaDataTool in MP mode. Merge into the output
282 
283  // If we don't have an internal store then nothing to do
284  if( ( ! internalContainer.get() ) && ( ! internalAuxContainer.get() ) ) {
285  ATH_MSG_DEBUG( "No internal xAOD::TriggerJsonMenu " << outputMetaSGKey
286  << " store to save/merge to output. (Expected for Run 2 MC, release 21 data, or the BG data as this is not added as of Dec 21)." );
287  return StatusCode::SUCCESS;
288  }
289 
290  if( not outputMetaStore()->contains< xAOD::TriggerMenuJsonContainer >( outputMetaSGKey ) ) {
291  // No output yet - hand over ownership of our internal store
292  ATH_MSG_DEBUG( "Recording " << outputMetaSGKey << " xAOD::TriggerMenuJson trigger configuration metadata container with "
293  << internalContainer->size() << " entries" );
294  ATH_CHECK( outputMetaStore()->record( internalContainer.release(),
295  outputMetaSGKey ) );
296  ATH_CHECK( outputMetaStore()->record( internalAuxContainer.release(),
297  outputMetaSGKey + "Aux." ) );
298  } else {
299  // Merge into the existing output store
300  ATH_MSG_DEBUG( "Merging into existing " << outputMetaSGKey << " output xAOD::TriggerMenuJson configuration metadata container" );
302  ATH_CHECK( outputMetaStore()->retrieve( output, outputMetaSGKey ) );
303  // Copy (and de-duplicate) from the internal collection to the output collection
304  ATH_CHECK( doCopyxAODTriggerMenuJson(outputMetaSGKey, internalContainer.get(), output) );
305  }
306 
307  // Return gracefully:
308  return StatusCode::SUCCESS;
309  }

◆ checkxAODTriggerMenu()

StatusCode xAODMaker::TriggerMenuMetaDataTool::checkxAODTriggerMenu ( )
private

Perform the R2 data copy from the input metastore to the internal metastore.

Definition at line 91 of file TriggerMenuMetaDataTool.cxx.

91  {
92  // If the input file doesn't have any trigger configuration metadata,
93  // then finish right away:
94  if( ! inputMetaStore()->contains< xAOD::TriggerMenuContainer >(
95  m_inputKey ) ) {
96  return StatusCode::SUCCESS;
97  }
98 
99  // Retrieve the input container:
100  const xAOD::TriggerMenuContainer* input = nullptr;
102 
103  // Create an internal container if it doesn't exist yet:
104  if( ( ! m_menu.get() ) && ( ! m_menuAux.get() ) ) {
105  ATH_MSG_DEBUG( "Creating internal container" );
106  m_menu = std::make_unique<xAOD::TriggerMenuContainer>( );
107  m_menuAux = std::make_unique<xAOD::TriggerMenuAuxContainer>( );
108  m_menu->setStore( m_menuAux.get() );
109  }
110 
111  // Copy (and de-duplicate) from the input collection to the internal collection
113 
114  // Return gracefully:
115  return StatusCode::SUCCESS;
116  }

◆ checkxAODTriggerMenuJson()

StatusCode xAODMaker::TriggerMenuMetaDataTool::checkxAODTriggerMenuJson ( )
private

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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; }

◆ doCopyxAODTriggerMenu()

StatusCode xAODMaker::TriggerMenuMetaDataTool::doCopyxAODTriggerMenu ( const xAOD::TriggerMenuContainer copyFrom,
xAOD::TriggerMenuContainer copyTo 
)
private

Common code to copy and de-duplicate menus from the copyFrom collection into the copyTo collection.

Definition at line 118 of file TriggerMenuMetaDataTool.cxx.

118  {
119  // Loop over the configurations of the copyFrom collection:
120  for( const xAOD::TriggerMenu* menu : *copyFrom ) {
121 
122  // Check if this configuration is already in the copyTo container:
123  bool exists = false;
124  for( const xAOD::TriggerMenu* existing : *copyTo ) {
125  if( ( existing->smk() == menu->smk() ) &&
126  ( existing->l1psk() == menu->l1psk() ) &&
127  ( existing->hltpsk() == menu->hltpsk() ) ) {
128  exists = true;
129  break;
130  }
131  }
132  if( exists ) {
133  continue;
134  }
135 
136  // If it's a new configuration, put it into the copyTo container:
137  ATH_MSG_VERBOSE( "Copying configuration with SMK: "
138  << menu->smk() << ", L1PSK: " << menu->l1psk()
139  << ", HLTPSK: " << menu->hltpsk() );
141  copyTo->push_back( out );
142  *out = *menu;
143  }
144  return StatusCode::SUCCESS;
145  }

◆ doCopyxAODTriggerMenuJson()

StatusCode xAODMaker::TriggerMenuMetaDataTool::doCopyxAODTriggerMenuJson ( const std::string &  inputMetaSGKey,
const xAOD::TriggerMenuJsonContainer copyFrom,
xAOD::TriggerMenuJsonContainer copyTo 
)
private

Common code to copy and de-duplicate menus from the copyFrom collection into the copyTo collection.

Definition at line 183 of file TriggerMenuMetaDataTool.cxx.

186  {
187  // Loop over the configurations of the copyFrom input:
188  for( const xAOD::TriggerMenuJson* menuJson : *copyFrom ) {
189  // Check if this configuration is already in the copyTo container:
190  bool exists = false;
191  for( const xAOD::TriggerMenuJson* existing : *copyTo ) {
192  if (existing->key() == menuJson->key()) {
193  exists = true;
194  break;
195  }
196  }
197  if( exists ) {
198  continue;
199  }
200 
201  // If it's a new configuration, put it into the copyTo container:
202  ATH_MSG_VERBOSE( "Copying " << inputMetaSGKey << " configuration with Key: " << menuJson->key() );
204  copyTo->push_back( out );
205  *out = *menuJson;
206  }
207  return StatusCode::SUCCESS;
208  }

◆ endInputFile() [1/2]

StatusCode xAODMaker::TriggerMenuMetaDataTool::endInputFile ( )
protectedvirtual

Function called when the currently open input file got completely processed.

Dummy implementation that can be overridden by the derived tool.

Reimplemented from asg::AsgMetadataTool.

Definition at line 79 of file TriggerMenuMetaDataTool.cxx.

79  {
80  // Return gracefully:
81  return StatusCode::SUCCESS;
82  }

◆ endInputFile() [2/2]

virtual StatusCode xAODMaker::TriggerMenuMetaDataTool::endInputFile ( const SG::SourceID )
inlineprotectedvirtual

Function collecting the metadata from a new input file.

Implements IMetaDataTool.

Definition at line 79 of file TriggerMenuMetaDataTool.h.

79 {return endInputFile();}

◆ endxAODTriggerMenu()

StatusCode xAODMaker::TriggerMenuMetaDataTool::endxAODTriggerMenu ( )
private

Perform the R2 data copy from the internal metastore to the output metastore.

Definition at line 233 of file TriggerMenuMetaDataTool.cxx.

233  {
234  // The output may already have trigger configuration metadata in it.
235  // For instance from TrigConf::xAODMenuWriter or other instances of the
236  // TriggerMenuMetaDataTool in MP mode. Merge into the output
237 
238  // If we don't have an internal store then nothing to do
239  if( ( ! m_menu.get() ) && ( ! m_menuAux.get() ) ) {
240  ATH_MSG_DEBUG( "No internal xAOD::TriggerMenu store to save/merge to output. (Expected in Run 3)." );
241  return StatusCode::SUCCESS;
242  }
243 
244  if( not outputMetaStore()->contains<xAOD::TriggerMenuContainer>(m_outputKey) ) {
245  // No output yet - hand over ownership of our internal store
246  ATH_MSG_DEBUG( "Recording xAOD::TriggerMenu trigger configuration metadata container with " << m_menu->size() << " entries." );
247  ATH_CHECK( outputMetaStore()->record( m_menu.release(),
248  m_outputKey ) );
249  ATH_CHECK( outputMetaStore()->record( m_menuAux.release(),
250  m_outputKey + "Aux." ) );
251  } else {
252  // Merge into the existing output store
253  ATH_MSG_DEBUG( "Merging into existing output xAOD::TriggerMenu configuration metadata container" );
256  // Copy (and de-duplicate) from the internal collection to the output collection
258  }
259 
260  // Return gracefully:
261  return StatusCode::SUCCESS;
262  }

◆ endxAODTriggerMenuJson()

StatusCode xAODMaker::TriggerMenuMetaDataTool::endxAODTriggerMenuJson ( )
private

◆ evtStore() [1/2]

ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( )
inlineinherited

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

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::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; }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase &  ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ getKey()

SG::sgkey_t asg::AsgTool::getKey ( const void *  ptr) const
inherited

Get the (hashed) key of an object that is in the event store.

This is a bit of a special one. StoreGateSvc and xAOD::TEvent both provide ways for getting the SG::sgkey_t key for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.

In order to allow tools to efficiently perform this operation, they can use this helper function.

See also
asg::AsgTool::getName
Parameters
ptrThe bare pointer to the object that the event store should know about
Returns
The hashed key of the object in the store. If not found, an invalid (zero) key.

Definition at line 119 of file AsgTool.cxx.

119  {
120 
121 #ifdef XAOD_STANDALONE
122  // In case we use @c xAOD::TEvent, we have a direct function call
123  // for this.
124  return evtStore()->event()->getKey( ptr );
125 #else
126  const SG::DataProxy* proxy = evtStore()->proxy( ptr );
127  return ( proxy == nullptr ? 0 : proxy->sgkey() );
128 #endif // XAOD_STANDALONE
129  }

◆ getName()

const std::string & asg::AsgTool::getName ( const void *  ptr) const
inherited

Get the name of an object that is / should be in the event store.

This is a bit of a special one. StoreGateSvc and xAOD::TEvent both provide ways for getting the std::string name for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.

In order to allow tools to efficiently perform this operation, they can use this helper function.

See also
asg::AsgTool::getKey
Parameters
ptrThe bare pointer to the object that the event store should know about
Returns
The string name of the object in the store. If not found, an empty string.

Definition at line 106 of file AsgTool.cxx.

106  {
107 
108 #ifdef XAOD_STANDALONE
109  // In case we use @c xAOD::TEvent, we have a direct function call
110  // for this.
111  return evtStore()->event()->getName( ptr );
112 #else
113  const SG::DataProxy* proxy = evtStore()->proxy( ptr );
114  static const std::string dummy = "";
115  return ( proxy == nullptr ? dummy : proxy->name() );
116 #endif // XAOD_STANDALONE
117  }

◆ getProperty()

template<class T >
const T* asg::AsgTool::getProperty ( const std::string &  name) const
inherited

Get one of the tool's properties.

◆ handle()

void asg::AsgMetadataTool::handle ( const Incident &  inc)
protectedvirtualinherited

Function receiving incidents from IncidentSvc/TEvent.

Reimplemented in Trig::TrigDecisionTool.

Definition at line 130 of file AsgMetadataTool.cxx.

130  {
131 
132  // Tell the user what's happening:
133  ATH_MSG_VERBOSE( "Callback received with incident: " << inc.type() );
134 
135  // Call the appropriate member function:
136  if( inc.type() == IncidentType::BeginInputFile ) {
137  m_beginInputFileCalled = true;
138  if( beginInputFile().isFailure() ) {
139  ATH_MSG_FATAL( "Failed to call beginInputFile()" );
140  throw std::runtime_error( "Couldn't call beginInputFile()" );
141  }
142  } else if( inc.type() == IncidentType::EndInputFile ) {
143  if( endInputFile().isFailure() ) {
144  ATH_MSG_FATAL( "Failed to call endInputFile()" );
145  throw std::runtime_error( "Couldn't call endInputFile()" );
146  }
147  } else if( inc.type() == IncidentType::BeginEvent ) {
148  // If the tool didn't catch the begin input file incident for the
149  // first input file of the job, then call the appropriate function
150  // now.
151  if( ! m_beginInputFileCalled ) {
152  m_beginInputFileCalled = true;
153  if( beginInputFile().isFailure() ) {
154  ATH_MSG_FATAL( "Failed to call beginInputFile()" );
155  throw std::runtime_error( "Couldn't call beginInputFile()" );
156  }
157  }
158  if( beginEvent().isFailure() ) {
159  ATH_MSG_FATAL( "Failed to call beginEvent()" );
160  throw std::runtime_error( "Couldn't call beginEvent()" );
161  }
162 
163  #ifdef XAOD_STANDALONE
164  } else if( inc.type() == IncidentType::MetaDataStop ) {
165  if( metaDataStop().isFailure() ) {
166  ATH_MSG_FATAL( "Failed to call metaDataStop()" );
167  throw std::runtime_error( "Couldn't call metaDataStop()" );
168  }
169 
170  #endif // XAOD_STANDALONE
171  } else {
172  ATH_MSG_WARNING( "Unknown incident type received in AsgMetaDataTool: " << inc.type() );
173  }
174 
175  return;
176  }

◆ initialize()

StatusCode xAODMaker::TriggerMenuMetaDataTool::initialize ( )
virtual

Function initialising the tool.

Reimplemented from asg::AsgTool.

Definition at line 51 of file TriggerMenuMetaDataTool.cxx.

51  {
52 
53  // Greet the user:
54  ATH_MSG_DEBUG( "Initialising TriggerMenuMetaDataTool" );
55 
56 
57  // Reset the internal variable(s):
58  m_menu.reset();
59  m_menuAux.reset();
60  m_menuJSON_hlt.reset();
61  m_menuJSON_hltAux.reset();
64  m_menuJSON_l1.reset();
65  m_menuJSON_l1Aux.reset();
66  m_menuJSON_hltps.reset();
67  m_menuJSON_hltpsAux.reset();
68  m_menuJSON_l1ps.reset();
69  m_menuJSON_l1psAux.reset();
70  m_menuJSON_bg.reset();
71  m_menuJSON_bgAux.reset();
72 
74 
75  // Return gracefully:
76  return StatusCode::SUCCESS;
77  }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ inputMetaStore()

AsgMetadataTool::MetaStorePtr_t asg::AsgMetadataTool::inputMetaStore ( ) const
inherited

Accessor for the input metadata store.

Definition at line 88 of file AsgMetadataTool.cxx.

88  {
89 
90 #ifdef XAOD_STANDALONE
91  return &m_inputMetaStore;
92 #else // XAOD_STANDALONE
93  return m_inputMetaStore;
94 #endif // XAOD_STANDALONE
95  }

◆ interfaceID()

const InterfaceID & IMetaDataTool::interfaceID ( )
inlinestaticinherited

Gaudi boilerplate.

Definition at line 39 of file IMetaDataTool.h.

39  {
40  static const InterfaceID IID("IMetaDataTool", 1, 0);
41  return(IID);
42 }

◆ metaDataStop() [1/2]

StatusCode xAODMaker::TriggerMenuMetaDataTool::metaDataStop ( )
protectedvirtual

Function writing out the collected metadata.

Implements IMetaDataTool.

Definition at line 223 of file TriggerMenuMetaDataTool.cxx.

223  {
224  // Note: Copying into a given collection in the output store should only be done
225  // by a single thread at a time.
226  std::scoped_lock lock(s_mutex);
227 
230  return StatusCode::SUCCESS;
231  }

◆ metaDataStop() [2/2]

virtual StatusCode xAODMaker::TriggerMenuMetaDataTool::metaDataStop ( const SG::SourceID )
inlineprotectedvirtual

Function writing the collected metadata to the output.

Definition at line 82 of file TriggerMenuMetaDataTool.h.

82 {return metaDataStop();}

◆ msg() [1/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

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

Definition at line 27 of file AthCommonMsg.h.

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

◆ msg_level_name()

const std::string & asg::AsgTool::msg_level_name ( ) const
inherited

A deprecated function for getting the message level's name.

Instead of using this, weirdly named function, user code should get the string name of the current minimum message level (in case they really need it...), with:

MSG::name( msg().level() )

This function's name doesn't follow the ATLAS coding rules, and as such will be removed in the not too distant future.

Returns
The string name of the current minimum message level that's printed

Definition at line 101 of file AsgTool.cxx.

101  {
102 
103  return MSG::name( msg().level() );
104  }

◆ msgLvl()

bool AthCommonMsg< AlgTool >::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30  {
31  return this->msgLevel(lvl);
32  }

◆ outputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ outputMetaStore()

AsgMetadataTool::MetaStorePtr_t asg::AsgMetadataTool::outputMetaStore ( ) const
inherited

Accessor for the output metadata store.

Definition at line 97 of file AsgMetadataTool.cxx.

97  {
98 
99 #ifdef XAOD_STANDALONE
100  return &m_outputMetaStore;
101 #else // XAOD_STANDALONE
102  return m_outputMetaStore;
103 #endif // XAOD_STANDALONE
104  }

◆ print()

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

◆ renounce()

std::enable_if_t<std::is_void_v<std::result_of_t<decltype(&T::renounce)(T)> > && !std::is_base_of_v<SG::VarHandleKeyArray, T> && std::is_base_of_v<Gaudi::DataHandle, T>, void> AthCommonDataStore< AthCommonMsg< AlgTool > >::renounce ( T &  h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381  {
382  h.renounce();
383  PBASE::renounce (h);
384  }

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ setUseIncidents()

void asg::AsgMetadataTool::setUseIncidents ( const bool  flag)
inlineprotectedinherited

Definition at line 132 of file AsgMetadataTool.h.

133  {
135  }

◆ sysInitialize()

StatusCode asg::AsgMetadataTool::sysInitialize ( )
virtualinherited

Function initialising the tool in the correct way in Athena.

This function is used to set up the callbacks from IncidentSvc in Athena at the right time during initialisation, without the user having to do anything special in his/her code.

Reimplemented from AthCommonDataStore< AthCommonMsg< AlgTool > >.

Definition at line 110 of file AsgMetadataTool.cxx.

110  {
111 
112 #ifndef XAOD_STANDALONE
113  if (m_useIncidents) {
114  // Connect to the IncidentSvc:
115  ServiceHandle< IIncidentSvc > incSvc( "IncidentSvc", name() );
116  ATH_CHECK( incSvc.retrieve() );
117 
118  // Set up the right callbacks: don't rethrow exceptions, any failure and we should end
119  incSvc->addListener( this, IncidentType::BeginEvent, 0, false );
120  }
121  // Let the base class do its thing:
122  ATH_CHECK( AlgTool::sysInitialize() );
123 
124 #endif // not XAOD_STANDALONE
125 
126  // Return gracefully:
127  return StatusCode::SUCCESS;
128  }

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::updateVHKA ( Gaudi::Details::PropertyBase &  )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308  {
309  // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310  // << " size: " << m_vhka.size() << endmsg;
311  for (auto &a : m_vhka) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

Member Data Documentation

◆ ATLAS_THREAD_SAFE

std::mutex s_mutex xAODMaker::TriggerMenuMetaDataTool::ATLAS_THREAD_SAFE
staticprivate

Global serial protection over writing to the output store for MP.

Definition at line 178 of file TriggerMenuMetaDataTool.h.

◆ m_beginFileIncidentSeen

bool xAODMaker::TriggerMenuMetaDataTool::m_beginFileIncidentSeen
private

Internal status flag showing whether a BeginInputFile incident was seen already.

Definition at line 175 of file TriggerMenuMetaDataTool.h.

◆ m_beginInputFileCalled

bool asg::AsgMetadataTool::m_beginInputFileCalled
privateinherited

Flag helping to discover when the tool misses the opening of the first input file.

Definition at line 126 of file AsgMetadataTool.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_inputKey

std::string xAODMaker::TriggerMenuMetaDataTool::m_inputKey
private

The key of the trigger menu in the input file.

Definition at line 121 of file TriggerMenuMetaDataTool.h.

◆ m_inputKeyJSON_BG

std::string xAODMaker::TriggerMenuMetaDataTool::m_inputKeyJSON_BG
private

Definition at line 150 of file TriggerMenuMetaDataTool.h.

◆ m_inputKeyJSON_HLT

std::string xAODMaker::TriggerMenuMetaDataTool::m_inputKeyJSON_HLT
private

Definition at line 135 of file TriggerMenuMetaDataTool.h.

◆ m_inputKeyJSON_HLTMonitoring

std::string xAODMaker::TriggerMenuMetaDataTool::m_inputKeyJSON_HLTMonitoring
private

Definition at line 138 of file TriggerMenuMetaDataTool.h.

◆ m_inputKeyJSON_HLTPS

std::string xAODMaker::TriggerMenuMetaDataTool::m_inputKeyJSON_HLTPS
private

Definition at line 144 of file TriggerMenuMetaDataTool.h.

◆ m_inputKeyJSON_L1

std::string xAODMaker::TriggerMenuMetaDataTool::m_inputKeyJSON_L1
private

Definition at line 141 of file TriggerMenuMetaDataTool.h.

◆ m_inputKeyJSON_L1PS

std::string xAODMaker::TriggerMenuMetaDataTool::m_inputKeyJSON_L1PS
private

Definition at line 147 of file TriggerMenuMetaDataTool.h.

◆ m_inputMetaStore

MetaStore_t asg::AsgMetadataTool::m_inputMetaStore
privateinherited

Object accessing the input metadata store.

Definition at line 119 of file AsgMetadataTool.h.

◆ m_menu

std::unique_ptr< xAOD::TriggerMenuContainer > xAODMaker::TriggerMenuMetaDataTool::m_menu
private

The merged trigger menu container.

Definition at line 126 of file TriggerMenuMetaDataTool.h.

◆ m_menuAux

std::unique_ptr< xAOD::TriggerMenuAuxContainer > xAODMaker::TriggerMenuMetaDataTool::m_menuAux
private

The merged trigger menu auxiliary container.

Definition at line 128 of file TriggerMenuMetaDataTool.h.

◆ m_menuJSON_bg

std::unique_ptr< xAOD::TriggerMenuJsonContainer > xAODMaker::TriggerMenuMetaDataTool::m_menuJSON_bg
private

Definition at line 168 of file TriggerMenuMetaDataTool.h.

◆ m_menuJSON_bgAux

std::unique_ptr< xAOD::TriggerMenuJsonAuxContainer > xAODMaker::TriggerMenuMetaDataTool::m_menuJSON_bgAux
private

Definition at line 169 of file TriggerMenuMetaDataTool.h.

◆ m_menuJSON_hlt

std::unique_ptr< xAOD::TriggerMenuJsonContainer > xAODMaker::TriggerMenuMetaDataTool::m_menuJSON_hlt
private

Definition at line 153 of file TriggerMenuMetaDataTool.h.

◆ m_menuJSON_hltAux

std::unique_ptr< xAOD::TriggerMenuJsonAuxContainer > xAODMaker::TriggerMenuMetaDataTool::m_menuJSON_hltAux
private

Definition at line 154 of file TriggerMenuMetaDataTool.h.

◆ m_menuJSON_hltmonitoring

std::unique_ptr< xAOD::TriggerMenuJsonContainer > xAODMaker::TriggerMenuMetaDataTool::m_menuJSON_hltmonitoring
private

Definition at line 156 of file TriggerMenuMetaDataTool.h.

◆ m_menuJSON_hltmonitoringAux

std::unique_ptr< xAOD::TriggerMenuJsonAuxContainer > xAODMaker::TriggerMenuMetaDataTool::m_menuJSON_hltmonitoringAux
private

Definition at line 157 of file TriggerMenuMetaDataTool.h.

◆ m_menuJSON_hltps

std::unique_ptr< xAOD::TriggerMenuJsonContainer > xAODMaker::TriggerMenuMetaDataTool::m_menuJSON_hltps
private

Definition at line 162 of file TriggerMenuMetaDataTool.h.

◆ m_menuJSON_hltpsAux

std::unique_ptr< xAOD::TriggerMenuJsonAuxContainer > xAODMaker::TriggerMenuMetaDataTool::m_menuJSON_hltpsAux
private

Definition at line 163 of file TriggerMenuMetaDataTool.h.

◆ m_menuJSON_l1

std::unique_ptr< xAOD::TriggerMenuJsonContainer > xAODMaker::TriggerMenuMetaDataTool::m_menuJSON_l1
private

Definition at line 159 of file TriggerMenuMetaDataTool.h.

◆ m_menuJSON_l1Aux

std::unique_ptr< xAOD::TriggerMenuJsonAuxContainer > xAODMaker::TriggerMenuMetaDataTool::m_menuJSON_l1Aux
private

Definition at line 160 of file TriggerMenuMetaDataTool.h.

◆ m_menuJSON_l1ps

std::unique_ptr< xAOD::TriggerMenuJsonContainer > xAODMaker::TriggerMenuMetaDataTool::m_menuJSON_l1ps
private

Definition at line 165 of file TriggerMenuMetaDataTool.h.

◆ m_menuJSON_l1psAux

std::unique_ptr< xAOD::TriggerMenuJsonAuxContainer > xAODMaker::TriggerMenuMetaDataTool::m_menuJSON_l1psAux
private

Definition at line 166 of file TriggerMenuMetaDataTool.h.

◆ m_outputKey

std::string xAODMaker::TriggerMenuMetaDataTool::m_outputKey
private

The key of the trigger menu for the output file.

Definition at line 123 of file TriggerMenuMetaDataTool.h.

◆ m_outputKeyJSON_BG

std::string xAODMaker::TriggerMenuMetaDataTool::m_outputKeyJSON_BG
private

Definition at line 151 of file TriggerMenuMetaDataTool.h.

◆ m_outputKeyJSON_HLT

std::string xAODMaker::TriggerMenuMetaDataTool::m_outputKeyJSON_HLT
private

Definition at line 136 of file TriggerMenuMetaDataTool.h.

◆ m_outputKeyJSON_HLTMonitoring

std::string xAODMaker::TriggerMenuMetaDataTool::m_outputKeyJSON_HLTMonitoring
private

Definition at line 139 of file TriggerMenuMetaDataTool.h.

◆ m_outputKeyJSON_HLTPS

std::string xAODMaker::TriggerMenuMetaDataTool::m_outputKeyJSON_HLTPS
private

Definition at line 145 of file TriggerMenuMetaDataTool.h.

◆ m_outputKeyJSON_L1

std::string xAODMaker::TriggerMenuMetaDataTool::m_outputKeyJSON_L1
private

Definition at line 142 of file TriggerMenuMetaDataTool.h.

◆ m_outputKeyJSON_L1PS

std::string xAODMaker::TriggerMenuMetaDataTool::m_outputKeyJSON_L1PS
private

Definition at line 148 of file TriggerMenuMetaDataTool.h.

◆ m_outputMetaStore

MetaStore_t asg::AsgMetadataTool::m_outputMetaStore
privateinherited

Object accessing the output metadata store.

Definition at line 121 of file AsgMetadataTool.h.

◆ m_useIncidents

bool asg::AsgMetadataTool::m_useIncidents
privateinherited

Definition at line 128 of file AsgMetadataTool.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
xAODMaker::TriggerMenuMetaDataTool::m_inputKey
std::string m_inputKey
The key of the trigger menu in the input file.
Definition: TriggerMenuMetaDataTool.h:121
xAODMaker::TriggerMenuMetaDataTool::m_beginFileIncidentSeen
bool m_beginFileIncidentSeen
Internal status flag showing whether a BeginInputFile incident was seen already.
Definition: TriggerMenuMetaDataTool.h:175
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
xAODMaker::TriggerMenuMetaDataTool::m_menu
std::unique_ptr< xAOD::TriggerMenuContainer > m_menu
The merged trigger menu container.
Definition: TriggerMenuMetaDataTool.h:126
asg::AsgMetadataTool::beginEvent
virtual StatusCode beginEvent()
Function called when a new events is loaded.
Definition: AsgMetadataTool.cxx:196
StateLessPT_NewConfig.proxy
proxy
Definition: StateLessPT_NewConfig.py:392
xAODMaker::TriggerMenuMetaDataTool::endInputFile
virtual StatusCode endInputFile()
Function called when the currently open input file got completely processed.
Definition: TriggerMenuMetaDataTool.cxx:79
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
xAODMaker::TriggerMenuMetaDataTool::m_menuJSON_l1Aux
std::unique_ptr< xAOD::TriggerMenuJsonAuxContainer > m_menuJSON_l1Aux
Definition: TriggerMenuMetaDataTool.h:160
xAODMaker::TriggerMenuMetaDataTool::m_outputKeyJSON_HLTMonitoring
std::string m_outputKeyJSON_HLTMonitoring
Definition: TriggerMenuMetaDataTool.h:139
xAODMaker::TriggerMenuMetaDataTool::beginInputFile
virtual StatusCode beginInputFile()
Function collecting the trigger configuration metadata from the input file.
Definition: TriggerMenuMetaDataTool.cxx:83
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
python.TriggerConfig.menu
menu
Definition: TriggerConfig.py:842
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
xAODMaker::TriggerMenuMetaDataTool::m_menuAux
std::unique_ptr< xAOD::TriggerMenuAuxContainer > m_menuAux
The merged trigger menu auxiliary container.
Definition: TriggerMenuMetaDataTool.h:128
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
asg::AsgMetadataTool::inputMetaStore
MetaStorePtr_t inputMetaStore() const
Accessor for the input metadata store.
Definition: AsgMetadataTool.cxx:88
xAODMaker::TriggerMenuMetaDataTool::m_menuJSON_hltmonitoringAux
std::unique_ptr< xAOD::TriggerMenuJsonAuxContainer > m_menuJSON_hltmonitoringAux
Definition: TriggerMenuMetaDataTool.h:157
xAODMaker::TriggerMenuMetaDataTool::m_inputKeyJSON_HLT
std::string m_inputKeyJSON_HLT
Definition: TriggerMenuMetaDataTool.h:135
asg::AsgMetadataTool::m_beginInputFileCalled
bool m_beginInputFileCalled
Flag helping to discover when the tool misses the opening of the first input file.
Definition: AsgMetadataTool.h:126
xAODMaker::TriggerMenuMetaDataTool::m_inputKeyJSON_L1PS
std::string m_inputKeyJSON_L1PS
Definition: TriggerMenuMetaDataTool.h:147
asg::AsgMetadataTool::endInputFile
virtual StatusCode endInputFile()
Function called when the currently open input file got completely processed.
Definition: AsgMetadataTool.cxx:188
xAODMaker::TriggerMenuMetaDataTool::m_menuJSON_hltmonitoring
std::unique_ptr< xAOD::TriggerMenuJsonContainer > m_menuJSON_hltmonitoring
Definition: TriggerMenuMetaDataTool.h:156
asg::AsgMetadataTool::m_outputMetaStore
MetaStore_t m_outputMetaStore
Object accessing the output metadata store.
Definition: AsgMetadataTool.h:121
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
dbg::ptr
void * ptr(T *p)
Definition: SGImplSvc.cxx:74
xAODMaker::TriggerMenuMetaDataTool::checkxAODTriggerMenu
StatusCode checkxAODTriggerMenu()
Perform the R2 data copy from the input metastore to the internal metastore.
Definition: TriggerMenuMetaDataTool.cxx:91
xAODMaker::TriggerMenuMetaDataTool::m_menuJSON_hltps
std::unique_ptr< xAOD::TriggerMenuJsonContainer > m_menuJSON_hltps
Definition: TriggerMenuMetaDataTool.h:162
xAODMaker::TriggerMenuMetaDataTool::doCopyxAODTriggerMenu
StatusCode doCopyxAODTriggerMenu(const xAOD::TriggerMenuContainer *copyFrom, xAOD::TriggerMenuContainer *copyTo)
Common code to copy and de-duplicate menus from the copyFrom collection into the copyTo collection.
Definition: TriggerMenuMetaDataTool.cxx:118
xAODMaker::TriggerMenuMetaDataTool::endxAODTriggerMenu
StatusCode endxAODTriggerMenu()
Perform the R2 data copy from the internal metastore to the output metastore.
Definition: TriggerMenuMetaDataTool.cxx:233
xAODMaker::TriggerMenuMetaDataTool::m_inputKeyJSON_HLTPS
std::string m_inputKeyJSON_HLTPS
Definition: TriggerMenuMetaDataTool.h:144
python.iconfTool.models.loaders.level
level
Definition: loaders.py:20
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
xAODMaker::TriggerMenuMetaDataTool::checkCopyJson
StatusCode checkCopyJson(const std::string &inputMetaSGKey, std::unique_ptr< xAOD::TriggerMenuJsonContainer > &internalContainer, std::unique_ptr< xAOD::TriggerMenuJsonAuxContainer > &internalAuxContainer)
Helper function to do the R3 data copy to the internal store for a given JSON.
Definition: TriggerMenuMetaDataTool.cxx:157
xAODMaker::TriggerMenuMetaDataTool::m_outputKeyJSON_L1PS
std::string m_outputKeyJSON_L1PS
Definition: TriggerMenuMetaDataTool.h:148
xAODMaker::TriggerMenuMetaDataTool::m_inputKeyJSON_HLTMonitoring
std::string m_inputKeyJSON_HLTMonitoring
Definition: TriggerMenuMetaDataTool.h:138
xAODMaker::TriggerMenuMetaDataTool::m_inputKeyJSON_L1
std::string m_inputKeyJSON_L1
Definition: TriggerMenuMetaDataTool.h:141
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:85
menu
make the sidebar many part of the config
Definition: hcg.cxx:551
xAODMaker::TriggerMenuMetaDataTool::m_outputKeyJSON_L1
std::string m_outputKeyJSON_L1
Definition: TriggerMenuMetaDataTool.h:142
xAODMaker::TriggerMenuMetaDataTool::m_outputKeyJSON_BG
std::string m_outputKeyJSON_BG
Definition: TriggerMenuMetaDataTool.h:151
xAODMaker::TriggerMenuMetaDataTool::m_menuJSON_hltpsAux
std::unique_ptr< xAOD::TriggerMenuJsonAuxContainer > m_menuJSON_hltpsAux
Definition: TriggerMenuMetaDataTool.h:163
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
xAODMaker::TriggerMenuMetaDataTool::endxAODTriggerMenuJson
StatusCode endxAODTriggerMenuJson()
Perform the R3 data copy from the internal metastore to the output metastore.
Definition: TriggerMenuMetaDataTool.cxx:264
xAODMaker::TriggerMenuMetaDataTool::m_inputKeyJSON_BG
std::string m_inputKeyJSON_BG
Definition: TriggerMenuMetaDataTool.h:150
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
asg::AsgMetadataTool::beginInputFile
virtual StatusCode beginInputFile()
Function called when a new input file is opened.
Definition: AsgMetadataTool.cxx:180
master.flag
bool flag
Definition: master.py:29
PlotPulseshapeFromCool.input
input
Definition: PlotPulseshapeFromCool.py:106
xAODMaker::TriggerMenuMetaDataTool::metaDataStop
virtual StatusCode metaDataStop()
Function writing out the collected metadata.
Definition: TriggerMenuMetaDataTool.cxx:223
asg::AsgMetadataTool::metaDataStop
virtual StatusCode metaDataStop()
Function called when the tool should write out its metadata.
Definition: AsgMetadataTool.cxx:204
xAODMaker::TriggerMenuMetaDataTool::m_menuJSON_hltAux
std::unique_ptr< xAOD::TriggerMenuJsonAuxContainer > m_menuJSON_hltAux
Definition: TriggerMenuMetaDataTool.h:154
python.xAODType.dummy
dummy
Definition: xAODType.py:4
xAODMaker::TriggerMenuMetaDataTool::m_outputKey
std::string m_outputKey
The key of the trigger menu for the output file.
Definition: TriggerMenuMetaDataTool.h:123
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
MSG::name
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
Definition: MsgLevel.cxx:19
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
xAODMaker::TriggerMenuMetaDataTool::checkExportJson
StatusCode checkExportJson(const std::string &outputMetaSGKey, std::unique_ptr< xAOD::TriggerMenuJsonContainer > &internalContainer, std::unique_ptr< xAOD::TriggerMenuJsonAuxContainer > &internalAuxContainer)
Definition: TriggerMenuMetaDataTool.cxx:274
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
merge.output
output
Definition: merge.py:17
xAODMaker::TriggerMenuMetaDataTool::m_menuJSON_l1ps
std::unique_ptr< xAOD::TriggerMenuJsonContainer > m_menuJSON_l1ps
Definition: TriggerMenuMetaDataTool.h:165
FPEAudit::s_mutex
std::mutex s_mutex
Definition: FPEAuditor.cxx:43
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
xAOD::TriggerMenu
TriggerMenu_v1 TriggerMenu
Define the latest version of the trigger menu class.
Definition: TriggerMenu.h:16
asg::AsgMetadataTool::m_inputMetaStore
MetaStore_t m_inputMetaStore
Object accessing the input metadata store.
Definition: AsgMetadataTool.h:119
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
xAODMaker::TriggerMenuMetaDataTool::checkxAODTriggerMenuJson
StatusCode checkxAODTriggerMenuJson()
Perform the R3 data copy from the input metastore to the internal metastore.
Definition: TriggerMenuMetaDataTool.cxx:147
xAOD::TriggerMenuJson_v1
Raw JSON data for a given type of menu file.
Definition: TriggerMenuJson_v1.h:26
xAODMaker::TriggerMenuMetaDataTool::doCopyxAODTriggerMenuJson
StatusCode doCopyxAODTriggerMenuJson(const std::string &inputMetaSGKey, const xAOD::TriggerMenuJsonContainer *copyFrom, xAOD::TriggerMenuJsonContainer *copyTo)
Common code to copy and de-duplicate menus from the copyFrom collection into the copyTo collection.
Definition: TriggerMenuMetaDataTool.cxx:183
a
TList * a
Definition: liststreamerinfos.cxx:10
h
asg::AsgMetadataTool
Base class for dual-use tools that provide file metadata access.
Definition: AsgMetadataTool.h:48
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
xAODMaker::TriggerMenuMetaDataTool::m_menuJSON_l1
std::unique_ptr< xAOD::TriggerMenuJsonContainer > m_menuJSON_l1
Definition: TriggerMenuMetaDataTool.h:159
xAODMaker::TriggerMenuMetaDataTool::m_menuJSON_bgAux
std::unique_ptr< xAOD::TriggerMenuJsonAuxContainer > m_menuJSON_bgAux
Definition: TriggerMenuMetaDataTool.h:169
asg::AsgMetadataTool::outputMetaStore
MetaStorePtr_t outputMetaStore() const
Accessor for the output metadata store.
Definition: AsgMetadataTool.cxx:97
AthCommonMsg< AlgTool >::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24
xAOD::TriggerMenuJson
TriggerMenuJson_v1 TriggerMenuJson
Define the latest version of the trigger menu JSON class.
Definition: TriggerMenuJson.h:15
xAODMaker::TriggerMenuMetaDataTool::m_menuJSON_bg
std::unique_ptr< xAOD::TriggerMenuJsonContainer > m_menuJSON_bg
Definition: TriggerMenuMetaDataTool.h:168
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
xAODMaker::TriggerMenuMetaDataTool::m_outputKeyJSON_HLTPS
std::string m_outputKeyJSON_HLTPS
Definition: TriggerMenuMetaDataTool.h:145
xAODMaker::TriggerMenuMetaDataTool::m_menuJSON_l1psAux
std::unique_ptr< xAOD::TriggerMenuJsonAuxContainer > m_menuJSON_l1psAux
Definition: TriggerMenuMetaDataTool.h:166
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
python.dummyaccess.exists
def exists(filename)
Definition: dummyaccess.py:9
xAODMaker::TriggerMenuMetaDataTool::m_outputKeyJSON_HLT
std::string m_outputKeyJSON_HLT
Definition: TriggerMenuMetaDataTool.h:136
SG::DataProxy
Definition: DataProxy.h:45
xAOD::TriggerMenu_v1
Class holding one particular trigger configuration.
Definition: TriggerMenu_v1.h:34
xAODMaker::TriggerMenuMetaDataTool::m_menuJSON_hlt
std::unique_ptr< xAOD::TriggerMenuJsonContainer > m_menuJSON_hlt
Definition: TriggerMenuMetaDataTool.h:153
DataVector::size
size_type size() const noexcept
Returns the number of elements in the collection.
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< IIncidentSvc >
asg::AsgMetadataTool::m_useIncidents
bool m_useIncidents
Definition: AsgMetadataTool.h:128