11#ifndef XAOD_STANDALONE
13# include "GaudiKernel/Incident.h"
14# include "GaudiKernel/IIncidentSvc.h"
53 if( event->addListener(
this ).isFailure() ) {
54 ATH_MSG_ERROR(
"Couldn't register the tool for xAOD callbacks" );
58 declareInterface< IIncidentListener >(
this );
72 if( event->removeListener(
this ).isFailure() ) {
79 if(FSMState() == Gaudi::StateMachine::INITIALIZED) {
81 if( incSvc.retrieve().isSuccess() ) {
83 incSvc->removeListener(
this );
85 catch (
const GaudiException&) {
104#ifdef XAOD_STANDALONE
117#ifndef XAOD_STANDALONE
132 return StatusCode::SUCCESS;
145 throw std::runtime_error(
"Couldn't call beginInputFile()" );
150 throw std::runtime_error(
"Couldn't call endInputFile()" );
160 throw std::runtime_error(
"Couldn't call beginInputFile()" );
165 throw std::runtime_error(
"Couldn't call beginEvent()" );
168 #ifdef XAOD_STANDALONE
172 throw std::runtime_error(
"Couldn't call metaDataStop()" );
177 ATH_MSG_WARNING(
"Unknown incident type received in AsgMetaDataTool: " << inc.type() );
188 return StatusCode::SUCCESS;
196 return StatusCode::SUCCESS;
204 return StatusCode::SUCCESS;
212 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_WARNING(x)
static TVirtualEvent * event()
Access the currently active TVirtualEvent object.
Tool for accessing xAOD files outside of Athena.
Base interface for getting objects out of the input file.
static const ::Int_t BeginEvent
A new event was just loaded.
static const ::Int_t EndInputFile
The processing of an input file has finished.
static const ::Int_t MetaDataStop
The metadata for the output file should be written out.
static const ::Int_t BeginInputFile
A new input file was just opened.