ATLAS Offline Software
Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
top::EventSaverxAODNext Class Reference

Write out the selected events in xAOD format. More...

#include <EventSaverxAODNext.h>

Inheritance diagram for top::EventSaverxAODNext:
Collaboration diagram for top::EventSaverxAODNext:

Public Member Functions

 EventSaverxAODNext ()
 
virtual ~EventSaverxAODNext ()
 
virtual void initialize (std::shared_ptr< top::TopConfig > config, TFile *file, const std::vector< std::string > &extraBranches)
 This does some configuration of the output file. More...
 
virtual StatusCode initialize ()
 Dummy implementation of the initialisation function. More...
 
virtual void saveEventToxAOD ()
 
virtual void finalize ()
 xAOD needs to write some more stuff to the file at the end of a job More...
 
virtual void execute ()
 Method to execute any calculations common for reco/particle/parton level. More...
 
virtual void saveEvent (const top::Event &)
 I guess you want to save an event sometimes to. More...
 
virtual void saveTruthEvent ()
 @breif Run for every event More...
 
virtual void saveParticleLevelEvent (const top::ParticleLevelEvent &)
 Function to save the particle level event. More...
 
virtual void saveUpgradeEvent (const top::ParticleLevelEvent &)
 Function to save the upgrade event. More...
 
 ClassDef (top::EventSaverBase, 0)
 
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
 

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 std::map< std::size_t, std::map< unsigned int, unsigned int > > ThinningMap_t
 
typedef ThinningMap_t::const_iterator ThinningMap_Itr
 
typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

std::shared_ptr< ThinningMap_tsavePhotons (const bool saveEventObjects)
 All the saveObject functions work the same way. More...
 
std::shared_ptr< ThinningMap_tsaveElectrons (const bool saveEventObjects)
 
std::shared_ptr< ThinningMap_tsaveMuons (const bool saveEventObjects)
 
std::shared_ptr< ThinningMap_tsaveTaus (const bool saveEventObjects)
 
std::shared_ptr< ThinningMap_tsaveJets (const bool saveEventObjects)
 
std::shared_ptr< ThinningMap_tsaveLargeRJets (const bool saveEventObjects)
 
std::shared_ptr< ThinningMap_tsaveTrackJets (const bool saveEventObjects)
 
std::vector< unsigned int > thinObjectSelection (const std::size_t hashValue, const std::vector< unsigned int > &objectList, const std::shared_ptr< ThinningMap_t > &thinningMap) const
 
 ClassDef (top::EventSaverxAODNext, 0)
 
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

std::shared_ptr< top::TopConfigm_config
 We need access to the configuration file to get the container names. More...
 
TFile * m_outputFile
 We need to hold on to the output file. More...
 
bool m_saveAllObjects
 
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
 

Callback functions helping in metadata reading/writing

void setUseIncidents (const bool flag)
 
virtual void handle (const Incident &inc)
 Function receiving incidents from IncidentSvc/TEvent. More...
 
virtual StatusCode beginInputFile ()
 Function called when a new input file is opened. More...
 
virtual StatusCode endInputFile ()
 Function called when the currently open input file got completely processed. More...
 
virtual StatusCode beginEvent ()
 Function called when a new events is loaded. More...
 
virtual StatusCode metaDataStop ()
 Function called when the tool should write out its metadata. More...
 

Detailed Description

Write out the selected events in xAOD format.

Next generation xAOD output - still in development

Definition at line 20 of file EventSaverxAODNext.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.

◆ ThinningMap_Itr

typedef ThinningMap_t::const_iterator top::EventSaverxAODNext::ThinningMap_Itr
private

Definition at line 65 of file EventSaverxAODNext.h.

◆ ThinningMap_t

typedef std::map<std::size_t, std::map<unsigned int, unsigned int> > top::EventSaverxAODNext::ThinningMap_t
private

Definition at line 64 of file EventSaverxAODNext.h.

Constructor & Destructor Documentation

◆ EventSaverxAODNext()

top::EventSaverxAODNext::EventSaverxAODNext ( )

Definition at line 29 of file EventSaverxAODNext.cxx.

29  :
30  asg::AsgMetadataTool("top::EventSaverxAODNext"),
31  m_config(nullptr),
32  m_outputFile(nullptr),
33  m_saveAllObjects(false) {
34  }

◆ ~EventSaverxAODNext()

top::EventSaverxAODNext::~EventSaverxAODNext ( )
virtual

Definition at line 36 of file EventSaverxAODNext.cxx.

36  {
37  }

Member Function Documentation

◆ 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 196 of file AsgMetadataTool.cxx.

196  {
197 
198  // Return gracefully:
199  return StatusCode::SUCCESS;
200  }

◆ beginInputFile()

StatusCode asg::AsgMetadataTool::beginInputFile ( )
protectedvirtualinherited

Function called when a new input file is opened.

Dummy implementation that can be overridden by the derived tool.

Reimplemented in AsgElectronEfficiencyCorrectionTool, TrigConf::xAODConfigTool, PMGTools::PMGTruthWeightTool, BookkeeperTool, HFORSelectionTool, xAODMaker::FileMetaDataTool, BookkeeperDumperTool, Trig::TrigDecisionTool, xAODMaker::TriggerMenuMetaDataTool, xAODMaker::TruthMetaDataTool, Trig::xAODBunchCrossingTool, TauAnalysisTools::TauEfficiencyCorrectionsTool, and TauAnalysisTools::TauSmearingTool.

Definition at line 180 of file AsgMetadataTool.cxx.

180  {
181 
182  // Return gracefully:
183  return StatusCode::SUCCESS;
184  }

◆ ClassDef() [1/2]

top::EventSaverBase::ClassDef ( top::EventSaverBase  ,
 
)
inherited

◆ ClassDef() [2/2]

