CbmRoot
Loading...
Searching...
No Matches
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)
 
 CbmBeamGenerator (UInt_t beamZ, UInt_t beamA, UInt_t beamQ, Double_t momentum, Double_t zStart)
 Standard constructor.
 
virtual ~CbmBeamGenerator ()
 Destructor.
 
virtual void Print (Option_t *opt="") const
 Print info to logger.
 
virtual Bool_t ReadEvent (FairPrimaryGenerator *primGen)
 Generate one event (abstract in base class)
 
std::string ToString () const
 Info to string.
 

Private Member Functions

 ClassDef (CbmBeamGenerator, 1)
 

Private Attributes

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

Detailed Description

Definition at line 44 of file CbmBeamGenerator.h.

Constructor & Destructor Documentation

◆ CbmBeamGenerator() [1/2]

CbmBeamGenerator::CbmBeamGenerator ( )

Default constructor (should not be used)

Definition at line 36 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 47 of file CbmBeamGenerator.cxx.

References fIon, and CbmEventGenerator::ForceVertexAtZ().

◆ ~CbmBeamGenerator()

CbmBeamGenerator::~CbmBeamGenerator ( )
virtual

Destructor.

Definition at line 74 of file CbmBeamGenerator.cxx.

Member Function Documentation

◆ ClassDef()

CbmBeamGenerator::ClassDef ( CbmBeamGenerator ,
1  )
private

◆ Print()

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

Print info to logger.

Definition at line 79 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 84 of file CbmBeamGenerator.cxx.

References fIon, and fP.

◆ ToString()

std::string CbmBeamGenerator::ToString ( ) const

Info to string.

Definition at line 102 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 82 of file CbmBeamGenerator.h.

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

◆ fP

Double_t CbmBeamGenerator::fP
private

Total momentum [GeV].

Definition at line 80 of file CbmBeamGenerator.h.

Referenced by ReadEvent(), and ToString().

◆ fStartZ

Double_t CbmBeamGenerator::fStartZ
private

z coordinate of start point

Definition at line 81 of file CbmBeamGenerator.h.

Referenced by ToString().


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