AliPhysics  fceccc5 (fceccc5)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GRPData Struct Reference

Classes

struct  Beam
 

Public Member Functions

 GRPData (UInt_t r)
 
void Print ()
 
Bool_t IsPP () const
 
Bool_t IsPA () const
 
Bool_t IsAP () const
 
Bool_t IsAA () const
 
UInt_t CMEnergy (UShort_t how=0) const
 
Double_t BeamEnergy (UShort_t which)
 
Double_t BeamMomentum (UShort_t which)
 
UInt_t Year () const
 
const char * FileName () const
 
Bool_t ReadFromFile ()
 
Bool_t ReadFromOCDB (UInt_t r)
 

Static Public Member Functions

static UInt_t Obj2UInt (const TObject *o)
 
static UInt_t Env2UInt (const char *envName, UInt_t def)
 

Public Attributes

UInt_t beamEnergy
 
UInt_t energy
 
TString period
 
UInt_t run
 
Beam beam1
 
Beam beam2
 

Detailed Description

Class that hold summary of GRP data, and has methods to obtain these, either from a previously dumped file, or directly from OCDB.

This is used by the simulation setup to ensure we have the proper beam settings for an anchor run.

Definition at line 19 of file GRP.C.

Constructor & Destructor Documentation

GRPData::GRPData ( UInt_t  r)
inline

Constructor.

Parameters
rRun number

Definition at line 110 of file GRP.C.

Member Function Documentation

Double_t GRPData::BeamEnergy ( UShort_t  which)
inline

Definition at line 175 of file GRP.C.

Referenced by CMEnergy().

Double_t GRPData::BeamMomentum ( UShort_t  which)
inline

Definition at line 183 of file GRP.C.

Referenced by CMEnergy(), and EGCfg::EposLHC().

UInt_t GRPData::CMEnergy ( UShort_t  how = 0) const
inline

Definition at line 161 of file GRP.C.

static UInt_t GRPData::Env2UInt ( const char *  envName,
UInt_t  def 
)
inlinestatic

Get the value of an environment variable as a unsigned int

Parameters
envNameEnviroment variable name
defDefault value
Returns
As unsigned int, or default

Definition at line 354 of file GRP.C.

const char* GRPData::FileName ( ) const
inline

Definition at line 201 of file GRP.C.

Referenced by GRPData(), ReadFromFile(), and ReadFromOCDB().

Bool_t GRPData::IsAA ( ) const
inline

Check if this run was a A-A run

Returns
Return true if both beams are A

Definition at line 159 of file GRP.C.

Referenced by AddAnalysisTasks(), VirtualEGCfg::DeduceRunType(), Setup::DeduceRunType(), Reconstruct(), and Simulate().

Bool_t GRPData::IsAP ( ) const
inline

Check if this run was a A-p run

Returns
Return true beam 1 is A and 2 is p

Definition at line 153 of file GRP.C.

Referenced by Config(), EGCfg::CreateGenerator(), VirtualEGCfg::DeduceRunType(), Setup::DeduceRunType(), EGCfg::Dpmjet(), and EGCfg::Hijing().

Bool_t GRPData::IsPA ( ) const
inline

Check if this run was a p-A run

Returns
Return true beam 1 is p and 2 is A

Definition at line 147 of file GRP.C.

Referenced by Config(), EGCfg::CreateGenerator(), VirtualEGCfg::DeduceRunType(), Setup::DeduceRunType(), EGCfg::Dpmjet(), and EGCfg::Hijing().

Bool_t GRPData::IsPP ( ) const
inline

Check if this run was a p-p run

Returns
Return true if both beams are p

Definition at line 141 of file GRP.C.

Referenced by AddAnalysisTasks(), VirtualEGCfg::DeduceRunType(), Setup::DeduceRunType(), EGCfg::Dpmjet(), EGCfg::Pythia(), and Simulate().

static UInt_t GRPData::Obj2UInt ( const TObject o)
inlinestatic

Get unsigned int value from string value of TObjString

Parameters
oObject
Returns
value

Definition at line 209 of file GRP.C.

Referenced by ReadFromFile().

void GRPData::Print ( )
inline

Print information

Definition at line 125 of file GRP.C.

Referenced by GRPData(), and Setup::Print().

Bool_t GRPData::ReadFromFile ( )
inline

Read values from a file

Returns
true on success

Definition at line 218 of file GRP.C.

Referenced by GRPData().

Bool_t GRPData::ReadFromOCDB ( UInt_t  r)
inline

Read values from OCDB. Also dumps values to file.

Parameters
rrun number
Returns
true on success

Definition at line 266 of file GRP.C.

Referenced by GRPData().

UInt_t GRPData::Year ( ) const
inline

Get the year

Returns
Year

Definition at line 196 of file GRP.C.

Referenced by AddAnalysisTasks(), and Config().

Member Data Documentation

UInt_t GRPData::beamEnergy

The documentation for this struct was generated from the following file: