CbmRoot
CbmBeamGenerator.h
Go to the documentation of this file.
1
7
#ifndef CBMBEAMGENERATOR_H
8
#define CBMBEAMGENERATOR_H 1
9
10
11
#include <FairGenerator.h>
12
#include <FairIon.h>
13
#include <Rtypes.h>
14
#include <string>
15
#include <vector>
16
17
class
FairPrimaryGenerator;
18
19
38
class
CbmBeamGenerator
:
public
FairGenerator {
39
40
public
:
42
CbmBeamGenerator
();
43
44
52
CbmBeamGenerator
(UInt_t beamZ,
53
UInt_t beamA,
54
UInt_t beamQ,
55
Double_t momentum,
56
Double_t zStart);
57
58
60
virtual
~CbmBeamGenerator
();
61
62
64
virtual
void
Print
(Option_t* opt =
""
)
const
;
65
66
70
virtual
Bool_t
ReadEvent
(FairPrimaryGenerator* primGen);
71
72
74
std::string
ToString
()
const
;
75
76
77
private
:
78
Double_t
fP
;
79
Double_t
fStartZ
;
80
FairIon*
fIon
;
81
82
83
ClassDef
(
CbmBeamGenerator
, 1);
84
};
85
86
#endif
CbmBeamGenerator::~CbmBeamGenerator
virtual ~CbmBeamGenerator()
Destructor.
Definition:
CbmBeamGenerator.cxx:67
CbmBeamGenerator::fStartZ
Double_t fStartZ
z coordinate of start point
Definition:
CbmBeamGenerator.h:79
CbmBeamGenerator
Definition:
CbmBeamGenerator.h:38
CbmBeamGenerator::fP
Double_t fP
Total momentum [GeV].
Definition:
CbmBeamGenerator.h:78
CbmBeamGenerator::ReadEvent
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)
Generate one event (abstract in base class)
Definition:
CbmBeamGenerator.cxx:77
CbmBeamGenerator::fIon
FairIon * fIon
Ion type.
Definition:
CbmBeamGenerator.h:80
CbmBeamGenerator::ToString
std::string ToString() const
Info to string.
Definition:
CbmBeamGenerator.cxx:94
CbmBeamGenerator::Print
virtual void Print(Option_t *opt="") const
Print info to logger.
Definition:
CbmBeamGenerator.cxx:72
CbmBeamGenerator::ClassDef
ClassDef(CbmBeamGenerator, 1)
CbmBeamGenerator::CbmBeamGenerator
CbmBeamGenerator()
Default constructor (should not be used)
Definition:
CbmBeamGenerator.cxx:29
sim
transport
generators
CbmBeamGenerator.h
Generated on Wed Oct 28 2020 15:11:34 for CbmRoot by
1.8.18