top::EventSaverxAODNext::ClassDef ( top::EventSaverxAODNext  ,
 
)
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; }

◆ endInputFile()

StatusCode asg::AsgMetadataTool::endInputFile ( )
protectedvirtualinherited

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

Dummy implementation that can be overridden by the derived tool.

Reimplemented in BookkeeperTool, HFORSelectionTool, xAODMaker::FileMetaDataTool, BookkeeperDumperTool, xAODMaker::TriggerMenuMetaDataTool, and xAODMaker::TruthMetaDataTool.

Definition at line 188 of file AsgMetadataTool.cxx.

188  {
189 
190  // Return gracefully:
191  return StatusCode::SUCCESS;
192  }

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

◆ execute()

virtual void top::EventSaverBase::execute ( )
inlinevirtualinherited

Method to execute any calculations common for reco/particle/parton level.

Reimplemented in top::EventSaverFlatNtuple.

Definition at line 48 of file EventSaverBase.h.

48 {return;}

◆ 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

◆ finalize()

void top::EventSaverxAODNext::finalize ( )
virtual

xAOD needs to write some more stuff to the file at the end of a job

Reimplemented from top::EventSaverBase.

Definition at line 653 of file EventSaverxAODNext.cxx.

653  {
654  m_outputFile->Write();
655  top::check(evtStore()->event()->finishWritingTo(
656  m_outputFile), "EventSaverxAODNext::finalise trying to call finishWritingTo");
657  }

◆ 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() [1/2]

virtual StatusCode top::EventSaverxAODNext::initialize ( )
inlinevirtual

Dummy implementation of the initialisation function.

It's here to allow the dual-use tools to skip defining an initialisation function. Since many are doing so...

Reimplemented from asg::AsgTool.

Definition at line 47 of file EventSaverxAODNext.h.

47 {return StatusCode::SUCCESS;}

◆ initialize() [2/2]

void top::EventSaverxAODNext::initialize ( std::shared_ptr< top::TopConfig config,
TFile *  file,
const std::vector< std::string > &  extraBranches 
)
virtual

This does some configuration of the output file.

It also keeps track of which branches should be saved.

You surely don't need all the branches, but if you do remove the corresponding line.

We can't do much in the constructor, like I would like, because we're letting root make this. So instead we have a function here.

Parameters
configThe top::TopConfig object that contains lots of settings and stuff.
fileThe output TFile that you want to save things to.
extraBranchesList of extra branches that (currently) are attached to EventInfo. e.g. the branch that tells you if an event passed a certain selection. If you add it here, it'll be written to the output file.

Implements top::EventSaverBase.

Definition at line 39 of file EventSaverxAODNext.cxx.

40  {
41  m_config = config;
43  top::check(evtStore()->event()->writeTo(m_outputFile), "EventSaverxAODNext trying to call writeTo on output file");
44 
45  // Persist the top::TopConfig settings - we'll need this to make sense of the output when reading it back
46  top::check(outputMetaStore()->record(
47  m_config->createPersistentSettings(), "TopPersistentSettings"),
48  "Failed to save TopPersistentSettings");
49  auto* const settings = top::ConfigurationSettings::get();
50 
51  //EventInfo
52  std::string eventInfoList = settings->value("EventVariableSaveList");
53  if (config->isMC()) eventInfoList += ".mcChannelNumber.mcEventWeights";
54 
55  //Add extra branches - e.g. if it passed the ee / mumu / emu selection per event
56  for (const auto& branchName : extraBranches)
57  eventInfoList += "." + branchName;
58 
59  evtStore()->event()->setAuxItemList("EventInfoAux.", eventInfoList);
60 
61  // Photons
62  if (m_config->usePhotons()) {
63  std::string photonVariableSaveList = settings->value("PhotonVariableSaveList");
64  if (config->isMC()) {
65  photonVariableSaveList += ".truthType.truthOrigin";
66  }
67 
68  for (const auto& currentSystematic : *m_config->systSgKeyMapPhotons()) {
69  std::string sgKey = currentSystematic.second;
70  evtStore()->event()->setAuxItemList(sgKey + "Aux.", photonVariableSaveList);
71  }
72  } // Photons
73 
74  // Electrons
75  if (m_config->useElectrons()) {
76  std::string electronVariableSaveList = settings->value("ElectronVariableSaveList");
77  if (config->isMC()) {
78  electronVariableSaveList += ".truthType.truthOrigin";
79  }
80 
81  for (const auto& currentSystematic : *m_config->systSgKeyMapElectrons()) {
82  std::string sgKey = currentSystematic.second;
83  evtStore()->event()->setAuxItemList(sgKey + "Aux.", electronVariableSaveList);
84  }
85  } // Electrons
86 
87  // Muons
88  if (m_config->useMuons()) {
89  std::string muonVariableSaveList = settings->value("MuonVariableSaveList");
90 
91  // When these variables exist
92  // if (config->isMC()) {
93  // muonVariableSaveList += ".truthType.truthOrigin";
94  // }
95 
96  for (const auto& currentSystematic : *m_config->systSgKeyMapMuons()) {
97  std::string sgKey = currentSystematic.second;
98  evtStore()->event()->setAuxItemList(sgKey + "Aux.", muonVariableSaveList);
99  }
100  } // Muons
101 
102  // Taus
103  if (m_config->useTaus()) {
104  std::string tauVariableSaveList = settings->value("TauVariableSaveList");
105 
106  for (const auto& currentSystematic : *m_config->systSgKeyMapTaus()) {
107  std::string sgKey = currentSystematic.second;
108  evtStore()->event()->setAuxItemList(sgKey + "Aux.", tauVariableSaveList);
109  }
110  } // Taus
111 
112 
113  // Jets
114  if (m_config->useJets()) {
115  std::string jetVariableSaveList = settings->value("JetVariableSaveList");
116 
117  for (const auto& currentSystematic : *m_config->systSgKeyMapJets(false)) {
118  std::string sgKey = currentSystematic.second;
119  evtStore()->event()->setAuxItemList(sgKey + "Aux.", jetVariableSaveList);
120  }
121  }
122 
123  if (m_config->useLargeRJets()) {
124  std::string jetVariableSaveList = settings->value("JetVariableSaveList");
125 
126  for (const auto& currentSystematic : *m_config->systSgKeyMapLargeRJets()) {
127  std::string sgKey = currentSystematic.second;
128  evtStore()->event()->setAuxItemList(sgKey + "Aux.", jetVariableSaveList);
129  }
130  }
131 
132  if (m_config->useTrackJets()) {
133  std::string jetVariableSaveList = settings->value("JetVariableSaveList");
134 
135  for (const auto& currentSystematic : *m_config->systSgKeyMapTrackJets()) {
136  std::string sgKey = currentSystematic.second;
137  evtStore()->event()->setAuxItemList(sgKey + "Aux.", jetVariableSaveList);
138  }
139  }
140 
141  if (m_config->useJets() || m_config->useLargeRJets() || m_config->useTrackJets()) {
142  // B-tagging
143  std::string bTagVariableSaveList = settings->value("BTagVariableSaveList");
144  evtStore()->event()->setAuxItemList("BTagging_AntiKt4EMTopoAux.", bTagVariableSaveList);
145  } // B-tagging
146  }

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

