21 return StatusCode::FAILURE;
27 return StatusCode::SUCCESS;
34 const EventContext& ctx = Gaudi::Hive::currentContext();
42 out <<
"\nTimestamp:" << ctx.eventID().time_stamp() <<
" ns:" << ctx.eventID().time_stamp_ns_offset() << std::endl;
44 for (
unsigned bcid=0;bcid<4;++bcid) {
51 return StatusCode::SUCCESS;
57 out <<
"BCID " << bcid<<
" LB "<<bccd->
GetRunLB();
#define ATH_CHECK
Evaluate an expression and check for errors.
unsigned long long GetRunLB() const
float GetBeam2IntensityBCID(const bcid_type bcid, int channel) const
float GetBeam1IntensityBCID(const bcid_type bcid, int channel) const
SG::ReadCondHandleKey< BunchCrossingIntensityCondData > m_inputKey
virtual StatusCode execute()
Function called once per event.
static void printInfo(const BunchCrossingIntensityCondData *bccd, unsigned int bcid, std::ostream &out, int channel)
Function for printing detailed info about a given bunch crossing.
virtual StatusCode initialize()
Initialization run before the event loop.
Gaudi::Property< std::string > m_fileName