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;
46 for (
unsigned bcid=0;bcid<3564;++bcid) {
54 return StatusCode::SUCCESS;
60 out <<
"BCID " << bcid;
61 out <<
" Filled=" << bccd->
isFilled(bcid) <<
", isInTrain=" << bccd->
isInTrain(bcid)
63 <<
", isBeam1="<< bccd->
isBeam1(bcid) <<
", isBeam2=" <<bccd->
isBeam2(bcid);
78 out << (bccd->
isFilled(bcid) ?
"F" :
" ");
79 out << (bccd->
isInTrain(bcid) ?
"T" :
" ");
81 out << (bccd->
isBeam1(bcid) ?
"1" :
" ");
82 out << (bccd->
isBeam2(bcid) ?
"2" :
" ");
#define ATH_CHECK
Evaluate an expression and check for errors.
int distanceFromFront(const bcid_type bcid, const BunchDistanceType type=NanoSec) const
The distance of the specific bunch crossing from the front of the train.
bool isBeam1(const bcid_type bcid) const
Function deciding if there was a bunch from "beam 1" in this bunch crossing.
unsigned int numberOfUnpairedBunches() const
Get the number of unpaired bunches in the current configuration.
bool isBeam2(const bcid_type bcid) const
Function deciding if there was a bunch from "beam 2" in this bunch crossing.
bool isInTrain(const bcid_type bcid) const
Function deciding if a given bunch crossing is in a filled train.
int distanceFromTail(const bcid_type bcid, const BunchDistanceType type=NanoSec) const
The distance of the specific bunch crossing from the tail of the train.
bool isFilled(const bcid_type bcid) const
The simplest query: Is the bunch crossing filled or not?
unsigned int numberOfBunchTrains() const
Get the number of the bunch trains in the current configuration.
bool isUnpaired(const bcid_type bcid) const
Function deciding if a given bunch crossing has an unpaired bunch.
int gapBeforeTrain(bcid_type bcid=0, BunchDistanceType type=NanoSec) const
Gap before the train this BCID is in.
int gapAfterTrain(bcid_type bcid=0, BunchDistanceType type=NanoSec) const
Gap after the train this BCID is in.
static void printInfo(const BunchCrossingCondData *bccd, unsigned int bcid, std::ostream &out)
Function for printing detailed info about a given bunch crossing.
Gaudi::Property< std::string > m_fileName
static void printCompactInfo(const BunchCrossingCondData *bccd, unsigned int bcid, std::ostream &out)
SG::ReadCondHandleKey< BunchCrossingCondData > m_inputKey
virtual StatusCode initialize()
Initialization run before the event loop.
virtual StatusCode execute()
Function called once per event.
Gaudi::Property< bool > m_compact