|  | ATLAS Offline Software
    | 
 
 
 
#include <BookkeeperTool.h>
|  | 
|  | BookkeeperTool (const std::string &name="BookkeeperTool") | 
|  | Declare the correct constructor for Athena.  More... 
 | 
|  | 
| virtual | ~BookkeeperTool ()=default | 
|  | Destructor.  More... 
 | 
|  | 
| virtual StatusCode | initialize () override | 
|  | Standard reimplemented functions.  More... 
 | 
|  | 
| virtual StatusCode | metaDataStop () override | 
|  | Function called when the tool should prepare to write its metadata.  More... 
 | 
|  | 
| virtual StatusCode | beginInputFile () override | 
|  | Function called when a new input file is opened.  More... 
 | 
|  | 
| virtual StatusCode | endInputFile () override | 
|  | Function called when the currently open input file got completely processed.  More... 
 | 
|  | 
| virtual StatusCode | beginInputFile (const SG::SourceID &source) override | 
|  | Function called when a new input file is opened.  More... 
 | 
|  | 
| virtual StatusCode | endInputFile (const SG::SourceID &source) override | 
|  | Function called when the currently open input file got completely processed.  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 theStoreGateSvc.  More...
 | 
|  | 
| const ServiceHandle< StoreGateSvc > & | evtStore () const | 
|  | The standard StoreGateSvc(event store) Returns (kind of) a pointer to theStoreGateSvc.  More...
 | 
|  | 
| const ServiceHandle< StoreGateSvc > & | detStore () const | 
|  | The standard StoreGateSvc/DetectorStoreReturns (kind of) a pointer to theStoreGateSvc.  More...
 | 
|  | 
| virtual StatusCode | sysStart () override | 
|  | Handle START transition.  More... 
 | 
|  | 
| virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override | 
|  | Return this algorithm's input handles.  More... 
 | 
|  | 
| virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override | 
|  | Return this algorithm's output handles.  More... 
 | 
|  | 
| Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T, V, H > &t) | 
|  | 
| Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) | 
|  | Declare a new Gaudi property.  More... 
 | 
|  | 
| Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) | 
|  | Declare a new Gaudi property.  More... 
 | 
|  | 
| Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) | 
|  | 
| Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) | 
|  | Declare a new Gaudi property.  More... 
 | 
|  | 
| Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") | 
|  | Declare a new Gaudi property.  More... 
 | 
|  | 
| void | updateVHKA (Gaudi::Details::PropertyBase &) | 
|  | 
| MsgStream & | msg () const | 
|  | 
| MsgStream & | msg (const MSG::Level lvl) const | 
|  | 
| bool | msgLvl (const MSG::Level lvl) const | 
|  | 
|  | DeclareInterfaceID (IMetaDataTool, 1, 0) | 
|  | 
|  | 
| StatusCode | copyInputContainersToOutput (CutBookkeepersLocalCache &target, const SG::SourceID &source="") | 
|  | Copy input containers to the output.  More... 
 | 
|  | 
| StatusCode | copyCutflowFromService () | 
|  | Fill Cutflow information from the service.  More... 
 | 
|  | 
| StatusCode | loadXAODMetaData () | 
|  | Initialisation helpers.  More... 
 | 
|  | 
| StatusCode | loadPOOLMetaData () | 
|  | 
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) | 
|  | specialization for handling Gaudi::Property<SG::VarHandleKey>  More... 
 | 
|  | 
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &) | 
|  | specialization for handling Gaudi::Property<SG::VarHandleKeyArray>  More... 
 | 
|  | 
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &) | 
|  | specialization for handling Gaudi::Property<SG::VarHandleBase>  More... 
 | 
|  | 
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &) | 
|  | specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>  More... 
 | 
|  | 
Definition at line 42 of file BookkeeperTool.h.
 
◆ MetaStore_t
◆ MetaStorePtr_t
Type of the metadata store pointer in standalone mode. 
Definition at line 68 of file AsgMetadataTool.h.
 
 
◆ StoreGateSvc_t
◆ BookkeeperTool()
      
        
          | BookkeeperTool::BookkeeperTool | ( | const std::string & | name = "BookkeeperTool" | ) |  | 
      
 
Declare the correct constructor for Athena. 
Standard Service Constructor 
Definition at line 25 of file BookkeeperTool.cxx.
   28 #ifndef XAOD_STANDALONE 
   29   declareInterface< ::IMetaDataTool >( 
this );
 
   30 #endif // XAOD_STANDALONE 
 
 
 
