Project
Loading...
Searching...
No Matches
o2::parameters::GRPLHCIFData Class Reference

#include <GRPLHCIFData.h>

Public Member Functions

 GRPLHCIFData ()=default
 
 ~GRPLHCIFData ()=default
 
std::pair< long, int32_t > getBeamEnergyPerZWithTime () const
 
int32_t getBeamEnergyPerZ () const
 
float getBeamEnergyPerZinGeV () const
 
long getBeamEnergyPerZTime () const
 
void setBeamEnergyPerZWithTime (std::pair< long, int32_t > p)
 
void setBeamEnergyPerZWithTime (long t, int32_t v)
 
std::pair< long, int32_t > getFillNumberWithTime () const
 
int32_t getFillNumber () const
 
long getFillNumberTime () const
 
void setFillNumberWithTime (std::pair< long, int32_t > p)
 
void setFillNumberWithTime (long t, int32_t v)
 
const std::pair< long, std::string > & getInjectionSchemeWithTime () const
 
const std::string & getInjectionScheme () const
 
long getInjectionSchemeTime () const
 
void setInjectionSchemeWithTime (std::pair< long, std::string > p)
 
void setInjectionSchemeWithTime (long t, std::string v)
 
std::pair< long, int32_t > getAtomicNumberB1WithTime () const
 
int32_t getAtomicNumberB1 () const
 
long getAtomicNumberB1Time () const
 
void setAtomicNumberB1WithTime (std::pair< long, int32_t > p)
 
void setAtomicNumberB1WithTime (long t, int32_t v)
 
std::pair< long, int32_t > getAtomicNumberB2WithTime () const
 
int32_t getAtomicNumberB2 () const
 
long getAtomicNumberB2Time () const
 
void setAtomicNumberB2WithTime (std::pair< long, int32_t > p)
 
void setAtomicNumberB2WithTime (long t, int32_t v)
 
std::pair< long, o2::units::AngleRad_t > getCrossingAngleWithTime () const
 
o2::units::AngleRad_t getCrossingAngle () const
 
long getCrossingAngleTime () const
 
void setCrossingAngleWithTime (std::pair< long, o2::units::AngleRad_t > p)
 
void setCrossingAngleWithTime (long t, o2::units::AngleRad_t v)
 
const std::pair< long, o2::BunchFilling > & getBunchFillingWithTime () const
 
const o2::BunchFillinggetBunchFilling () const
 
long getBunchFillingTime () const
 
void setBunchFillingWithTime (std::pair< long, o2::BunchFilling > p)
 
void setBunchFillingWithTime (long t, o2::BunchFilling v)
 
int getBeamZ (beamDirection beam) const
 getters/setters for given beam A and Z info, encoded as A<<16+Z
 
int getBeamA (beamDirection beam) const
 
int getBeamZ (int beam) const
 
int getBeamA (int beam) const
 
float getBeamZoverA (beamDirection beam) const
 
float getBeamZoverA (int beam) const
 
void setBeamAZ (int a, int z, beamDirection beam)
 
void setBeamAZ (beamDirection beam)
 
void setBeamAZ ()
 
float getBeamEnergyPerNucleon (beamDirection beam) const
 getters/setters for beam energy per charge and per nucleon
 
float getBeamEnergyPerNucleon (int beam) const
 
float getBeamEnergyPerNucleonInGeV (beamDirection beam) const
 
float getBeamEnergyPerNucleonInGeV (int beam) const
 
float getSqrtS () const
 calculate center of mass energy per nucleon collision
 
void translateBucketsToBCNumbers (std::vector< int32_t > &bcNb, std::vector< int32_t > &buckets, int beam)
 helper function for BunchFilling
 
void print () const
 

Static Public Member Functions

static GRPLHCIFDataloadFrom (const std::string &grpLHCIFFileName="")
 

Static Public Attributes

static const std::unordered_map< unsigned int, unsigned intmZtoA
 

Detailed Description

Definition at line 31 of file GRPLHCIFData.h.

Constructor & Destructor Documentation

◆ GRPLHCIFData()

