ATLAS Offline Software
Classes | Namespaces | Functions
BunchCrossing.h File Reference
#include <iosfwd>
#include "AsgMessaging/MsgStream.h"
Include dependency graph for BunchCrossing.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Trig::BunchCrossing
 A smart integer class representing bunch crossings. More...
 

Namespaces

 Trig
 The common trigger namespace for trigger analysis tools.
 

Functions

BunchCrossing Trig::operator+ (const BunchCrossing &bc1, const BunchCrossing &bc2)
 Convenience operator taking advantage of the += operator defined in the BunchCrossing class. More...
 
BunchCrossing Trig::operator- (const BunchCrossing &bc1, const BunchCrossing &bc2)
 Convenience operator taking advantage of the -= operator defined in the BunchCrossing class. More...
 
int Trig::distance (const BunchCrossing bc1, const BunchCrossing bc2)
 I need this function only for technical reasons. More...
 
std::ostream & operator<< (std::ostream &out, const Trig::BunchCrossing &bc)
 Output operator for printing BunchCrossing objects. More...
 
MsgStream & operator<< (MsgStream &out, const Trig::BunchCrossing &bc)
 Output operator for printing BunchCrossing objects. More...
 

Function Documentation

◆ operator<<() [1/2]

MsgStream& operator<< ( MsgStream &  out,
const Trig::BunchCrossing bc 
)

Output operator for printing BunchCrossing objects.

Output operator for printing BunchCrossing objects.

Parameters
outA functional MsgStream object
bcThe BunchCrossing object that we want to display
Returns
The same stream object to be able to chain output statements together

Definition at line 433 of file BunchCrossing.cxx.

433  {
434 
435  out << "[id:" << bc.bcid() << ";int1:" << bc.intensityBeam1()
436  << ";int2:" << bc.intensityBeam2() << "]";
437 
438  return out;
439 }

◆ operator<<() [2/2]

std::ostream& operator<< ( std::ostream &  out,
const Trig::BunchCrossing bc 
)

Output operator for printing BunchCrossing objects.

Output operator for printing BunchCrossing objects.

Parameters
outA standard std::ostream object
bcThe BunchCrossing object that we want to display
Returns
The same stream object to be able to chain output statements together

Definition at line 417 of file BunchCrossing.cxx.

417  {
418 
419  out << "[id:" << bc.bcid() << ";int1:" << bc.intensityBeam1()
420  << ";int2:" << bc.intensityBeam2() << "]";
421 
422  return out;
423 }
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
Trig::BunchCrossing::bcid
int bcid() const
Get the BCID of this bunch crossing.
Definition: BunchCrossing.cxx:267
Trig::BunchCrossing::intensityBeam1
float intensityBeam1() const
Get the "intensity" of beam 1 in this bunch crossing.
Definition: BunchCrossing.cxx:291
Trig::BunchCrossing::intensityBeam2
float intensityBeam2() const
Get the "intensity" of beam 2 in this bunch crossing.
Definition: BunchCrossing.cxx:321