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

Public Member Functions

Float_t GetEnergy (Float_t e) const
 
Float_t GetMomentum (Float_t e) const
 
Bool_t IsP () const
 
Bool_t IsA () const
 
const char * Name ()
 
void Set (UInt_t b)
 
void Set (const TString &b)
 

Public Attributes

UInt_t z
 
UInt_t a
 

Detailed Description

A beam

Definition at line 24 of file GRP.C.

Member Function Documentation

Float_t GRPData::Beam::GetEnergy ( Float_t  e) const
inline

Get the per nucleon beam energy given a per charge beam energy

Parameters
ePer charge beam energy
Returns
Per nucleon beam energy

Definition at line 35 of file GRP.C.

Referenced by GRPData::BeamEnergy(), and GetMomentum().

Float_t GRPData::Beam::GetMomentum ( Float_t  e) const
inline

Get the per nucleon beam momentum given a per charge beam energy

Parameters
ePer charge beam energy
Returns
Per nucleon beam momentum

Definition at line 46 of file GRP.C.

Referenced by GRPData::BeamMomentum().

Bool_t GRPData::Beam::IsA ( ) const
inline

Check if this is a nucleus

Returns
true if not P

Definition at line 63 of file GRP.C.

Referenced by GRPData::IsAA(), GRPData::IsAP(), GRPData::IsPA(), Name(), and GRPData::ReadFromOCDB().

Bool_t GRPData::Beam::IsP ( ) const
inline

Check if this is a proton

Returns
True if z and a are 1

Definition at line 57 of file GRP.C.

Referenced by EGCfg::Hijing(), IsA(), GRPData::IsAP(), GRPData::IsPA(), GRPData::IsPP(), and Name().

const char* GRPData::Beam::Name ( )
inline

Get the beam type name

Returns
P or A

Definition at line 69 of file GRP.C.

Referenced by EGCfg::Ampt(), EGCfg::Dpmjet(), EGCfg::Epos(), EGCfg::EposLHC(), EGCfg::HFCocktail(), EGCfg::Hijing(), EGCfg::Hydjet(), GRPData::Print(), and EGCfg::Pythia().

void GRPData::Beam::Set ( UInt_t  b)
inline

Set the beam type from single beam spec from LHC

Parameters
bBeam type from LHC

Definition at line 75 of file GRP.C.

Referenced by GRPData::ReadFromOCDB().

void GRPData::Beam::Set ( const TString b)
inline

Set from either a full LHC spec or from ALICE spec

Parameters
bBeam

Definition at line 85 of file GRP.C.

Member Data Documentation


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