5#include "GaudiKernel/GaudiException.h"
6#include "GaudiKernel/MsgStream.h"
16 "Unknown" ,
"Signal" ,
"MinimumBias" ,
"Cavern" ,
17 "HaloGas" ,
"HighPtMinimumBias" ,
"ZeroBias"
21 return typNam[typ + 1];
47 std::ostringstream merr;
49 "PileUpTimeEventIndex::ushortToType FATAL: invalid PileUpType specified "
51 std::cerr << merr.str() << std::endl;
52 throw GaudiException(merr.str(),
"PileUpTimeEventIndex::ushortToType", StatusCode::FAILURE);
67 m_time((short) time), m_index((short)
index), m_type(typ) {}
88 return os <<
"event xing time (ns): " << idx.time()
89 <<
" - PileUpEventInfo subevt index: " << idx.index()
96 return os <<
"event xing time (ns): " << idx.time()
97 <<
" - PileUpEventInfo subevt index: " << idx.index()
std::ostream & operator<<(std::ostream &os, const PileUpTimeEventIndex &idx)
a struct encapsulating the identifier of a pile-up event
index_type index() const
the index of the component event in PileUpEventInfo
static PileUpType ushortToType(unsigned short)
PileUpType type() const
the pileup type - minbias, cavern, beam halo, signal?
time_type time() const
bunch xing time in ns
static const std::string & typeName(PileUpType typ)