Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
34 : m_bcid(
bcid ), m_intensityBeam1( intBeam1 ),
35 m_intensityBeam2( intBeam2 ) {
57 : m_bcid( static_cast<
int >(
bcid ) ), m_intensityBeam1( intBeam1 ),
58 m_intensityBeam2( intBeam2 ) {
76 : m_bcid(
parent.m_bcid ), m_intensityBeam1(
parent.m_intensityBeam1 ),
77 m_intensityBeam2(
parent.m_intensityBeam2 ) {
91 if( &
parent ==
this )
return *
this;
107 BunchCrossing::operator
int&() {
119 BunchCrossing::operator
const int&()
const {
240 return ( *
this - bc );
257 return ( bc - *
this );
302 if( intensity >= 0.0 ) {
306 logger.msg() << MSG::ERROR
307 <<
"Trying to set beam 1 intensity to negative number ("
308 << intensity <<
"). Using 0.0 instead." <<
endmsg;
332 if( intensity >= 0.0 ) {
336 logger.msg() << MSG::ERROR
337 <<
"Trying to set beam 2 intensity to negative number ("
338 << intensity <<
"). Using 0.0 instead." <<
endmsg;
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.
std::ostream & operator<<(std::ostream &out, const Trig::BunchCrossing &bc)
This operator is used to print the configuration of a BunchCrossing object in a nice way.
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.
Class mimicking the AthMessaging class from the offline software.
setEventNumber setTimeStamp bcid
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.