AliPhysics  64a5cfc (64a5cfc)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Setup Struct Reference

Public Member Functions

 Setup ()
 
void Print ()
 
Bool_t IsGeant3 () const
 
Bool_t IsGeant4 () const
 
void MakeBackend ()
 
void DeduceRunType ()
 

Static Public Member Functions

static Float_t Env2Float (const char *envName, Float_t def)
 
static UInt_t Env2UInt (const char *envName, UInt_t def)
 
static UInt_t Env2Int (const char *envName, Int_t def)
 

Public Attributes

TString runType
 
UInt_t seed
 
Float_t minB
 
Float_t maxB
 
TString backend
 

Detailed Description

Class that defines the set-up.

  • The seed of the random number generator is read from the environment if present.
  • The event generator type is read from the environment if present. Otherwise we try to deduce it from the global object "grp".
  • The impact parameter range is read from the environment if present.

Definition at line 31 of file Config.C.

Constructor & Destructor Documentation

Setup::Setup ( )
inline

Constructor - retrieves needed information from CDB manager and environment.

Definition at line 85 of file Config.C.

Member Function Documentation

void Setup::DeduceRunType ( )
inline

Set the default generator based on the beam type

  • p-p PYTHIA
  • p-A or A-p DPMJet
  • A-A Hijing

Definition at line 257 of file Config.C.

Referenced by Setup().

static Float_t Setup::Env2Float ( const char *  envName,
Float_t  def 
)
inlinestatic

Get the value of an environment variable as a float

Parameters
envNameEnviroment variable name
defDefault value
Returns
As float, or default

Definition at line 46 of file Config.C.

Referenced by Setup().

static UInt_t Setup::Env2Int ( const char *  envName,
Int_t  def 
)
inlinestatic

Get the value of an environment variable as a int

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

Definition at line 74 of file Config.C.

static UInt_t Setup::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 60 of file Config.C.

Referenced by Setup().

Bool_t Setup::IsGeant3 ( ) const
inline

Definition at line 123 of file Config.C.

Bool_t Setup::IsGeant4 ( ) const
inline

Definition at line 128 of file Config.C.

Referenced by Config(), and MakeBackend().

void Setup::MakeBackend ( )
inline

Create our simulation back-end (Geant3 or 4)

Definition at line 136 of file Config.C.

Referenced by Config().

void Setup::Print ( )
inline

Prinf information

Definition at line 111 of file Config.C.

Referenced by Setup().

Member Data Documentation

TString Setup::backend

Definition at line 37 of file Config.C.

Referenced by IsGeant3(), IsGeant4(), Print(), and Setup().

Float_t Setup::maxB

Definition at line 36 of file Config.C.

Referenced by Config(), Print(), and Setup().

Float_t Setup::minB

Definition at line 35 of file Config.C.

Referenced by Config(), Print(), and Setup().

TString Setup::runType

Definition at line 33 of file Config.C.

Referenced by Config(), DeduceRunType(), Print(), and Setup().

UInt_t Setup::seed

Definition at line 34 of file Config.C.

Referenced by Config(), Print(), and Setup().


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