◆ metaDataStop()

StatusCode asg::AsgMetadataTool::metaDataStop ( )
protectedvirtualinherited

Function called when the tool should write out its metadata.

Dummy implementation that can be overridden by the derived tool.

Reimplemented in xAODMaker::FileMetaDataTool, BookkeeperTool, BookkeeperDumperTool, xAODMaker::TriggerMenuMetaDataTool, and xAODMaker::TruthMetaDataTool.

Definition at line 204 of file AsgMetadataTool.cxx.

204  {
205 
206  // Return gracefully:
207  return StatusCode::SUCCESS;
208  }

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

◆ saveElectrons()

std::shared_ptr< std::map< std::size_t, std::map< unsigned int, unsigned int > > > top::EventSaverxAODNext::saveElectrons ( const bool  saveEventObjects)
private

Definition at line 344 of file EventSaverxAODNext.cxx.

345  {
346  std::shared_ptr<ThinningMap_t> thinningMap(new ThinningMap_t);
347  if (m_config->useElectrons()) {
348  for (const auto& currentSystematic : *m_config->systSgKeyMapElectrons()) {
349  std::map<unsigned int, unsigned int> currentSystematicThinningMap;
350  std::string sgKey = currentSystematic.second;
351  const xAOD::ElectronContainer* xaod(nullptr);
352  top::check(evtStore()->retrieve(xaod, sgKey), "Failed to retrieve electrons");
353 
355  SG::IAuxStore* output_aux = evtStore()->event()->recordAux(sgKey + "Aux.");
356  output->setStore(output_aux);
357 
358  if (saveEventObjects) {
359  unsigned int index(0), indexReduced(0);
360  for (const auto *x : *xaod) {
361  bool save(m_saveAllObjects);
362  if (x->isAvailable<char>("passPreORSelection")) {
363  if (x->auxdataConst<char>("passPreORSelection") == 1) {
364  save = true;
365  }
366  }
367  if (x->isAvailable<char>("passPreORSelectionLoose")) {
368  if (x->auxdataConst<char>("passPreORSelectionLoose") == 1) {
369  save = true;
370  }
371  }
372 
373  if (save) {
374  currentSystematicThinningMap.insert(std::make_pair(index, indexReduced));
376  out->makePrivateStore(*x);
377  output->push_back(out);
378  ++indexReduced;
379  }
380  ++index;
381  } // Loop over container
382  // Reset calo cluster links
383  for (std::map<unsigned int, unsigned int>::const_iterator i = currentSystematicThinningMap.begin();
384  i != currentSystematicThinningMap.end(); ++i) {
385  output->at((*i).second)->setCaloClusterLinks(xaod->at((*i).first)->caloClusterLinks());
386  }
387  } // saveEventObjects
388  top::check(evtStore()->event()->record(output, sgKey), "Failed to record xAOD::ElectronContainer");
389  thinningMap->insert(std::make_pair(currentSystematic.first, currentSystematicThinningMap));
390  } // Loop over all systematics
391  } // use object type
392 
393  return thinningMap;
394  }

◆ saveEvent()

virtual void top::EventSaverBase::saveEvent ( const top::Event )
inlinevirtualinherited

I guess you want to save an event sometimes to.

There are multiple ways you might want to do this All methods below are implemented with a simple return This means that you do not need to implement them in your derived class

Parameters
eventThe event in question, in the format used internally.

Reimplemented in top::EventSaverFlatNtuple, and top::EventSaverxAOD.

Definition at line 59 of file EventSaverBase.h.

59 {return;}

◆ saveEventToxAOD()

void top::EventSaverxAODNext::saveEventToxAOD ( )
virtual

Reimplemented from top::EventSaverBase.

Definition at line 148 of file EventSaverxAODNext.cxx.

