CbmRoot
CbmBeamGenerator Class Reference

#include <CbmBeamGenerator.h>

Inheritance diagram for CbmBeamGenerator:
[legend]
Collaboration diagram for CbmBeamGenerator:
[legend]

Public Member Functions

 CbmBeamGenerator ()
 Default constructor (should not be used) More...
 
 CbmBeamGenerator (UInt_t beamZ, UInt_t beamA, UInt_t beamQ, Double_t momentum, Double_t zStart)
 Standard constructor. More...
 
virtual ~CbmBeamGenerator ()
 Destructor. More...
 
virtual void Print (Option_t *opt="") const
 Print info to logger. More...
 
virtual Bool_t ReadEvent (FairPrimaryGenerator *primGen)
 Generate one event (abstract in base class) More...
 
std::string ToString () const
 Info to string. More...
 

Private Member Functions

 ClassDef (CbmBeamGenerator, 1)
 

Private Attributes

Double_t fP
 Total momentum [GeV]. More...
 
Double_t fStartZ
 z coordinate of start point More...
 
FairIon * fIon
 Ion type. More...
 

Detailed Description

Definition at line 38 of file CbmBeamGenerator.h.

Constructor & Destructor Documentation

◆ CbmBeamGenerator() [1/2]

CbmBeamGenerator::CbmBeamGenerator ( )

Default constructor (should not be used)

Definition at line 29 of file CbmBeamGenerator.cxx.

◆ CbmBeamGenerator() [2/2]

CbmBeamGenerator::CbmBeamGenerator ( UInt_t  beamZ,
UInt_t  beamA,
UInt_t  beamQ,
Double_t  momentum,
Double_t  zStart 
)

Standard constructor.

Parameters
beamZAtomic number (number of protons)
beamAAtomic mass number (number of nucleons)
beamQElectric charge
momentumMomentum per nucleon [GeV]
zStartz coordinate of beam start position

Definition at line 38 of file CbmBeamGenerator.cxx.

References fIon, and CbmEventGenerator::ForceVertexAtZ().

◆ ~CbmBeamGenerator()

CbmBeamGenerator::~CbmBeamGenerator ( )
virtual

Destructor.

Definition at line 67 of file CbmBeamGenerator.cxx.

Member Function Documentation

◆ ClassDef()

CbmBeamGenerator::ClassDef ( CbmBeamGenerator  ,
 
)
private

◆ Print()

void CbmBeamGenerator::Print ( Option_t *  opt = "") const
virtual

Print info to logger.

Definition at line 72 of file CbmBeamGenerator.cxx.

References ToString().

◆ ReadEvent()

Bool_t CbmBeamGenerator::ReadEvent ( FairPrimaryGenerator *  primGen)
virtual

Generate one event (abstract in base class)

Parameters
primGenPointer to the FairPrimaryGenerator

Definition at line 77 of file CbmBeamGenerator.cxx.

References fIon, and fP.

◆ ToString()

std::string CbmBeamGenerator::ToString ( ) const

Info to string.

Definition at line 94 of file CbmBeamGenerator.cxx.

References fIon, fP, and fStartZ.

Referenced by Print().

Member Data Documentation

◆ fIon

FairIon* CbmBeamGenerator::fIon
private

Ion type.

Definition at line 80 of file CbmBeamGenerator.h.

Referenced by CbmBeamGenerator(), ReadEvent(), and ToString().

◆ fP

Double_t CbmBeamGenerator::fP
private

Total momentum [GeV].

Definition at line 78 of file CbmBeamGenerator.h.

Referenced by ReadEvent(), and ToString().

◆ fStartZ

Double_t CbmBeamGenerator::fStartZ
private

z coordinate of start point

Definition at line 79 of file CbmBeamGenerator.h.

Referenced by ToString().


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