o2::parameters::GRPLHCIFData::GRPLHCIFData ( )
default

◆ ~GRPLHCIFData()

o2::parameters::GRPLHCIFData::~GRPLHCIFData ( )
default

Member Function Documentation

◆ getAtomicNumberB1()

int32_t o2::parameters::GRPLHCIFData::getAtomicNumberB1 ( ) const
inline

Definition at line 62 of file GRPLHCIFData.h.

◆ getAtomicNumberB1Time()

long o2::parameters::GRPLHCIFData::getAtomicNumberB1Time ( ) const
inline

Definition at line 63 of file GRPLHCIFData.h.

◆ getAtomicNumberB1WithTime()

std::pair< long, int32_t > o2::parameters::GRPLHCIFData::getAtomicNumberB1WithTime ( ) const
inline

Definition at line 61 of file GRPLHCIFData.h.

◆ getAtomicNumberB2()

int32_t o2::parameters::GRPLHCIFData::getAtomicNumberB2 ( ) const
inline

Definition at line 68 of file GRPLHCIFData.h.

◆ getAtomicNumberB2Time()

long o2::parameters::GRPLHCIFData::getAtomicNumberB2Time ( ) const
inline

Definition at line 69 of file GRPLHCIFData.h.

◆ getAtomicNumberB2WithTime()

std::pair< long, int32_t > o2::parameters::GRPLHCIFData::getAtomicNumberB2WithTime ( ) const
inline

Definition at line 67 of file GRPLHCIFData.h.

◆ getBeamA() [1/2]

int o2::parameters::GRPLHCIFData::getBeamA ( beamDirection  beam) const
inline

Definition at line 87 of file GRPLHCIFData.h.

◆ getBeamA() [2/2]

int o2::parameters::GRPLHCIFData::getBeamA ( int  beam) const
inline

Definition at line 89 of file GRPLHCIFData.h.

◆ getBeamEnergyPerNucleon() [1/2]

float o2::parameters::GRPLHCIFData::getBeamEnergyPerNucleon ( beamDirection  beam) const
inline

getters/setters for beam energy per charge and per nucleon

Definition at line 96 of file GRPLHCIFData.h.

◆ getBeamEnergyPerNucleon() [2/2]

float o2::parameters::GRPLHCIFData::getBeamEnergyPerNucleon ( int  beam) const
inline

Definition at line 97 of file GRPLHCIFData.h.

◆ getBeamEnergyPerNucleonInGeV() [1/2]

float o2::parameters::GRPLHCIFData::getBeamEnergyPerNucleonInGeV ( beamDirection  beam) const
inline

Definition at line 98 of file GRPLHCIFData.h.

◆ getBeamEnergyPerNucleonInGeV() [2/2]

float o2::parameters::GRPLHCIFData::getBeamEnergyPerNucleonInGeV ( int  beam) const
inline

Definition at line 99 of file GRPLHCIFData.h.

◆ getBeamEnergyPerZ()

int32_t o2::parameters::GRPLHCIFData::getBeamEnergyPerZ ( ) const
inline

Definition at line 43 of file GRPLHCIFData.h.

◆ getBeamEnergyPerZinGeV()

float o2::parameters::GRPLHCIFData::getBeamEnergyPerZinGeV ( ) const
inline

Definition at line 44 of file GRPLHCIFData.h.

◆ getBeamEnergyPerZTime()

long o2::parameters::GRPLHCIFData::getBeamEnergyPerZTime ( ) const
inline

Definition at line 45 of file GRPLHCIFData.h.

◆ getBeamEnergyPerZWithTime()

std::pair< long, int32_t > o2::parameters::GRPLHCIFData::getBeamEnergyPerZWithTime ( ) const
inline

Definition at line 42 of file GRPLHCIFData.h.

◆ getBeamZ() [1/2]

int o2::parameters::GRPLHCIFData::getBeamZ ( beamDirection  beam) const
inline

getters/setters for given beam A and Z info, encoded as A<<16+Z

Definition at line 86 of file GRPLHCIFData.h.

◆ getBeamZ() [2/2]

