CbmRoot
CbmStsParSim.cxx
Go to the documentation of this file.
1
6
#include "
CbmStsParSim.h
"
7
8
#include <FairLogger.h>
// for LOG, Logger
9
10
#include <sstream>
// for operator<<, basic_ostream, stringstream
11
#include <string>
// for char_traits
12
13
ClassImp
(
CbmStsParSim
)
14
15
// ----- Constructor ----------------------------------------------------
16
CbmStsParSim::CbmStsParSim
(
const
char
* name,
17
const
char
* title,
18
const
char
* context)
19
: FairParGenericSet(name, title, context) {}
20
// --------------------------------------------------------------------------
21
22
23
// ----- Reset ----------------------------------------------------------
24
void
CbmStsParSim::clear
() {
25
status = kFALSE;
26
resetInputVersions();
27
}
28
// --------------------------------------------------------------------------
29
30
31
// ----- Read parameters from ASCII file --------------------------------
32
Bool_t
CbmStsParSim::getParams
(FairParamList*) {
33
LOG(fatal) << GetName() <<
": ASCII input is not defined!"
;
34
return
kFALSE;
35
}
36
// --------------------------------------------------------------------------
37
38
39
// ----- Write parameters from ASCII file -------------------------------
40
void
CbmStsParSim::putParams
(FairParamList*) {
41
LOG(fatal) << GetName() <<
": ASCII output is not defined!"
;
42
}
43
// --------------------------------------------------------------------------
44
45
46
// ----- String output --------------------------------------------------
47
std::string
CbmStsParSim::ToString
()
const
{
48
std::stringstream ss;
49
ss <<
"Mode: "
<< (
fEventMode
?
"event"
:
"stream"
);
50
ss <<
" | Diffusion: "
<< (
fDiffusion
?
"ON"
:
"OFF"
);
51
ss <<
" | Lorentz shift: "
<< (
fLorentzShift
?
"ON"
:
"OFF"
);
52
ss <<
" | Cross-talk: "
<< (
fCrossTalk
?
"ON"
:
"OFF"
);
53
ss <<
" | Energy loss: "
;
54
if
(
fELossModel
==
CbmStsELoss::kIdeal
)
55
ss <<
"ideal"
;
56
else
if
(
fELossModel
==
CbmStsELoss::kUniform
)
57
ss <<
"uniform"
;
58
else
if
(
fELossModel
==
CbmStsELoss::kUrban
)
59
ss <<
"Urban model"
;
60
else
61
ss <<
"unknown"
;
62
ss <<
" | Noise: "
<< (
fNoise
?
"ON"
:
"OFF"
);
63
if
(
fOnlyPrimaries
) ss <<
" | ONLY PRIMARIES"
;
64
return
ss.str();
65
}
66
// --------------------------------------------------------------------------
CbmStsParSim::fCrossTalk
Bool_t fCrossTalk
Apply cross-talk.
Definition:
CbmStsParSim.h:156
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::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.h
CbmStsParSim::getParams
virtual Bool_t getParams(FairParamList *parList)
Reading parameters from ASCII. Abstract in base class.
Definition:
CbmStsParSim.cxx:32
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::fLorentzShift
Bool_t fLorentzShift
Apply Lorentz shift.
Definition:
CbmStsParSim.h:154
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::fOnlyPrimaries
Bool_t fOnlyPrimaries
Process sonly primary tracks.
Definition:
CbmStsParSim.h:158
CbmStsELoss::kIdeal
@ kIdeal
ClassImp
ClassImp(CbmStsParSim) CbmStsParSim
Definition:
CbmStsParSim.cxx:13
CbmStsELoss::kUniform
@ kUniform
core
detectors
sts
CbmStsParSim.cxx
Generated on Wed Oct 28 2020 15:11:45 for CbmRoot by
1.8.18