|
ATLAS Offline Software
|
Go to the documentation of this file.
18 #include "EventInfo/EventInfo.h"
24 #include "GaudiKernel/IIncidentSvc.h"
28 ISvcLocator *pSvcLocator) :
36 SmartIF<IIncidentSvc> incSvc{Gaudi::svcLocator()->service(
"IncidentSvc")};
39 incSvc->addListener(
this,
"EndEvent", pri);
41 return StatusCode::SUCCESS;
47 ATH_MSG_DEBUG(
"PileUpEventInfoWriter::execute() - do nothing" );
54 <<
evt->event_ID()->run_number() <<
","
55 <<
evt->event_ID()->event_number() <<
":"
56 <<
evt->event_ID()->time_stamp() <<
"] " );
58 <<
evt->event_type()->user_type() );
61 evt->event_ID()->event_number());
72 << pevt->
event_ID()->run_number() <<
","
73 << pevt->
event_ID()->event_number() <<
":"
74 << pevt->
event_ID()->time_stamp() <<
"] ");
88 << (*it).time() <<
" " << (*it).index());
91 << sevt->
event_ID()->run_number() <<
","
92 << sevt->
event_ID()->event_number() <<
":"
93 << sevt->
event_ID()->time_stamp() <<
"] ");
105 return StatusCode::SUCCESS;
112 ATH_MSG_DEBUG(
"entering handle(), incidence type " << inc.type()
113 <<
" from " << inc.source() );
116 if (inc.type() !=
"EndEvent")
return;
124 throw GaudiException(
"PileUpEventInfoWriter::handle Could not get pileup event info",
125 "PileUpEventInfoWriter", StatusCode::FAILURE);
130 throw GaudiException(
"PileUpEventInfoWriter::handle Could not remove pileup event info",
131 "PileUpEventInfoWriter", StatusCode::FAILURE);
146 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
std::string user_type(void) const
Access to user type.
This class provides information about an overlaid event. It extends EventInfo with a list of sub-evts...
virtual StatusCode finalize()
Algorithm finalize at end of job.
This class represents the "type of event" where the type is given by one or more "characteristics".
PileUpEventInfoWriter()
Avoid use of default constructor.
This class provides general information about an event. It extends EventInfo with a list of sub-evts ...
virtual StatusCode initialize()
Algorithm initialize at begin of job.
virtual StatusCode execute()
Algorithm execute once per event.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
SubEvent::iterator beginSubEvt()
This class provides a unique identification for each event, in terms of run/event number and/or a tim...
Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Old PileUpEventInfo
::StatusCode StatusCode
StatusCode definition for legacy code.
EventID * event_ID()
the unique identification of the event.
void addSubEvt(time_type t, PileUpTimeEventIndex::PileUpType puType, const EventInfo *pse, StoreGateSvc *psg)
setter for the subEvt collection t=0(ns) for the original event
This class provides general information about an event. Event information is provided by the accessor...
Test reading of PileUpEventInfo.
This class provides information about an overlaid event. It extends EventInfo with a list of sub-evts...
void set_user_type(const std::string &user_type)
Add user (string) type.
std::list< SubEvent >::const_iterator const_iterator
void handle(const Incident &incident)
incident service handle for EndEvent
This class provides a unique identification for each event, in terms of run/event number and/or a tim...
EventType * event_type()
the type of the event, e.g. simulation, testbeam, etc
SubEvent::iterator endSubEvt()