EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairIon Class Reference

#include <EicRoot/blob/master/base/FairIon.h>

+ Inheritance diagram for FairIon:
+ Collaboration diagram for FairIon:

Public Member Functions

 FairIon ()
 
 FairIon (const char *name, Int_t z, Int_t a, Int_t q, Double_t e=0., Double_t m=0.)
 
void SetParams (const char *name, Int_t z, Int_t a, Int_t q, Double_t e=0., Double_t m=0.)
 
virtual ~FairIon ()
 
Int_t GetZ () const
 
Int_t GetA () const
 
Int_t GetQ () const
 
Double_t GetExcEnergy () const
 
Double_t GetMass () const
 
void SetExcEnergy (Double_t eExc)
 
void SetMass (Double_t mass)
 

Private Member Functions

 ClassDef (FairIon, 2)
 .931494028 Gev/c**2
 

Private Attributes

Int_t fZ
 /// Number of ions instantiated. One per generator.
 
Int_t fA
 Atomic number.
 
Int_t fQ
 Atomic mass.
 
Double_t fExcEnergy
 Electric charge.
 
Double_t fMass
 Excitation energy [GeV].
 
FairLoggerfLogger
 Mass [GeV].
 

Static Private Attributes

static Int_t fgNIon
 
static const Double_t amu =0.931494028
 /// FairLogger
 

Detailed Description

Definition at line 20 of file FairIon.h.

View newest version in sPHENIX GitHub at line 20 of file FairIon.h

Constructor & Destructor Documentation

FairIon::FairIon ( )

Default constructor

Definition at line 14 of file FairIon.cxx.

View newest version in sPHENIX GitHub at line 14 of file FairIon.cxx

FairIon::FairIon ( const char *  name,
Int_t  z,
Int_t  a,
Int_t  q,
Double_t  e = 0.,
Double_t  m = 0. 
)

Standard constructor

Parameters
namename
zatomic number
aatomic mass
qelectric charge
eexcitation energy
mmass [GeV] If mass is not given, it will be set to a times the proton mass.

Definition at line 29 of file FairIon.cxx.

View newest version in sPHENIX GitHub at line 29 of file FairIon.cxx

References fLogger, fMass, FairLogger::Info(), mass, and MESSAGE_ORIGIN.

+ Here is the call graph for this function:

FairIon::~FairIon ( )
virtual

Destructor

Definition at line 53 of file FairIon.cxx.

View newest version in sPHENIX GitHub at line 53 of file FairIon.cxx

Member Function Documentation

FairIon::ClassDef ( FairIon  ,
 
)
private

.931494028 Gev/c**2

Int_t FairIon::GetA ( ) const
inline

Return the atomic mass

Definition at line 60 of file FairIon.h.

View newest version in sPHENIX GitHub at line 60 of file FairIon.h

References fA.

Referenced by FairMCApplication::AddIons().

+ Here is the caller graph for this function:

Double_t FairIon::GetExcEnergy ( ) const
inline

Return the excitation energy

Definition at line 68 of file FairIon.h.

View newest version in sPHENIX GitHub at line 68 of file FairIon.h

References fExcEnergy.

Referenced by FairMCApplication::AddIons().

+ Here is the caller graph for this function:

Double_t FairIon::GetMass ( ) const
inline

Return the mass in GeV

Definition at line 72 of file FairIon.h.

View newest version in sPHENIX GitHub at line 72 of file FairIon.h

References fMass.

Referenced by FairMCApplication::AddIons().

+ Here is the caller graph for this function:

Int_t FairIon::GetQ ( ) const
inline

Return the charge

Definition at line 64 of file FairIon.h.

View newest version in sPHENIX GitHub at line 64 of file FairIon.h

References fQ.

Referenced by FairMCApplication::AddIons().

+ Here is the caller graph for this function:

Int_t FairIon::GetZ ( ) const
inline

Accessors Return the atomic number

Definition at line 56 of file FairIon.h.

View newest version in sPHENIX GitHub at line 56 of file FairIon.h

References fZ.

Referenced by FairMCApplication::AddIons().

+ Here is the caller graph for this function:

void FairIon::SetExcEnergy ( Double_t  eExc)
inline

Modifiers Set the excitation energy

Definition at line 78 of file FairIon.h.

View newest version in sPHENIX GitHub at line 78 of file FairIon.h

References fExcEnergy.

void FairIon::SetMass ( Double_t  mass)
inline

Set the mass in GeV

Definition at line 82 of file FairIon.h.

View newest version in sPHENIX GitHub at line 82 of file FairIon.h

References amu, and fMass.

void FairIon::SetParams ( const char *  name,
Int_t  z,
Int_t  a,
Int_t  q,
Double_t  e = 0.,
Double_t  m = 0. 
)
inline

Definition at line 39 of file FairIon.h.

View newest version in sPHENIX GitHub at line 39 of file FairIon.h

References Acts::UnitConstants::e, fA, fExcEnergy, fMass, fQ, fZ, Acts::UnitConstants::m, and z.

Member Data Documentation

const Double_t FairIon::amu =0.931494028
staticprivate

/// FairLogger

Definition at line 96 of file FairIon.h.

View newest version in sPHENIX GitHub at line 96 of file FairIon.h

Referenced by SetMass().

Int_t FairIon::fA
private

Atomic number.

Definition at line 91 of file FairIon.h.

View newest version in sPHENIX GitHub at line 91 of file FairIon.h

Referenced by GetA(), and SetParams().

Double_t FairIon::fExcEnergy
private

Electric charge.

Definition at line 93 of file FairIon.h.

View newest version in sPHENIX GitHub at line 93 of file FairIon.h

Referenced by GetExcEnergy(), SetExcEnergy(), and SetParams().

Int_t FairIon::fgNIon
staticprivate

Data members

Definition at line 89 of file FairIon.h.

View newest version in sPHENIX GitHub at line 89 of file FairIon.h

FairLogger* FairIon::fLogger
private

Mass [GeV].

Definition at line 95 of file FairIon.h.

View newest version in sPHENIX GitHub at line 95 of file FairIon.h

Referenced by FairIon().

Double_t FairIon::fMass
private

Excitation energy [GeV].

Definition at line 94 of file FairIon.h.

View newest version in sPHENIX GitHub at line 94 of file FairIon.h

Referenced by FairIon(), GetMass(), SetMass(), and SetParams().

Int_t FairIon::fQ
private

Atomic mass.

Definition at line 92 of file FairIon.h.

View newest version in sPHENIX GitHub at line 92 of file FairIon.h

Referenced by GetQ(), and SetParams().

Int_t FairIon::fZ
private

/// Number of ions instantiated. One per generator.

Definition at line 90 of file FairIon.h.

View newest version in sPHENIX GitHub at line 90 of file FairIon.h

Referenced by GetZ(), and SetParams().


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