148  {
149  // Systematic Event
150  const xAOD::SystematicEventContainer* allSystematics(nullptr);
151 
152  top::check(evtStore()->retrieve(allSystematics,
153  m_config->sgKeyTopSystematicEvents()),
154  "Failed to retrieve xAOD::SystematicEventContainer");
155 
156  // Save all reco event objects?
157  // If no systematic in the event passes the event selection
158  // We don't fill the collections - this saves a lot of disk space
159  bool saveEvent(false), saveEventObjects(false);
160  if (!m_config->saveOnlySelectedEvents()) {
161  saveEvent = true;
162  }
163  if (m_config->saveOnlySelectedEvents()) {
164  for (const auto *x : *allSystematics) {
165  if (x->auxdataConst<char>(m_config->passEventSelectionDecoration()) == 1) {
166  saveEvent = true;
167  saveEventObjects = true;
168  break;
169  }
170  }
171  } // Save reco event?
172 
173  if (saveEvent) {
174  //Event Info
175  top::check(evtStore()->event()->copy("EventInfo"), "copying event info failed");
176 
177  // BTagging - can consider thinning this at some point.
178  // Tricky computation as all jet collections need updated ElementLinks
179  top::check(evtStore()->event()->copy("BTagging_AntiKt4EMTopo"), "copying btagging failed");
180 
181  top::check(evtStore()->event()->copy("egammaClusters"), "copying egamma clusters failed");
182 
183  // Object Thinning maps
184  std::shared_ptr<ThinningMap_t> photonThinningMap = savePhotons(saveEventObjects);
185  std::shared_ptr<ThinningMap_t> electronThinningMap = saveElectrons(saveEventObjects);
186  std::shared_ptr<ThinningMap_t> muonThinningMap = saveMuons(saveEventObjects);
187  std::shared_ptr<ThinningMap_t> tauThinningMap = saveTaus(saveEventObjects);
188  std::shared_ptr<ThinningMap_t> jetThinningMap = saveJets(saveEventObjects);
189  std::shared_ptr<ThinningMap_t> largeRJetThinningMap = saveLargeRJets(saveEventObjects);
190  std::shared_ptr<ThinningMap_t> trackJetThinningMap = saveTrackJets(saveEventObjects);
191 
192  // Save SystematicEventContainer
193  xAOD::SystematicEventContainer* allSystematics_output = new xAOD::SystematicEventContainer {};
194  SG::IAuxStore* allSystematics_output_aux = evtStore()->event()->recordAux(
195  m_config->sgKeyTopSystematicEvents() + "Aux.");
196  allSystematics_output->setStore(allSystematics_output_aux);
197  if (saveEventObjects) {
198  for (const auto *systematicPtr : *allSystematics) {
199  if (!(systematicPtr->hashValue() == m_config->nominalHashValue() || m_config->doTightSysts() ||
200  m_config->doLooseSysts())) continue;
202  out->makePrivateStore(*systematicPtr);
203  out->setGoodPhotons(thinObjectSelection(systematicPtr->hashValue(), systematicPtr->goodPhotons(),
204  photonThinningMap));
205  out->setGoodElectrons(thinObjectSelection(systematicPtr->hashValue(), systematicPtr->goodElectrons(),
206  electronThinningMap));
207  out->setGoodMuons(thinObjectSelection(systematicPtr->hashValue(), systematicPtr->goodMuons(),
208  muonThinningMap));
209  out->setGoodTaus(thinObjectSelection(systematicPtr->hashValue(), systematicPtr->goodTaus(), tauThinningMap));
210  out->setGoodJets(thinObjectSelection(systematicPtr->hashValue(), systematicPtr->goodJets(), jetThinningMap));
211  out->setGoodLargeRJets(thinObjectSelection(systematicPtr->hashValue(), systematicPtr->goodLargeRJets(),
212  largeRJetThinningMap));
213  out->setGoodTrackJets(thinObjectSelection(systematicPtr->hashValue(), systematicPtr->goodTrackJets(),
214  trackJetThinningMap));
215  allSystematics_output->push_back(out);
216 
217  // Missing ET
218  xAOD::MissingETContainer* met(nullptr);
219  top::check(evtStore()->retrieve(met, m_config->sgKeyMissingEt(
220  systematicPtr->hashValue())), "Failed to retrieve MET");
221 
223  SG::IAuxStore* output_met_aux =
224  evtStore()->event()->recordAux(m_config->sgKeyMissingEt(systematicPtr->hashValue()) + "Aux.");
225  output_met->setStore(output_met_aux);
226  for (auto x : *met) {
228  out->makePrivateStore(*x);
229  output_met->push_back(out);
230  }
231  top::check(evtStore()->event()->record(output_met, m_config->sgKeyMissingEt(
232  systematicPtr->hashValue())), "Failed to save MET");
233  }
234  }
235  top::check(evtStore()->event()->record(allSystematics_output,
236  m_config->sgKeyTopSystematicEvents()),
237  "Failed to record xAOD::SystematicEventContainer");
238 
239  // Write to disk
240  top::check(evtStore()->event()->fill(), "xAOD::TEvent fill failed");
241  }
242  }

◆ saveJets()

std::shared_ptr< std::map< std::size_t, std::map< unsigned int, unsigned int > > > top::EventSaverxAODNext::saveJets ( const bool  saveEventObjects)
private

Definition at line 490 of file EventSaverxAODNext.cxx.

