|
ATLAS Offline Software
|
Go to the documentation of this file.
8 #ifndef TRIGBUNCHCROSSINGTOOL_BUNCHTRAIN_H
9 #define TRIGBUNCHCROSSINGTOOL_BUNCHTRAIN_H
79 #endif // TRIGBUNCHCROSSINGTOOL_BUNCHTRAIN_H
A smart set of BunchCrossing objects.
bool isInside(const BunchCrossing &bc) const
Check if a bunch crossing is inside this train.
The common trigger namespace for trigger analysis tools.
const_iterator m_front
Iterator pointing to the first bunch.
bool validate()
Check the spacing of the bunches in the train.
const_iterator train_back() const
Iterator pointing to the last bunch in the train.
BunchTrain & operator=(const BunchTrain &rhs)
Assignment operator.
bool m_gapFound
Flag specifying if the train spreads over the "BCID turnover".
int m_spacing
Spacing of the bunches in nanoseconds.
bool operator<(const BunchTrain &bt1, const BunchTrain &bt2)
This operator is here to be able to put BunchTrain objects into ordered containers like std::set and ...
int distance(const BunchCrossing &bc) const
"Distance" of a bunch crossing from this bunch train
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.
BunchTrain()
Default constructor.
int spacing() const
Spacing of the bunches in this train in nanoseconds.
const_iterator train_front() const
Iterator pointing to the first bunch in the train.
const_iterator m_back
Iterator pointing to the last bunch.
A smart integer class representing bunch crossings.
std::ostream & operator<<(std::ostream &stream, const Trig::BunchTrain &bt)
Output operator for BunchTrain objects.