int o2::parameters::GRPLHCIFData::getBeamZ ( int  beam) const
inline

Definition at line 88 of file GRPLHCIFData.h.

◆ getBeamZoverA() [1/2]

float o2::parameters::GRPLHCIFData::getBeamZoverA ( beamDirection  beam) const
inline

Definition at line 122 of file GRPLHCIFData.h.

◆ getBeamZoverA() [2/2]

float o2::parameters::GRPLHCIFData::getBeamZoverA ( int  beam) const
inline

Definition at line 130 of file GRPLHCIFData.h.

◆ getBunchFilling()

const o2::BunchFilling & o2::parameters::GRPLHCIFData::getBunchFilling ( ) const
inline

Definition at line 80 of file GRPLHCIFData.h.

◆ getBunchFillingTime()

long o2::parameters::GRPLHCIFData::getBunchFillingTime ( ) const
inline

Definition at line 81 of file GRPLHCIFData.h.

◆ getBunchFillingWithTime()

const std::pair< long, o2::BunchFilling > & o2::parameters::GRPLHCIFData::getBunchFillingWithTime ( ) const
inline

Definition at line 79 of file GRPLHCIFData.h.

◆ getCrossingAngle()

o2::units::AngleRad_t o2::parameters::GRPLHCIFData::getCrossingAngle ( ) const
inline

Definition at line 74 of file GRPLHCIFData.h.

◆ getCrossingAngleTime()

long o2::parameters::GRPLHCIFData::getCrossingAngleTime ( ) const
inline

Definition at line 75 of file GRPLHCIFData.h.

◆ getCrossingAngleWithTime()

std::pair< long, o2::units::AngleRad_t > o2::parameters::GRPLHCIFData::getCrossingAngleWithTime ( ) const
inline

Definition at line 73 of file GRPLHCIFData.h.

◆ getFillNumber()

int32_t o2::parameters::GRPLHCIFData::getFillNumber ( ) const
inline

Definition at line 50 of file GRPLHCIFData.h.

◆ getFillNumberTime()

long o2::parameters::GRPLHCIFData::getFillNumberTime ( ) const
inline

Definition at line 51 of file GRPLHCIFData.h.

◆ getFillNumberWithTime()

std::pair< long, int32_t > o2::parameters::GRPLHCIFData::getFillNumberWithTime ( ) const
inline

Definition at line 49 of file GRPLHCIFData.h.

◆ getInjectionScheme()

const std::string & o2::parameters::GRPLHCIFData::getInjectionScheme ( ) const
inline

Definition at line 56 of file GRPLHCIFData.h.

◆ getInjectionSchemeTime()

long o2::parameters::GRPLHCIFData::getInjectionSchemeTime ( ) const
inline

Definition at line 57 of file GRPLHCIFData.h.

◆ getInjectionSchemeWithTime()

const std::pair< long, std::string > & o2::parameters::GRPLHCIFData::getInjectionSchemeWithTime ( ) const
inline

Definition at line 55 of file GRPLHCIFData.h.

◆ getSqrtS()

float GRPLHCIFData::getSqrtS ( ) const

calculate center of mass energy per nucleon collision

Definition at line 60 of file GRPLHCIFData.cxx.

◆ loadFrom()

GRPLHCIFData * GRPLHCIFData::loadFrom ( const std::string &  grpLHCIFFileName = "")
static

Definition at line 89 of file GRPLHCIFData.cxx.

◆ print()

void GRPLHCIFData::print ( ) const

Definition at line 106 of file GRPLHCIFData.cxx.

◆ setAtomicNumberB1WithTime() [1/2]

void o2::parameters::GRPLHCIFData::setAtomicNumberB1WithTime ( long  t,
int32_t  v 
)
inline

Definition at line 65 of file GRPLHCIFData.h.

◆ setAtomicNumberB1WithTime() [2/2]

void o2::parameters::GRPLHCIFData::setAtomicNumberB1WithTime ( std::pair< long, int32_t >  p)
inline

Definition at line 64 of file GRPLHCIFData.h.

◆ setAtomicNumberB2WithTime() [1/2]