491  {
492  std::shared_ptr<ThinningMap_t> thinningMap(new ThinningMap_t);
493  if (m_config->useJets()) {
494  for (const auto& currentSystematic : *m_config->systSgKeyMapJets(false)) {
495  std::map<unsigned int, unsigned int> currentSystematicThinningMap;
496  std::string sgKey = currentSystematic.second;
497  const xAOD::JetContainer* xaod(nullptr);
498  top::check(evtStore()->retrieve(xaod, sgKey), "Failed to retrieve jets");
499 
501  SG::IAuxStore* output_aux = evtStore()->event()->recordAux(sgKey + "Aux.");
502  output->setStore(output_aux);
503 
504  if (saveEventObjects) {
505  unsigned int index(0), indexReduced(0);
506  for (const auto *x : *xaod) {
507  bool save(m_saveAllObjects);
508  if (x->isAvailable<char>("passPreORSelection")) {
509  if (x->auxdataConst<char>("passPreORSelection") == 1) {
510  save = true;
511  }
512  }
513  if (x->isAvailable<char>("passPreORSelectionLoose")) {
514  if (x->auxdataConst<char>("passPreORSelectionLoose") == 1) {
515  save = true;
516  }
517  }
518 
519  if (save) {
520  currentSystematicThinningMap.insert(std::make_pair(index, indexReduced));
521  xAOD::Jet* out = new xAOD::Jet {};
522  out->makePrivateStore(*x);
523  output->push_back(out);
524  ++indexReduced;
525  }
526  ++index;
527  } // Loop over container
528 
529  // Reset b-tagging links
530  for (auto i : currentSystematicThinningMap) {
531  const xAOD::Jet *jet = output->at(i.second);
534  }
535 
536  } // saveEventObjects
537  top::check(evtStore()->event()->record(output, sgKey), "Failed to record xAOD::JetContainer");
538  thinningMap->insert(std::make_pair(currentSystematic.first, currentSystematicThinningMap));
539  } // Loop over all systematics
540  } // use object type
541 
542  return thinningMap;
543  }

◆ saveLargeRJets()

std::shared_ptr< std::map< std::size_t, std::map< unsigned int, unsigned int > > > top::EventSaverxAODNext::saveLargeRJets ( const bool  saveEventObjects)
private

Definition at line 545 of file EventSaverxAODNext.cxx.

546  {
547  std::shared_ptr<ThinningMap_t> thinningMap(new ThinningMap_t);
548  if (m_config->useLargeRJets()) {
549  for (const auto& currentSystematic : *m_config->systSgKeyMapLargeRJets()) {
550  std::map<unsigned int, unsigned int> currentSystematicThinningMap;
551  std::string sgKey = currentSystematic.second;
552  const xAOD::JetContainer* xaod(nullptr);
553  top::check(evtStore()->retrieve(xaod, sgKey), "Failed to retrieve LargeRjets");
554 
556  SG::IAuxStore* output_aux = evtStore()->event()->recordAux(sgKey + "Aux.");
557  output->setStore(output_aux);
558 
559  if (saveEventObjects) {
560  unsigned int index(0), indexReduced(0);
561  for (const auto *x : *xaod) {
562  bool save(m_saveAllObjects);
563  if (x->isAvailable<char>("passPreORSelection")) {
564  if (x->auxdataConst<char>("passPreORSelection") == 1) {
565  save = true;
566  }
567  }
568  if (x->isAvailable<char>("passPreORSelectionLoose")) {
569  if (x->auxdataConst<char>("passPreORSelectionLoose") == 1) {
570  save = true;
571  }
572  }
573 
574  if (save) {
575  currentSystematicThinningMap.insert(std::make_pair(index, indexReduced));
576  xAOD::Jet* out = new xAOD::Jet {};
577  out->makePrivateStore(*x);
578  output->push_back(out);
579  ++indexReduced;
580  }
581  ++index;
582  } // Loop over container
583 
584  // Reset b-tagging links
585  for (auto i : currentSystematicThinningMap) {
586  const xAOD::Jet *jet = output->at(i.second);
589  }
590  } // saveEventObjects
591  top::check(evtStore()->event()->record(output, sgKey), "Failed to record xAOD::JetContainer");
592  thinningMap->insert(std::make_pair(currentSystematic.first, currentSystematicThinningMap));
593  } // Loop over all systematics
594  } // use object type
595 
596  return thinningMap;
597  }

◆ saveMuons()

std::shared_ptr< std::map< std::size_t, std::map< unsigned int, unsigned int > > > top::EventSaverxAODNext::saveMuons ( const bool  saveEventObjects)
private

Definition at line 396 of file EventSaverxAODNext.cxx.

397  {
398  std::shared_ptr<ThinningMap_t> thinningMap(new ThinningMap_t);
399  if (m_config->useMuons()) {
400  for (const auto& currentSystematic : *m_config->systSgKeyMapMuons()) {
401  std::map<unsigned int, unsigned int> currentSystematicThinningMap;
402  std::string sgKey = currentSystematic.second;
403  const xAOD::MuonContainer* xaod(nullptr);
404  top::check(evtStore()->retrieve(xaod, sgKey), "Failed to retrieve muons");
405 
407  SG::IAuxStore* output_aux = evtStore()->event()->recordAux(sgKey + "Aux.");
408  output->setStore(output_aux);
409 
410  if (saveEventObjects) {
411  unsigned int index(0), indexReduced(0);
412  for (const auto *x : *xaod) {
413  bool save(m_saveAllObjects);
414  if (x->isAvailable<char>("passPreORSelection")) {
415  if (x->auxdataConst<char>("passPreORSelection") == 1) {
416  save = true;
417  }
418  }
419  if (x->isAvailable<char>("passPreORSelectionLoose")) {
420  if (x->auxdataConst<char>("passPreORSelectionLoose") == 1) {
421  save = true;
422  }
423  }
424 
425  if (save) {
426  currentSystematicThinningMap.insert(std::make_pair(index, indexReduced));
427  xAOD::Muon* out = new xAOD::Muon {};
428  out->makePrivateStore(*x);
429  output->push_back(out);
430  ++indexReduced;
431  }
432  ++index;
433  } // Loop over container
434  } // saveEventObjects
435  top::check(evtStore()->event()->record(output, sgKey), "Failed to record xAOD::MuonContainer");
436  thinningMap->insert(std::make_pair(currentSystematic.first, currentSystematicThinningMap));
437  } // Loop over all systematics
438  } // use object type
439 
440  return thinningMap;
441  }

◆ saveParticleLevelEvent()

virtual void top::EventSaverBase::saveParticleLevelEvent ( const top::ParticleLevelEvent )
inlinevirtualinherited

Function to save the particle level event.