◆ ~BookkeeperTool()
  
  | 
        
          | virtual BookkeeperTool::~BookkeeperTool | ( |  | ) |  |  | virtualdefault | 
 
 
◆ beginEvent()
  
  | 
        
          | StatusCode asg::AsgMetadataTool::beginEvent | ( |  | ) |  |  | protectedvirtualinherited | 
 
Function called when a new events is loaded. 
Dummy implementation that can be overridden by the derived tool. 
Reimplemented in AsgElectronEfficiencyCorrectionTool, TrigConf::xAODConfigTool, TauAnalysisTools::TauSelectionTool, TauAnalysisTools::DiTauSelectionTool, TauAnalysisTools::CommonSmearingTool, TauAnalysisTools::DiTauEfficiencyCorrectionsTool, Trig::TrigDecisionTool, TauAnalysisTools::TauEfficiencyCorrectionsTool, Trig::TrigConfBunchCrossingTool, xAODMaker::TriggerMenuMetaDataTool, and Trig::xAODBunchCrossingTool.
Definition at line 201 of file AsgMetadataTool.cxx.
  204       return StatusCode::SUCCESS;
 
 
 
 
◆ beginInputFile() [1/2]
  
  | 
        
          | virtual StatusCode BookkeeperTool::beginInputFile | ( |  | ) |  |  | inlineoverridevirtual | 
 
Function called when a new input file is opened. 
Dummy implementation that can be overridden by the derived tool. 
Reimplemented from asg::AsgMetadataTool.
Definition at line 66 of file BookkeeperTool.h.
   66 {
return StatusCode::SUCCESS;}
 
 
 
