ATLAS Offline Software
Namespaces | Functions
BunchCrossing.cxx File Reference
#include <iostream>
#include "AsgMessaging/AsgMessaging.h"
#include "TrigBunchCrossingTool/BunchCrossing.h"
Include dependency graph for BunchCrossing.cxx:

Go to the source code of this file.

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)
 This operator is used to print the configuration of a BunchCrossing object in a nice way. More...
 
MsgStream & operator<< (MsgStream &out, const Trig::BunchCrossing &bc)
 This operator is used to print the configuration of a BunchCrossing object in a nice way. More...
 

Function Documentation

◆ operator<<() [1/2]

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

This operator is used to print the configuration of a BunchCrossing object in a nice way.

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 
)

This operator is used to print the configuration of a BunchCrossing object in a nice way.

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