This function has a default implementation that does ... nothing! This is deliberate since doing so does not force developers of custom EventSaver tools to implement particle level saving.

Parameters
plEventThe particle level event whose contents will be saved.

Reimplemented in top::EventSaverFlatNtuple.

Definition at line 79 of file EventSaverBase.h.

79  {
80  /* Deliberately No-Op */
81  return;
82  }

◆ savePhotons()

std::shared_ptr< std::map< std::size_t, std::map< unsigned int, unsigned int > > > top::EventSaverxAODNext::savePhotons ( const bool  saveEventObjects)
private

All the saveObject functions work the same way.

  • we should probably turn this into a template method at some point

We only save objects that pass the pre overlap removal selection

  • This throws away a lot of objects and saves a lot of disk space

We need to consider every calibration systematic variation

  • Each calibration systematic contains a vector of goodIndices used to form top::Event's
  • We need to re-map these vectors if we throw away objects
  • For example, lets consider a dummy jet systematic:
    • calibrated JetContainer has objects [0,1,2,3,4,5,6,7,8]
    • The pre OR selection cuts keep objects [3,4,7]
    • We only want to save objects [3,4,7], objects [0,1,2,5,6,8] are a waste of disk space
    • The saved objects in the output mini-xAOD become [0,1,2]
    • We need to map [ 3->0 , 4->1 , 7->2 ]
  • This needs to be done for each xAOD::SystematicEvent

Definition at line 297 of file EventSaverxAODNext.cxx.

298  {
299  std::shared_ptr<ThinningMap_t> thinningMap(new ThinningMap_t);
300  if (m_config->usePhotons()) {
301  for (const auto& currentSystematic : *m_config->systSgKeyMapPhotons()) {
302  std::map<unsigned int, unsigned int> currentSystematicThinningMap;
303  std::string sgKey = currentSystematic.second;
304  const xAOD::PhotonContainer* xaod(nullptr);
305  top::check(evtStore()->retrieve(xaod, sgKey), "Failed to retrieve photons");
306 
308  SG::IAuxStore* output_aux = evtStore()->event()->recordAux(sgKey + "Aux.");
309  output->setStore(output_aux);
310 
311  if (saveEventObjects) {
312  unsigned int index(0), indexReduced(0);
313  for (const auto *x : *xaod) {
314  bool save(m_saveAllObjects);
315  if (x->isAvailable<char>("passPreORSelection")) {
316  if (x->auxdataConst<char>("passPreORSelection") == 1) {
317  save = true;
318  }
319  }
320  if (x->isAvailable<char>("passPreORSelectionLoose")) {
321  if (x->auxdataConst<char>("passPreORSelectionLoose") == 1) {
322  save = true;
323  }
324  }
325 
326  if (save) {
327  currentSystematicThinningMap.insert(std::make_pair(index, indexReduced));
328  xAOD::Photon* out = new xAOD::Photon {};
329  out->makePrivateStore(*x);
330  output->push_back(out);
331  ++indexReduced;
332  }
333  ++index;
334  } // Loop over container
335  } // saveEventObjects
336  top::check(evtStore()->event()->record(output, sgKey), "Failed to record xAOD::PhotonContainer");
337  thinningMap->insert(std::make_pair(currentSystematic.first, currentSystematicThinningMap));
338  } // Loop over all systematics;
339  } // use object type
340 
341  return thinningMap;
342  }

◆ saveTaus()

std::shared_ptr< std::map< std::size_t, std::map< unsigned int, unsigned int > > > top::EventSaverxAODNext::saveTaus ( const bool  saveEventObjects)
private

Definition at line 443 of file EventSaverxAODNext.cxx.

444  {
445  std::shared_ptr<ThinningMap_t> thinningMap(new ThinningMap_t);
446  if (m_config->useTaus()) {
447  for (const auto& currentSystematic : *m_config->systSgKeyMapTaus()) {
448  std::map<unsigned int, unsigned int> currentSystematicThinningMap;
449  std::string sgKey = currentSystematic.second;
450  const xAOD::TauJetContainer* xaod(nullptr);
451  top::check(evtStore()->retrieve(xaod, sgKey), "Failed to retrieve taus");
452 
454  SG::IAuxStore* output_aux = evtStore()->event()->recordAux(sgKey + "Aux.");
455  output->setStore(output_aux);
456 
457  if (saveEventObjects) {
458  unsigned int index(0), indexReduced(0);
459  for (const auto *x : *xaod) {
460  bool save(m_saveAllObjects);
461  if (x->isAvailable<char>("passPreORSelection")) {
462  if (x->auxdataConst<char>("passPreORSelection") == 1) {
463  save = true;
464  }
465  }
466  if (x->isAvailable<char>("passPreORSelectionLoose")) {
467  if (x->auxdataConst<char>("passPreORSelectionLoose") == 1) {
468  save = true;
469  }
470  }
471 
472  if (save) {
473  currentSystematicThinningMap.insert(std::make_pair(index, indexReduced));
474  xAOD::TauJet* out = new xAOD::TauJet {};
475  out->makePrivateStore(*x);
476  output->push_back(out);
477  ++indexReduced;
478  }
479  ++index;
480  } // Loop over container
481  } // saveEventObjects
482  top::check(evtStore()->event()->record(output, sgKey), "Failed to record xAOD::TauJetContainer");
483  thinningMap->insert(std::make_pair(currentSystematic.first, currentSystematicThinningMap));
484  } // Loop over all systematics
485  } // use object type
486 
487  return thinningMap;
488  }

◆ saveTrackJets()

std::shared_ptr< std::map< std::size_t, std::map< unsigned int, unsigned int > > > top::EventSaverxAODNext::saveTrackJets ( const bool  saveEventObjects)
private

Definition at line 599 of file EventSaverxAODNext.cxx.