void o2::parameters::GRPLHCIFData::setAtomicNumberB2WithTime ( long  t,
int32_t  v 
)
inline

Definition at line 71 of file GRPLHCIFData.h.

◆ setAtomicNumberB2WithTime() [2/2]

void o2::parameters::GRPLHCIFData::setAtomicNumberB2WithTime ( std::pair< long, int32_t >  p)
inline

Definition at line 70 of file GRPLHCIFData.h.

◆ setBeamAZ() [1/3]

void GRPLHCIFData::setBeamAZ ( )

Definition at line 51 of file GRPLHCIFData.cxx.

◆ setBeamAZ() [2/3]

void GRPLHCIFData::setBeamAZ ( beamDirection  beam)

Definition at line 34 of file GRPLHCIFData.cxx.

◆ setBeamAZ() [3/3]

void o2::parameters::GRPLHCIFData::setBeamAZ ( int  a,
int  z,
beamDirection  beam 
)
inline

Definition at line 92 of file GRPLHCIFData.h.

◆ setBeamEnergyPerZWithTime() [1/2]

void o2::parameters::GRPLHCIFData::setBeamEnergyPerZWithTime ( long  t,
int32_t  v 
)
inline

Definition at line 47 of file GRPLHCIFData.h.

◆ setBeamEnergyPerZWithTime() [2/2]

void o2::parameters::GRPLHCIFData::setBeamEnergyPerZWithTime ( std::pair< long, int32_t >  p)
inline

Definition at line 46 of file GRPLHCIFData.h.

◆ setBunchFillingWithTime() [1/2]

void o2::parameters::GRPLHCIFData::setBunchFillingWithTime ( long  t,
o2::BunchFilling  v 
)
inline

Definition at line 83 of file GRPLHCIFData.h.

◆ setBunchFillingWithTime() [2/2]

void o2::parameters::GRPLHCIFData::setBunchFillingWithTime ( std::pair< long, o2::BunchFilling p)
inline

Definition at line 82 of file GRPLHCIFData.h.

◆ setCrossingAngleWithTime() [1/2]

void o2::parameters::GRPLHCIFData::setCrossingAngleWithTime ( long  t,
o2::units::AngleRad_t  v 
)
inline

Definition at line 77 of file GRPLHCIFData.h.

◆ setCrossingAngleWithTime() [2/2]

void o2::parameters::GRPLHCIFData::setCrossingAngleWithTime ( std::pair< long, o2::units::AngleRad_t >  p)
inline

Definition at line 76 of file GRPLHCIFData.h.

◆ setFillNumberWithTime() [1/2]

void o2::parameters::GRPLHCIFData::setFillNumberWithTime ( long  t,
int32_t  v 
)
inline

Definition at line 53 of file GRPLHCIFData.h.

◆ setFillNumberWithTime() [2/2]

void o2::parameters::GRPLHCIFData::setFillNumberWithTime ( std::pair< long, int32_t >  p)
inline

Definition at line 52 of file GRPLHCIFData.h.

◆ setInjectionSchemeWithTime() [1/2]

void o2::parameters::GRPLHCIFData::setInjectionSchemeWithTime ( long  t,
std::string  v 
)
inline

Definition at line 59 of file GRPLHCIFData.h.

◆ setInjectionSchemeWithTime() [2/2]

void o2::parameters::GRPLHCIFData::setInjectionSchemeWithTime ( std::pair< long, std::string >  p)
inline

Definition at line 58 of file GRPLHCIFData.h.

◆ translateBucketsToBCNumbers()

void GRPLHCIFData::translateBucketsToBCNumbers ( std::vector< int32_t > &  bcNb,
std::vector< int32_t > &  buckets,
int  beam 
)

helper function for BunchFilling

Definition at line 78 of file GRPLHCIFData.cxx.

Member Data Documentation

◆ mZtoA

const std::unordered_map< unsigned int, unsigned int > GRPLHCIFData::mZtoA
static
Initial value:
=
{
{1, 1},
{82, 208}}

Definition at line 40 of file GRPLHCIFData.h.


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