52 return StatusCode::FAILURE;
54 if (
data.m_event !=
nullptr ||
data.m_tstore !=
nullptr) {
56 return StatusCode::FAILURE;
60 if (!
data.m_inputFile) {
61 ANA_MSG_ERROR (
"File is not available during initialization?!?");
62 return StatusCode::FAILURE;
72 return StatusCode::FAILURE;
76 ATH_MSG_DEBUG(
"EventModule::onFirstInputFile: opened " <<
data.m_inputFile->GetName());
89 return StatusCode::SUCCESS;
97 return StatusCode::FAILURE;
101 return StatusCode::SUCCESS;
108 return StatusCode::FAILURE;
114 return StatusCode::FAILURE;
117 return StatusCode::SUCCESS;
124 return StatusCode::FAILURE;
127 return StatusCode::SUCCESS;
136 return StatusCode::SUCCESS;
144 std::unique_ptr<xAOD::ReadStats> stats
148 data.addOutput (std::move (stats));
150 data.m_evtStore =
nullptr;
151 data.m_event =
nullptr;
152 data.m_tstore =
nullptr;
156 return StatusCode::SUCCESS;
char data[hepevt_bytes_allocation_ATLAS]
#define RCU_THROW_MSG(message)
virtual StatusCode onFirstInputFile(ModuleData &data) override
actions after opening a the first input file
Gaudi::Property< bool > m_summaryReport
virtual StatusCode postFinalize(ModuleData &data) override
actions after algorithms have been finalized
EventModule(const std::string &name)
effects: standard constructor.
virtual StatusCode postCloseInputFile(ModuleData &data) override
actions after CloseInputFile is called on the algorithms
std::unique_ptr< asg::SgEvent > m_evtStore
std::unique_ptr< xAOD::Event > m_event
description: the event structure used
virtual StatusCode onNextInputFile(ModuleData &data) override
actions after opening an input file after the first one
std::unique_ptr< xAOD::TStore > m_store
Gaudi::Property< bool > m_useStats
description: whether we collect D3PDPerfStats statistics
virtual StatusCode onExecute(ModuleData &data) override
actions just before execute is called on algorithms
~EventModule()
effects: standard destructor.
virtual StatusCode onNewInputFile(ModuleData &data) override
actions after opening a new input file
the base class for EventLoop instrumentation module
static const std::string optXAODReadStats
description: the name of the XAODPerfStats object produced as I gather it, as well as the name of the...
static std::unique_ptr< Event > createAndReadFrom(TFile &file)
static method to create an Event object and readFrom a file, given by a TFile.
static IOStats & instance()
Singleton object accessor.
void stop()
Stop the statistics collection.
void start(bool clear=true)
Start the statistics collection.
static PerfStats & instance()
Function accessing the singleton instance.
Class describing the access statistics of a collection of branches.
void enableDataSubmission(bool value)
Function for turning data submission on/off.
static TFileAccessTracer & instance()
Access the singleton instance of this class.
A relatively simple transient store for objects created in analysis.
This module defines the arguments passed from the BATCH driver to the BATCH worker.
::StatusCode StatusCode
StatusCode definition for legacy code.
the data the EventLoop core classes are sharing with the Module implementation