600  {
601  std::shared_ptr<ThinningMap_t> thinningMap(new ThinningMap_t);
602  if (m_config->useTrackJets()) {
603  for (const auto& currentSystematic : *m_config->systSgKeyMapTrackJets()) {
604  std::map<unsigned int, unsigned int> currentSystematicThinningMap;
605  std::string sgKey = currentSystematic.second;
606  const xAOD::JetContainer* xaod(nullptr);
607  top::check(evtStore()->retrieve(xaod, sgKey), "Failed to retrieve trackjets");
608 
610  SG::IAuxStore* output_aux = evtStore()->event()->recordAux(sgKey + "Aux.");
611  output->setStore(output_aux);
612 
613  if (saveEventObjects) {
614  unsigned int index(0), indexReduced(0);
615  for (const auto *x : *xaod) {
616  bool save(m_saveAllObjects);
617  if (x->isAvailable<char>("passPreORSelection")) {
618  if (x->auxdataConst<char>("passPreORSelection") == 1) {
619  save = true;
620  }
621  }
622  if (x->isAvailable<char>("passPreORSelectionLoose")) {
623  if (x->auxdataConst<char>("passPreORSelectionLoose") == 1) {
624  save = true;
625  }
626  }
627 
628  if (save) {
629  currentSystematicThinningMap.insert(std::make_pair(index, indexReduced));
630  xAOD::Jet* out = new xAOD::Jet {};
631  out->makePrivateStore(*x);
632  output->push_back(out);
633  ++indexReduced;
634  }
635  ++index;
636  } // Loop over container
637 
638  // Reset b-tagging links
639  for (auto i : currentSystematicThinningMap) {
640  const xAOD::Jet *jet = output->at(i.second);
643  }
644  } // saveEventObjects
645  top::check(evtStore()->event()->record(output, sgKey), "Failed to record xAOD::JetContainer");
646  thinningMap->insert(std::make_pair(currentSystematic.first, currentSystematicThinningMap));
647  } // Loop over all systematics
648  } // use object type
649 
650  return thinningMap;
651  }

◆ saveTruthEvent()

virtual void top::EventSaverBase::saveTruthEvent ( )
inlinevirtualinherited

@breif Run for every event

This fills, if requested, the: MC truth record PDF info TopPartons

Reimplemented in top::EventSaverFlatNtuple.

Definition at line 70 of file EventSaverBase.h.

70 {return;}

◆ saveUpgradeEvent()

virtual void top::EventSaverBase::saveUpgradeEvent ( const top::ParticleLevelEvent )
inlinevirtualinherited

Function to save the upgrade event.

This function has a default implementation that does ... nothing! This is deliberate since doing so does not force developers of custom EventSaver tools to implement upgrade saving.

Parameters
upgradeEventThe upgrade event whose contents will be saved.

Definition at line 91 of file EventSaverBase.h.

91  {
92  /* Deliberately No-Op */
93  return;
94  }

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

◆ thinObjectSelection()

std::vector< unsigned int > top::EventSaverxAODNext::thinObjectSelection ( const std::size_t  hashValue,
const std::vector< unsigned int > &  objectList,
const std::shared_ptr< ThinningMap_t > &  thinningMap 
) const
private

Definition at line 244 of file EventSaverxAODNext.cxx.

247  {
248  // reduced output
249  std::vector<unsigned int> out;
250 
251  // Find the correct systematic in the thinningMap
252  ThinningMap_Itr Itr = thinningMap->find(hashValue);
253  // If the systematic is not in the map, then we use the nominal hashValue
254  // This happens, for example, when we look at a jet systematic and are looping over electrons
255  if (Itr == thinningMap->end()) {
256  Itr = thinningMap->find(m_config->nominalHashValue());
257  }
258 
259  // double check that we have a valid systematic
260  if (Itr != thinningMap->end()) {
261  // Get the relevant thinningMap for this specific systematic
262  std::map<unsigned int, unsigned int> currentSystematicThinningMap = (*Itr).second;
263 
264  // Loop over the original good object list, this contains information about objects we are not going to save
265  // Use the thinningMap to build a new good object list based on the objects we are saving
266  for (auto i : objectList) {
267  std::map<unsigned int, unsigned int>::const_iterator Itr2 = currentSystematicThinningMap.find(i);
268  if (Itr2 != currentSystematicThinningMap.end()) {
269  out.push_back((*Itr2).second);
270  }
271  }
272  }
273 
274  return out;
275  }

◆ 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

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

std::shared_ptr<top::TopConfig> top::EventSaverxAODNext::m_config
private

We need access to the configuration file to get the container names.

Definition at line 56 of file EventSaverxAODNext.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_inputMetaStore

MetaStore_t asg::AsgMetadataTool::m_inputMetaStore
privateinherited

Object accessing the input metadata store.

Definition at line 119 of file AsgMetadataTool.h.

◆ m_outputFile

TFile* top::EventSaverxAODNext::m_outputFile
private

We need to hold on to the output file.

Definition at line 59 of file EventSaverxAODNext.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_saveAllObjects

bool top::EventSaverxAODNext::m_saveAllObjects
private

