ATLAS Offline Software
Loading...
Searching...
No Matches
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

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

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}
float intensityBeam2() const
Get the "intensity" of beam 2 in this bunch crossing.
float intensityBeam1() const
Get the "intensity" of beam 1 in this bunch crossing.
int bcid() const
Get the BCID of this bunch crossing.

◆ 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}