CbmRoot
CbmStsParSim.h
Go to the documentation of this file.
1 
6 #ifndef CBMSTSPARSIM_H
7 #define CBMSTSPARSIM_H 1
8 
9 #include <Rtypes.h> // for THashConsistencyHolder, ClassDef
10 #include <RtypesCore.h> // for Bool_t, kTRUE, kFALSE
11 
12 #include <FairParGenericSet.h> // for FairParGenericSet
13 
14 #include <string> // for string
15 
16 #include "CbmStsDefs.h" // for CbmStsELoss, CbmStsELoss::kUrban
17 
18 class FairParamList;
19 
25 class CbmStsParSim : public FairParGenericSet {
26 
27 public:
29  CbmStsParSim(const char* name = "CbmStsParSim",
30  const char* title = "STS parameters",
31  const char* context = "Default");
32 
33 
35  virtual ~CbmStsParSim() {}
36 
37 
39  virtual void clear();
40 
41 
45  Bool_t CrossTalk() const { return fCrossTalk; }
46 
47 
51  Bool_t Diffusion() const { return fDiffusion; }
52 
53 
57  CbmStsELoss ELossModel() const { return fELossModel; }
58 
59 
63  Bool_t EventMode() const { return fEventMode; }
64 
65 
70  virtual Bool_t getParams(FairParamList* parList);
71 
72 
76  Bool_t LorentzShift() const { return fLorentzShift; }
77 
78 
82  Bool_t Noise() const { return fNoise; }
83 
84 
88  Bool_t OnlyPrimaries() const { return fOnlyPrimaries; }
89 
90 
95  virtual void putParams(FairParamList* parList);
96 
97 
106  void SetEventMode(Bool_t choice = kTRUE) { fEventMode = choice; }
107 
108 
115  void SetGenerateNoise(Bool_t choice = kTRUE) { fNoise = choice; }
116 
117 
125  void SetOnlyPrimaries(Bool_t choice = kTRUE) { fOnlyPrimaries = choice; }
126 
127 
136  void SetProcesses(CbmStsELoss eLossModel,
137  Bool_t useLorentzShift,
138  Bool_t useDiffusion,
139  Bool_t useCrossTalk) {
140  fELossModel = eLossModel;
141  fLorentzShift = useLorentzShift;
142  fDiffusion = useDiffusion;
143  fCrossTalk = useCrossTalk;
144  }
145 
146 
148  std::string ToString() const;
149 
150 
151 private:
152  Bool_t fEventMode = kFALSE;
154  Bool_t fLorentzShift = kTRUE;
155  Bool_t fDiffusion = kTRUE;
156  Bool_t fCrossTalk = kTRUE;
157  Bool_t fNoise = kTRUE;
158  Bool_t fOnlyPrimaries = kFALSE;
159 
161 };
162 
163 #endif /* CBMSTSPARSIM_H */
CbmStsParSim::ClassDef
ClassDef(CbmStsParSim, 1)
CbmStsParSim::fCrossTalk
Bool_t fCrossTalk
Apply cross-talk.
Definition: CbmStsParSim.h:156
CbmStsParSim::EventMode
Bool_t EventMode() const
Check whether event-by-event mode is applied.
Definition: CbmStsParSim.h:63
CbmStsParSim::fNoise
Bool_t fNoise
Generate inter-event noise.
Definition: CbmStsParSim.h:157
CbmStsELoss::kUrban
@ kUrban
CbmStsParSim::fELossModel
CbmStsELoss fELossModel
Energy loss model.
Definition: CbmStsParSim.h:153
CbmStsParSim::~CbmStsParSim
virtual ~CbmStsParSim()
Destructor.
Definition: CbmStsParSim.h:35
CbmStsParSim::fEventMode
Bool_t fEventMode
Event-by-event mode.
Definition: CbmStsParSim.h:152
CbmStsParSim::ToString
std::string ToString() const
String output.
Definition: CbmStsParSim.cxx:47
CbmStsParSim::ELossModel
CbmStsELoss ELossModel() const
Energy loss model.
Definition: CbmStsParSim.h:57
CbmStsParSim::getParams
virtual Bool_t getParams(FairParamList *parList)
Reading parameters from ASCII. Abstract in base class.
Definition: CbmStsParSim.cxx:32
CbmStsParSim::SetEventMode
void SetEventMode(Bool_t choice=kTRUE)
Set event-by-event simulation mode.
Definition: CbmStsParSim.h:106
CbmStsDefs.h
CbmStsELoss
CbmStsELoss
Energy loss model used in simulation.
Definition: CbmStsDefs.h:43
CbmStsParSim::OnlyPrimaries
Bool_t OnlyPrimaries() const
Process only primary tracks.
Definition: CbmStsParSim.h:88
CbmStsParSim::Noise
Bool_t Noise() const
Check whether inter-event noise is generated.
Definition: CbmStsParSim.h:82
CbmStsParSim::clear
virtual void clear()
Reset all parameters.
Definition: CbmStsParSim.cxx:24
CbmStsParSim::CbmStsParSim
CbmStsParSim(const char *name="CbmStsParSim", const char *title="STS parameters", const char *context="Default")
Constructor.
CbmStsParSim::fDiffusion
Bool_t fDiffusion
Apply diffusion.
Definition: CbmStsParSim.h:155
CbmStsParSim::SetProcesses
void SetProcesses(CbmStsELoss eLossModel, Bool_t useLorentzShift, Bool_t useDiffusion, Bool_t useCrossTalk)
Definition: CbmStsParSim.h:136
CbmStsParSim::CrossTalk
Bool_t CrossTalk() const
Check whether cross-talk is applied.
Definition: CbmStsParSim.h:45
CbmStsParSim::fLorentzShift
Bool_t fLorentzShift
Apply Lorentz shift.
Definition: CbmStsParSim.h:154
CbmStsParSim::LorentzShift
Bool_t LorentzShift() const
Check whether Lorentz shift is applied.
Definition: CbmStsParSim.h:76
CbmStsParSim::putParams
virtual void putParams(FairParamList *parList)
Writing parameters to ASCII. Abstract in base class.
Definition: CbmStsParSim.cxx:40
CbmStsParSim
Settings for STS simulation (digitizer)
Definition: CbmStsParSim.h:25
CbmStsParSim::SetGenerateNoise
void SetGenerateNoise(Bool_t choice=kTRUE)
Activate or de-activate inter-event noise.
Definition: CbmStsParSim.h:115
CbmStsParSim::fOnlyPrimaries
Bool_t fOnlyPrimaries
Process sonly primary tracks.
Definition: CbmStsParSim.h:158
CbmStsParSim::Diffusion
Bool_t Diffusion() const
Check whether diffusion is applied.
Definition: CbmStsParSim.h:51
CbmStsParSim::SetOnlyPrimaries
void SetOnlyPrimaries(Bool_t choice=kTRUE)
Process only primary tracks.
Definition: CbmStsParSim.h:125