Definition at line 61 of file EventSaverxAODNext.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
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
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
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
top::EventSaverxAODNext::thinObjectSelection
std::vector< unsigned int > thinObjectSelection(const std::size_t hashValue, const std::vector< unsigned int > &objectList, const std::shared_ptr< ThinningMap_t > &thinningMap) const
Definition: EventSaverxAODNext.cxx:244
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
xAOD::BTaggingUtilities::setBTaggingLink
void setBTaggingLink(const SG::AuxElement &part, const ElementLink< xAOD::BTaggingContainer > &el)
Set the default xAOD::BTagging link for an object.
Definition: BTaggingUtilities.cxx:64
index
Definition: index.py:1
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
top::EventSaverxAODNext::m_config
std::shared_ptr< top::TopConfig > m_config
We need access to the configuration file to get the container names.
Definition: EventSaverxAODNext.h:56
top::EventSaverxAODNext::m_outputFile
TFile * m_outputFile
We need to hold on to the output file.
Definition: EventSaverxAODNext.h:59
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
top::EventSaverxAODNext::ThinningMap_Itr
ThinningMap_t::const_iterator ThinningMap_Itr
Definition: EventSaverxAODNext.h:65
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
top::EventSaverBase::saveEvent
virtual void saveEvent(const top::Event &)
I guess you want to save an event sometimes to.
Definition: EventSaverBase.h:59
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
asg::AsgMetadataTool::endInputFile
virtual StatusCode endInputFile()
Function called when the currently open input file got completely processed.
Definition: AsgMetadataTool.cxx:188
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
top::EventSaverxAODNext::saveLargeRJets
std::shared_ptr< ThinningMap_t > saveLargeRJets(const bool saveEventObjects)
Definition: EventSaverxAODNext.cxx:545
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
x
#define x
xAOD::Muon_v1
Class describing a Muon.
Definition: Muon_v1.h:38
config
Definition: PhysicsAnalysis/AnalysisCommon/AssociationUtils/python/config.py:1
python.iconfTool.models.loaders.level
level
Definition: loaders.py:20
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:85
checkTP.save
def save(self, fileName="./columbo.out")
Definition: checkTP.py:178
top::EventSaverxAODNext::saveTrackJets
std::shared_ptr< ThinningMap_t > saveTrackJets(const bool saveEventObjects)
Definition: EventSaverxAODNext.cxx:599
met
Definition: IMETSignificance.h:24
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
lumiFormat.i
int i
Definition: lumiFormat.py:92
top::EventSaverxAODNext::saveElectrons
std::shared_ptr< ThinningMap_t > saveElectrons(const bool saveEventObjects)
Definition: EventSaverxAODNext.cxx:344
top::ConfigurationSettings::get
static ConfigurationSettings * get(bool reset=false)
Design patterns 101.
Definition: ConfigurationSettings.cxx:714
xAOD::TauJet_v3
Class describing a tau jet.
Definition: TauJet_v3.h:41
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
file
TFile * file
Definition: tile_monitor.h:29
xAOD::MissingET_v1
Principal data object for Missing ET.
Definition: MissingET_v1.h:25
plotIsoValidation.el
el
Definition: plotIsoValidation.py:197
asg::AsgMetadataTool::metaDataStop
virtual StatusCode metaDataStop()
Function called when the tool should write out its metadata.
Definition: AsgMetadataTool.cxx:204
top::check
void check(bool thingToCheck, const std::string &usefulFailureMessage)
Print an error message and terminate if thingToCheck is false.
Definition: EventTools.cxx:15
python.xAODType.dummy
dummy
Definition: xAODType.py:4
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
top::EventSaverxAODNext::saveTaus
std::shared_ptr< ThinningMap_t > saveTaus(const bool saveEventObjects)
Definition: EventSaverxAODNext.cxx:443
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
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
xAOD::MissingETContainer_v1
Container for xAOD::MissingET_v1 objects.
Definition: MissingETContainer_v1.h:21
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
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:192
DataVector::push_back
value_type push_back(value_type pElem)
Add an element to the end of the collection.
top::EventSaverxAODNext::saveMuons
std::shared_ptr< ThinningMap_t > saveMuons(const bool saveEventObjects)
Definition: EventSaverxAODNext.cxx:396
xAOD::Electron_v1
Definition: Electron_v1.h:34
SG::IAuxStore
Interface for non-const operations on an auxiliary store.
Definition: IAuxStore.h:48
xAOD::Jet_v1
Class describing a jet.
Definition: Jet_v1.h:57
top::EventSaverxAODNext::savePhotons
std::shared_ptr< ThinningMap_t > savePhotons(const bool saveEventObjects)
All the saveObject functions work the same way.
Definition: EventSaverxAODNext.cxx:297
DeMoScan.index
string index
Definition: DeMoScan.py:362
a
TList * a
Definition: liststreamerinfos.cxx:10
xAOD::SystematicEvent
SystematicEvent A simple xAOD class which we can persist into a mini-xAOD The xAOD EDM is way too com...
Definition: SystematicEvent.h:27
h
xAOD::Photon_v1
Definition: Photon_v1.h:37
asg::AsgMetadataTool
Base class for dual-use tools that provide file metadata access.
Definition: AsgMetadataTool.h:48
lumiFormat.fill
fill
Definition: lumiFormat.py:111
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
top::EventSaverxAODNext::ThinningMap_t
std::map< std::size_t, std::map< unsigned int, unsigned int > > ThinningMap_t
Definition: EventSaverxAODNext.h:64
asg::AsgMetadataTool::outputMetaStore
MetaStorePtr_t outputMetaStore() const
Accessor for the output metadata store.
Definition: AsgMetadataTool.cxx:97
config
std::vector< std::string > config
Definition: fbtTestBasics.cxx:72
AthCommonMsg< AlgTool >::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:616
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
calibdata.copy
bool copy
Definition: calibdata.py:27
top::EventSaverxAODNext::m_saveAllObjects
bool m_saveAllObjects
Definition: EventSaverxAODNext.h:61
SG::DataProxy
Definition: DataProxy.h:44
xAOD::BTaggingUtilities::getBTaggingLink
const ElementLink< xAOD::BTaggingContainer > & getBTaggingLink(const SG::AuxElement &part)
Access the default xAOD::BTagging link for an object.
Definition: BTaggingUtilities.cxx:50
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
top::EventSaverxAODNext::saveJets
std::shared_ptr< ThinningMap_t > saveJets(const bool saveEventObjects)
Definition: EventSaverxAODNext.cxx:490