Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
13 #ifndef LUMIBLOCKDATA_BUNCHCROSSINGCONDDATA_H
14 #define LUMIBLOCKDATA_BUNCHCROSSINGCONDDATA_H
341 return m_luminous.test(
bcid);
380 #endif // not COOLLUMIUTILITIES_FILLPARAMSCONDDATA_H
int gapAfterBunch(bcid_type bcid=0, BunchDistanceType type=NanoSec) const
Get the distance of the specified bunch crossing to the next filled bunch.
int distanceFromTail(const bcid_type bcid, const BunchDistanceType type=NanoSec) const
The distance of the specific bunch crossing from the tail of the train.
static constexpr int m_BUNCH_SPACING
static const int m_headTailLength
bool isUnpaired(const bcid_type bcid) const
Function deciding if a given bunch crossing has an unpaired bunch.
Hold mappings of ranges to condition objects.
unsigned int numberOfFilledBunches() 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.
@ NanoSec
Distance in nanoseconds.
BunchCrossingType
Enumeration type for a given bunch crossing.
CONDCONT_MIXED_DEF(BunchCrossingCondData, 157905099)
unsigned int numberOfBunchTrains() const
Get the number of the bunch trains in the current configuration.
unsigned m_nColl
Last BCID of this train.
bunchTrain_t(bcid_type first, bcid_type last, unsigned ncoll)
std::vector< bunchTrain_t > m_trains
int gapBeforeTrain(bcid_type bcid=0, BunchDistanceType type=NanoSec) const
Gap before the train this BCID is in.
std::bitset< m_MAX_BCID > m_beam1
std::bitset< m_MAX_BCID > m_luminous
int gapBeforeBunch(bcid_type bcid=0, BunchDistanceType type=NanoSec) const
Get the distance of the specified bunch crossing to the preceeding filled bunch.
bool const RAWDATA *ch2 const
BunchDistanceType
Enumeration specifying the units in which to expect the bunch distance type.
@ FirstEmpty
The first empty bunch after a train.
@ Tail
The BCID belongs to the last few bunces in a train.
static constexpr int m_MAX_BCID
@ BunchCrossings
Distance in units of 25 nanoseconds.
int m_last
First BCID of this train.
@ MiddleEmpty
An empty BCID in the middle of a train.
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.
int distanceFromFront(const bcid_type bcid, const BunchDistanceType type=NanoSec) const
The distance of the specific bunch crossing from the front of the train.
unsigned countColliding(int from, int to) const
Helper method to count colliding bunches in the range from-to.
@ FilledBunches
Distance in units of filled bunches (depends on filling scheme)
bool isBeam1(const bcid_type bcid) const
Function deciding if there was a bunch from "beam 1" in this bunch crossing.
setEventNumber setTimeStamp bcid
@ Front
The BCID belongs to the first few bunches in a train.
bool isInTrain(const bcid_type bcid) const
Function deciding if a given bunch crossing is in a filled train.
Conditions algorithm to unpack fill parameters from COOL.
@ Single
This is a filled, single bunch (not in a train)
@ Unpaired
This is an unpaired bunch (either beam1 or beam2)
BunchCrossingType bcType(const bcid_type bcid) const
Convenience function for the type of the specific bunch crossing.
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
const bunchTrain_t * findTrain(const bcid_type bcid) const
Helper method to find the train of a bcid (nullptr if bcd is not in a train)
std::pair< unsigned, unsigned > bunchTrainPopulation(const bcid_type bcid) const
Get colliding and total bcids in a train.
std::bitset< m_MAX_BCID > m_beam2
macros to associate a CLID to a type
@ Middle
The BCID belongs to the middle bunches in a train.
bool isFilled(const bcid_type bcid) const
The simplest query: Is the bunch crossing filled or not?
@ Empty
An empty bunch far away from filled bunches.