50 return StatusCode::FAILURE;
52 if (data.m_event !=
nullptr || data.m_tstore !=
nullptr) {
54 return StatusCode::FAILURE;
58 if (!data.m_inputFile) {
59 ANA_MSG_ERROR (
"File is not available during initialization?!?");
60 return StatusCode::FAILURE;
69 ATH_MSG_ERROR(
"cannot read from file: " << data.m_inputFile->GetName());
70 return StatusCode::FAILURE;
74 ATH_MSG_DEBUG(
"EventModule::onFirstInputFile: opened " << data.m_inputFile->GetName());
87 return StatusCode::SUCCESS;
95 return StatusCode::FAILURE;
99 return StatusCode::SUCCESS;
106 return StatusCode::FAILURE;
112 return StatusCode::FAILURE;
115 return StatusCode::SUCCESS;
122 return StatusCode::FAILURE;
125 return StatusCode::SUCCESS;
132 if (
m_event->getEntry (data.m_inputEntry) < 0)
135 return StatusCode::FAILURE;
137 return StatusCode::SUCCESS;
148 std::unique_ptr<xAOD::ReadStats> stats
152 data.addOutput (std::move (stats));
154 data.m_evtStore =
nullptr;
155 data.m_event =
nullptr;
156 data.m_tstore =
nullptr;
160 return StatusCode::SUCCESS;
#define ATH_MSG_DEBUG(x,...)
#define ATH_MSG_ERROR(x,...)
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