◆ beginInputFile() [2/2]
Function called when a new input file is opened. 
Implements IMetaDataTool.
Definition at line 54 of file BookkeeperTool.cxx.
   66 #ifndef GENERATIONBASE 
   67     if (
inputMetaStore()->contains<xAOD::TruthMetaDataContainer>(
"TruthMetaData")) {
 
   70         if (
status.isRecoverable()) {
 
   73           return StatusCode::FAILURE;
 
   84       ATH_MSG_ERROR(
"Could not determine the number of weight variations");
 
   85       return StatusCode::FAILURE;
 
   90 #ifndef XAOD_STANDALONE 
   95 #ifdef XAOD_STANDALONE 
  107     ATH_MSG_ERROR(
"Undefined behaviour: this file has already been processed");
 
  108     return StatusCode::FAILURE;
 
  114   if (
inputMetaStore()->contains<xAOD::CutBookkeeperContainer>(incompleteCollName)) {
 
  116       std::string 
name = incompleteCollName;
 
  118         name.append(
"_weight_");
 
  126     ATH_MSG_DEBUG(
"Successfully merged input incomplete bookkeepers with output");
 
  128     ATH_MSG_INFO(
"No incomplete bookkeepers with name '" << incompleteCollName << 
"' in this file");
 
  140         name.append(
"_weight_");
 
  148     ATH_MSG_DEBUG(
"Successfully copied complete bookkeepers to temp container");
 
  153   return StatusCode::SUCCESS;
 
 
 
 
◆ copyCutflowFromService()
  
  | 
        
          | StatusCode BookkeeperTool::copyCutflowFromService | ( |  | ) |  |  | private | 
 
Fill Cutflow information from the service. 
Definition at line 269 of file BookkeeperTool.cxx.
  271 #ifndef XAOD_STANDALONE 
  276   if (!cache.
empty()) {
 
  283     for (std::size_t 
i = 0; 
i < cache.
size(); ++
i) {
 
  288     return StatusCode::FAILURE;
 
  292   return StatusCode::SUCCESS;
 
 
 
 
◆ copyInputContainersToOutput()
Copy input containers to the output. 
Definition at line 232 of file BookkeeperTool.cxx.
  248       return StatusCode::SUCCESS;
 
  251     for (std::size_t 
i = 0; 
i < 
it->second.size(); ++
i) {
 
  256     return StatusCode::SUCCESS;
 
  260     for (std::size_t 
i = 0; 
i < 
list.size(); ++
i) {
 
  266   return StatusCode::SUCCESS;
 
 
 
 
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray> 
Definition at line 170 of file AthCommonDataStore.h.
  175                                                        hndl.documentation());
 
 
 
 
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey> 
Definition at line 156 of file AthCommonDataStore.h.
  161                                                        hndl.documentation());
 
 
 
 
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase> 
Definition at line 184 of file AthCommonDataStore.h.
  189                                                        hndl.documentation());
 
 
 
 
◆ declareGaudiProperty() [4/4]
◆ DeclareInterfaceID()
◆ declareProperty() [1/6]
Declare a new Gaudi property. 
- Parameters
- 
  
    | name | Name of the property. |  | hndl | Object holding the property value. |  | doc | Documentation 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.
  250     this->declare(hndl.
vhKey());
 
  251     hndl.
vhKey().setOwner(
this);
 
  253     return PBASE::declareProperty(
name,hndl,
doc);
 
 
 
 
◆ declareProperty() [2/6]
Declare a new Gaudi property. 
- Parameters
- 
  
    | name | Name of the property. |  | hndl | Object holding the property value. |  | doc | Documentation 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.
  229     return PBASE::declareProperty(
name,hndl,
doc);
 
 
 
 
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property. 
- Parameters
- 
  
    | name | Name of the property. |  | property | Object holding the property value. |  | doc | Documentation 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.
  338     return PBASE::declareProperty(
name, property, 
doc);
 
 
 
 
◆ declareProperty() [5/6]
Declare a new Gaudi property. 
- Parameters
- 
  
    | name | Name of the property. |  | property | Object holding the property value. |  | doc | Documentation 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.
 
 
◆ declareProperty() [6/6]
◆ detStore()
◆ endInputFile() [1/2]
  
  | 
        
          | virtual StatusCode BookkeeperTool::endInputFile | ( |  | ) |  |  | inlineoverridevirtual | 
 
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 67 of file BookkeeperTool.h.
   67 {
return StatusCode::SUCCESS;}
 
 
 
◆ endInputFile() [2/2]
Function called when the currently open input file got completely processed. 
Implements IMetaDataTool.
Definition at line 159 of file BookkeeperTool.cxx.
  162 #ifdef XAOD_STANDALONE 
  168   return StatusCode::SUCCESS;
 
 
 
 
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ extraDeps_update_handler()
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()
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
- 
  
    | ptr | The 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.
  121 #ifdef XAOD_STANDALONE 
  127       return ( 
proxy == 
nullptr ? 0 : 
proxy->sgkey() );
 
  128 #endif // XAOD_STANDALONE 
 
 
 
◆ 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
- 
  
    | ptr | The 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.
  108 #ifdef XAOD_STANDALONE 
  114       static const std::string 
dummy = 
"";
 
  116 #endif // XAOD_STANDALONE 
 
 
 
◆ 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 135 of file AsgMetadataTool.cxx.
  141       if( inc.type() == IncidentType::BeginInputFile ) {
 
  145           throw std::runtime_error( 
"Couldn't call beginInputFile()" );
 
  147       } 
else if( inc.type() == IncidentType::EndInputFile ) {
 
  150           throw std::runtime_error( 
"Couldn't call endInputFile()" );
 
  152       } 
else if( inc.type() == IncidentType::BeginEvent ) {
 
  160                throw std::runtime_error( 
"Couldn't call beginInputFile()" );
 
  165             throw std::runtime_error( 
"Couldn't call beginEvent()" );
 
  168      #ifdef XAOD_STANDALONE 
  169       } 
else if( inc.type() == IncidentType::MetaDataStop ) {
 
  172             throw std::runtime_error( 
"Couldn't call metaDataStop()" );
 
  175      #endif // XAOD_STANDALONE 
  177          ATH_MSG_WARNING( 
"Unknown incident type received in AsgMetaDataTool: " << inc.type() );
 
 
 
 
◆ initialize()
  
  | 
        
          | StatusCode BookkeeperTool::initialize | ( |  | ) |  |  | overridevirtual | 
 
Standard reimplemented functions. 
Reimplemented from asg::AsgTool.
Definition at line 34 of file BookkeeperTool.cxx.
   41 #ifndef XAOD_STANDALONE 
   47   return StatusCode::SUCCESS;
 
 
 
 
◆ inputHandles()
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 93 of file AsgMetadataTool.cxx.
   95 #ifdef XAOD_STANDALONE 
   97 #else // XAOD_STANDALONE 
   99 #endif // XAOD_STANDALONE 
 
 
 
◆ loadPOOLMetaData()
  
  | 
        
          | StatusCode BookkeeperTool::loadPOOLMetaData | ( |  | ) |  |  | private | 
 
Definition at line 363 of file BookkeeperTool.cxx.
  366 #ifdef XAOD_STANDALONE 
  367   return StatusCode::SUCCESS;
 
  372   if (container == 
nullptr) {
 
  375     return StatusCode::SUCCESS;
 
  381     return StatusCode::FAILURE;
 
  387   const coral::Attribute& attr
 
  390   ATH_MSG_DEBUG(
"Attempting to load weight meta data from /Generation/Parameters");
 
  391   std::map<std::string, int> truthWeightMap;
 
  396   return StatusCode::SUCCESS;
 
  397 #endif // XAOD_STANDALONE 
 
 
 
◆ loadXAODMetaData()
  
  | 
        
          | StatusCode BookkeeperTool::loadXAODMetaData | ( |  | ) |  |  | private | 
 
Initialisation helpers. 
Definition at line 296 of file BookkeeperTool.cxx.
  298 #ifdef GENERATIONBASE 
  299   return StatusCode::RECOVERABLE;
 
  303   ATH_MSG_DEBUG(
"Attempting to retrieve MC channel number...");
 
  306   if (
inputMetaStore()->contains<xAOD::FileMetaData>(
"FileMetaData")) {
 
  308     float fltChannelNumber{-1};
 
  314     ATH_MSG_WARNING(
"... MC channel number could not be loaded from FileMetaData");
 
  315 #ifdef XAOD_STANDALONE 
  318     return StatusCode::RECOVERABLE;
 
  333   auto itTruthMetaDataPtr = std::find_if(metaDataContainer->begin(), metaDataContainer->end(),
 
  334     [
mcChannelNumber] (
const auto& 
it) { return it->mcChannelNumber() == mcChannelNumber; }
 
  338   if (itTruthMetaDataPtr == metaDataContainer->end()) {
 
  339 #ifdef XAOD_STANDALONE 
  341     ATH_MSG_DEBUG(
"Could not load weight meta data! Assuming 1 variation.");
 
  342     return StatusCode::SUCCESS;
 
  344     ATH_MSG_DEBUG(
"Could not load weight meta data from TruthMetaData!");
 
  345     return StatusCode::RECOVERABLE;
 
  350   const std::vector<std::string> &truthWeightNames = (*itTruthMetaDataPtr)->weightNames();
 
  358   return StatusCode::SUCCESS;
 
 
 
 
◆ metaDataStop()
  
  | 
        
          | StatusCode BookkeeperTool::metaDataStop | ( |  | ) |  |  | overridevirtual | 
 
Function called when the tool should prepare to write its metadata. 
Implements IMetaDataTool.
Definition at line 171 of file BookkeeperTool.cxx.
  189       name.append(
"_weight_");
 
  192     std::string incompleteName = 
"Incomplete" + 
name;
 
  198         ATH_MSG_ERROR(
"Could not get " << 
name << 
" CutBookkeepers from output MetaDataStore");
 
  199         return StatusCode::FAILURE;
 
  207     if (
outputMetaStore()->contains<xAOD::CutBookkeeperContainer>(incompleteName)) {    
 
  210         ATH_MSG_ERROR(
"Could not get " << incompleteName << 
" CutBookkeepers from output MetaDataStore");
 
  211         return StatusCode::FAILURE;
 
  226   ATH_MSG_INFO(
"Successfully copied CutBookkeepers to the output MetaDataStore");
 
  228   return StatusCode::SUCCESS;
 
 
 
 
◆ msg() [1/2]
◆ msg() [2/2]
◆ 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.
 
 
◆ msgLvl()
◆ outputHandles()
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 102 of file AsgMetadataTool.cxx.
  104 #ifdef XAOD_STANDALONE 
  106 #else // XAOD_STANDALONE 
  108 #endif // XAOD_STANDALONE 
 
 
 
◆ print()
  
  | 
        
          | void asg::AsgTool::print | ( |  | ) | const |  | virtualinherited | 
 
Print the state of the tool. 
Implements asg::IAsgTool.
Reimplemented in JetRecTool, JetFinder, JetModifiedMassDrop, JetFromPseudojet, JetReclusterer, JetReclusteringTool, JetTruthLabelingTool, JetPileupLabelingTool, HI::HIPileupTool, LundVariablesTool, JetDumper, JetBottomUpSoftDrop, JetRecursiveSoftDrop, JetSoftDrop, JetConstituentsRetriever, JetSubStructureMomentToolsBase, JetSplitter, JetToolRunner, JetPruner, JetPseudojetRetriever, JetTrimmer, AsgHelloTool, and KtDeltaRTool.
Definition at line 131 of file AsgTool.cxx.
 
 
◆ renounce()
◆ renounceArray()
◆ setUseIncidents()
  
  | 
        
          | void asg::AsgMetadataTool::setUseIncidents | ( | const bool | flag | ) |  |  | inlineprotectedinherited | 
 
 
◆ 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 115 of file AsgMetadataTool.cxx.
  117 #ifndef XAOD_STANDALONE 
  124          incSvc->addListener( 
this, IncidentType::BeginEvent, 0, 
false );
 
  129 #endif // not XAOD_STANDALONE 
  132       return StatusCode::SUCCESS;
 
 
 
 
◆ sysStart()
Handle START transition. 
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container. 
 
 
◆ updateVHKA()
◆ 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_completeContainers
◆ m_cutFlowSvc
◆ m_cutFlowSvcPrivate
  
  | 
        
          | CutFlowSvc* BookkeeperTool::m_cutFlowSvcPrivate {} |  | private | 
 
 
◆ m_detStore
◆ m_evtStore
◆ m_incompleteContainers
◆ m_inputCollName
  
  | 
        
          | Gaudi::Property<std::string> BookkeeperTool::m_inputCollName |  | private | 
 
Initial value:{this, "InputCollName", "CutBookkeepers",
    "The default name of the xAOD::CutBookkeeperContainer for input files"}
The name of the input CutBookkeeperContainer. 
Definition at line 92 of file BookkeeperTool.h.
 
 
◆ m_inputContainers
◆ m_inputMetaStore
◆ m_numberOfWeightVariations
  
  | 
        
          | size_t BookkeeperTool::m_numberOfWeightVariations {} |  | private | 
 
 
◆ m_outputCollName
  
  | 
        
          | Gaudi::Property<std::string> BookkeeperTool::m_outputCollName |  | private | 
 
Initial value:{this, "OutputCollName", "CutBookkeepers",
    "The default name of the xAOD::CutBookkeeperContainer for output files"}
The name of the output CutBookkeeperContainer. 
Definition at line 96 of file BookkeeperTool.h.
 
 
◆ m_outputMetaStore
◆ m_useIncidents
  
  | 
        
          | bool asg::AsgMetadataTool::m_useIncidents |  | privateinherited | 
 
 
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
 
def retrieve(aClass, aKey=None)
CondAttrListCollection * at(unsigned int i) const
Element access.
StatusCode parse(std::tuple< Tup... > &tup, const Gaudi::Parsers::InputData &input)
const CutBookkeepersLocalCache & getCutBookkeepers() const
Get CutBookkeepers cache.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool msgLvl(const MSG::Level lvl) const
std::vector< std::unique_ptr< xAOD::CutBookkeeperContainer > > cont
#define ATH_MSG_VERBOSE(x)
std::string to_string(const SectorProjector proj)
size_type size() const
size of payload vector
virtual void setOwner(IDataHandleHolder *o)=0
static void prepareContainers(CutBookkeepersLocalCache &target, size_t size, bool extend=false)
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Helper in-memory structure.
This implements the methods for ICutFlowSvc.
std::vector< std::unique_ptr< xAOD::CutBookkeeperAuxContainer > > aux
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
ChanNum chanNum(unsigned int index) const
channel number for index: (index = 0 to size-1)
Container that holds the Container of all CutBookkeepers.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
void updateContainer(xAOD::CutBookkeeperContainer *contToUpdate, const xAOD::CutBookkeeperContainer *otherCont)
Helper function to update a container with information from another one.
const AttributeList & attributeList(ChanNum chanNum) const
attribute list for a given channel number
xAOD::CutBookkeeperContainer * at(std::size_t n) const
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
size_type size() const
number of Chan/AttributeList pairs
StatusCode setNumberOfWeightVariations(size_t count)
Set number of weight variations.
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
bool empty() const noexcept
Returns true if the collection is empty.