Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
8 #ifndef TRIGBUNCHCROSSINGTOOL_BUNCHCROSSING_H
9 #define TRIGBUNCHCROSSINGTOOL_BUNCHCROSSING_H
40 float intBeam2 = 1.0 );
55 operator const int&()
const;
121 #endif // TRIGBUNCHCROSSINGTOOL_BUNCHCROSSING_H
void setIntensityBeam1(float intensity)
Set the "intensity" of beam 1 in this bunch crossing.
BunchCrossing & operator++()
Operator pushing the object to the next bunch crossing.
int gapFrom(const BunchCrossing &bc) const
Distance from a previous bunch crossing.
static const int MAX_BCID
The maximum number of bunches that can be in the LHC.
BunchCrossing & operator=(const BunchCrossing &parent)
Assignment operator.
The common trigger namespace for trigger analysis tools.
float m_intensityBeam1
Intensity of the bunch in "beam 1" some measure.
float m_intensityBeam2
Intensity of the bunch in "beam 2" some measure.
int distance(const BunchCrossing bc1, const BunchCrossing bc2)
I need this function only for technical reasons.
bool operator==(const BunchCrossing &bc) const
Equality operator for bunch crossings.
static const int BUNCH_SPACING
Minimum spacing between the bunches, in nanoseconds.
int m_bcid
The BCID of this bunch crossing.
void setIntensityBeam2(float intensity)
Set the "intensity" of beam 2 in this bunch crossing.
int bcid() const
Get the BCID of this bunch crossing.
int distance(const BunchCrossing &bc) const
The distance from another bunch crossing.
float intensityBeam1() const
Get the "intensity" of beam 1 in this bunch crossing.
BunchCrossing(int bcid=0, float intBeam1=1.0, float intBeam2=1.0)
Constructor with a value.
float intensityBeam2() const
Get the "intensity" of beam 2 in this bunch crossing.
std::ostream & operator<<(std::ostream &out, const Trig::BunchCrossing &bc)
Output operator for printing BunchCrossing objects.
BunchCrossing operator+(const BunchCrossing &bc1, const BunchCrossing &bc2)
Convenience operator taking advantage of the += operator defined in the BunchCrossing class.
BunchCrossing & operator--()
Operator pushing the object to the previous bunch crossing.
void setBCID(int bcid)
Set the BCID of this bunch crossing.
BunchCrossing & operator-=(const BunchCrossing &bc)
Operator subtracting another BunchCrossing object.
A smart integer class representing bunch crossings.
int gapTo(const BunchCrossing &bc) const
Distance to a following bunch crossing.
BunchCrossing & operator+=(const BunchCrossing &bc)
Operator adding another BunchCrossing object.
BunchCrossing operator-(const BunchCrossing &bc1, const BunchCrossing &bc2)
Convenience operator taking advantage of the -= operator defined in the BunchCrossing class.