51 return StatusCode::FAILURE;
53 if (data.m_event !=
nullptr || data.m_tstore !=
nullptr) {
55 return StatusCode::FAILURE;
59 if (!data.m_inputFile) {
60 ANA_MSG_ERROR (
"File is not available during initialization?!?");
61 return StatusCode::FAILURE;
70 ATH_MSG_ERROR(
"cannot read from file: " << *data.m_inputFile->GetName());
71 return StatusCode::FAILURE;
75 ATH_MSG_DEBUG(
"EventModule::onFirstInputFile: opened " << data.m_inputFile->GetName());
88 return StatusCode::SUCCESS;
96 return StatusCode::FAILURE;
100 return StatusCode::SUCCESS;
107 return StatusCode::FAILURE;
113 return StatusCode::FAILURE;
116 return StatusCode::SUCCESS;
123 return StatusCode::FAILURE;
126 return StatusCode::SUCCESS;
133 if (
m_event->getEntry (data.m_inputEntry) < 0)
136 return StatusCode::FAILURE;
138 return StatusCode::SUCCESS;
146 std::unique_ptr<xAOD::ReadStats> stats
150 data.addOutput (std::move (stats));
152 data.m_evtStore =
nullptr;
153 data.m_event =
nullptr;
154 data.m_tstore =
nullptr;
158 return StatusCode::SUCCESS;
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