Project
Loading...
Searching...
No Matches
o2::BunchFilling Class Reference

#include <BunchFilling.h>

Public Types

using Pattern = std::bitset< o2::constants::lhc::LHCMaxBunches >
 

Public Member Functions

 BunchFilling ()=default
 
 BunchFilling (const std::string &beamA, const std::string &beamC)
 
 BunchFilling (const std::string &interactingBC)
 
const auto & getBCPattern () const
 
const auto & getBeamPattern (int beam) const
 
const auto & getPattern (int dir=-1) const
 
void buckets2BeamPattern (const std::vector< int > &buckets, int ibeam)
 
int getNBunches (int dir=-1) const
 
bool testInteractingBC (int bcID) const
 
bool testBeamBunch (int bcID, int dir) const
 
bool testBC (int bcID, int dir=-1) const
 
void setBC (int bcID, bool active=true, int dir=-1)
 
void setBCTrain (int nBC, int bcSpacing, int firstBC, int dir=-1)
 
void setBCTrains (int nTrains, int trainSpacingInBC, int nBC, int bcSpacing, int firstBC, int dir=-1)
 
void setBCFilling (const std::string &patt, int dir=-1)
 
void setInteractingBCsFromBeams ()
 
int getFirstFilledBC (int dir=-1) const
 
int getLastFilledBC (int dir=-1) const
 
void print (int dir=-2, bool filledOnly=true, int bcPerLine=20) const
 
std::vector< intgetFilledBCs (int dir=-1) const
 
void setDefault ()
 
void mergeWith (o2::BunchFilling const &other)
 

Static Public Member Functions

static Pattern createPattern (const std::string &p)
 
static std::string buckets2PatternString (const std::vector< int > &buckets, int ibeam)
 
static BunchFillingloadFrom (const std::string &fileName, const std::string &objName="")
 

Detailed Description

Definition at line 25 of file BunchFilling.h.

Member Typedef Documentation

◆ Pattern

Definition at line 28 of file BunchFilling.h.

Constructor & Destructor Documentation

◆ BunchFilling() [1/3]

o2::BunchFilling::BunchFilling ( )
default

◆ BunchFilling() [2/3]

BunchFilling::BunchFilling ( const std::string &  beamA,
const std::string &  beamC 
)

Definition at line 21 of file BunchFilling.cxx.

◆ BunchFilling() [3/3]

BunchFilling::BunchFilling ( const std::string &  interactingBC)

Definition at line 29 of file BunchFilling.cxx.

Member Function Documentation

◆ buckets2BeamPattern()

void BunchFilling::buckets2BeamPattern ( const std::vector< int > &  buckets,
int  ibeam 
)

Definition at line 229 of file BunchFilling.cxx.

◆ buckets2PatternString()

std::string BunchFilling::buckets2PatternString ( const std::vector< int > &  buckets,
int  ibeam 
)
static

Definition at line 205 of file BunchFilling.cxx.

◆ createPattern()

BunchFilling::Pattern BunchFilling::createPattern ( const std::string &  p)
static

Definition at line 175 of file BunchFilling.cxx.

◆ getBCPattern()

const auto & o2::BunchFilling::getBCPattern ( ) const
inline

Definition at line 45 of file BunchFilling.h.

◆ getBeamPattern()

const auto & o2::BunchFilling::getBeamPattern ( int  beam) const
inline

Definition at line 48 of file BunchFilling.h.

◆ getFilledBCs()

std::vector< int > BunchFilling::getFilledBCs ( int  dir = -1) const

Definition at line 58 of file BunchFilling.cxx.

◆ getFirstFilledBC()

int BunchFilling::getFirstFilledBC ( int  dir = -1) const

Definition at line 36 of file BunchFilling.cxx.

◆ getLastFilledBC()

int BunchFilling::getLastFilledBC ( int  dir = -1) const

Definition at line 47 of file BunchFilling.cxx.

◆ getNBunches()

int o2::BunchFilling::getNBunches ( int  dir = -1) const
inline

Definition at line 57 of file BunchFilling.h.

◆ getPattern()

const auto & o2::BunchFilling::getPattern ( int  dir = -1) const
inline

Definition at line 51 of file BunchFilling.h.

◆ loadFrom()

BunchFilling * BunchFilling::loadFrom ( const std::string &  fileName,
const std::string &  objName = "" 
)
static

Definition at line 157 of file BunchFilling.cxx.

◆ mergeWith()

void BunchFilling::mergeWith ( o2::BunchFilling const &  other)

Definition at line 84 of file BunchFilling.cxx.

◆ print()

void BunchFilling::print ( int  dir = -2,
bool  filledOnly = true,
int  bcPerLine = 20 
) const

Definition at line 126 of file BunchFilling.cxx.

◆ setBC()

void BunchFilling::setBC ( int  bcID,
bool  active = true,
int  dir = -1 
)

Definition at line 70 of file BunchFilling.cxx.

◆ setBCFilling()

void BunchFilling::setBCFilling ( const std::string &  patt,
int  dir = -1 
)

Definition at line 119 of file BunchFilling.cxx.

◆ setBCTrain()

void BunchFilling::setBCTrain ( int  nBC,
int  bcSpacing,
int  firstBC,
int  dir = -1 
)

Definition at line 97 of file BunchFilling.cxx.

◆ setBCTrains()

void BunchFilling::setBCTrains ( int  nTrains,
int  trainSpacingInBC,
int  nBC,
int  bcSpacing,
int  firstBC,
int  dir = -1 
)

Definition at line 108 of file BunchFilling.cxx.

◆ setDefault()

void o2::BunchFilling::setDefault ( )
inline

Definition at line 89 of file BunchFilling.h.

◆ setInteractingBCsFromBeams()

void o2::BunchFilling::setInteractingBCsFromBeams ( )
inline

Definition at line 76 of file BunchFilling.h.

◆ testBC()

bool o2::BunchFilling::testBC ( int  bcID,
int  dir = -1 
) const
inline

Definition at line 66 of file BunchFilling.h.

◆ testBeamBunch()

bool o2::BunchFilling::testBeamBunch ( int  bcID,
int  dir 
) const
inline

Definition at line 63 of file BunchFilling.h.

◆ testInteractingBC()

bool o2::BunchFilling::testInteractingBC ( int  bcID) const
inline

Definition at line 60 of file BunchFilling.h.


The documentation for this class was generated from the following files: