CbmRoot
|
Settings for STS simulation (digitizer) More...
#include <CbmStsParSim.h>
Public Member Functions | |
CbmStsParSim (const char *name="CbmStsParSim", const char *title="STS parameters", const char *context="Default") | |
Constructor. More... | |
virtual | ~CbmStsParSim () |
Destructor. More... | |
virtual void | clear () |
Reset all parameters. More... | |
Bool_t | CrossTalk () const |
Check whether cross-talk is applied. More... | |
Bool_t | Diffusion () const |
Check whether diffusion is applied. More... | |
CbmStsELoss | ELossModel () const |
Energy loss model. More... | |
Bool_t | EventMode () const |
Check whether event-by-event mode is applied. More... | |
virtual Bool_t | getParams (FairParamList *parList) |
Reading parameters from ASCII. Abstract in base class. More... | |
Bool_t | LorentzShift () const |
Check whether Lorentz shift is applied. More... | |
Bool_t | Noise () const |
Check whether inter-event noise is generated. More... | |
Bool_t | OnlyPrimaries () const |
Process only primary tracks. More... | |
virtual void | putParams (FairParamList *parList) |
Writing parameters to ASCII. Abstract in base class. More... | |
void | SetEventMode (Bool_t choice=kTRUE) |
Set event-by-event simulation mode. More... | |
void | SetGenerateNoise (Bool_t choice=kTRUE) |
Activate or de-activate inter-event noise. More... | |
void | SetOnlyPrimaries (Bool_t choice=kTRUE) |
Process only primary tracks. More... | |
void | SetProcesses (CbmStsELoss eLossModel, Bool_t useLorentzShift, Bool_t useDiffusion, Bool_t useCrossTalk) |
std::string | ToString () const |
String output. More... | |
Private Member Functions | |
ClassDef (CbmStsParSim, 1) | |
Private Attributes | |
Bool_t | fEventMode = kFALSE |
Event-by-event mode. More... | |
CbmStsELoss | fELossModel = CbmStsELoss::kUrban |
Energy loss model. More... | |
Bool_t | fLorentzShift = kTRUE |
Apply Lorentz shift. More... | |
Bool_t | fDiffusion = kTRUE |
Apply diffusion. More... | |
Bool_t | fCrossTalk = kTRUE |
Apply cross-talk. More... | |
Bool_t | fNoise = kTRUE |
Generate inter-event noise. More... | |
Bool_t | fOnlyPrimaries = kFALSE |
Process sonly primary tracks. More... | |
Settings for STS simulation (digitizer)
Definition at line 25 of file CbmStsParSim.h.
CbmStsParSim::CbmStsParSim | ( | const char * | name = "CbmStsParSim" , |
const char * | title = "STS parameters" , |
||
const char * | context = "Default" |
||
) |
Constructor.
|
inlinevirtual |
Destructor.
Definition at line 35 of file CbmStsParSim.h.
|
private |
|
virtual |
Reset all parameters.
Definition at line 24 of file CbmStsParSim.cxx.
|
inline |
Check whether cross-talk is applied.
Definition at line 45 of file CbmStsParSim.h.
References fCrossTalk.
Referenced by CbmStsSimSensorDssd::CalculateResponse(), and CbmStsDigitizeQaReport::Create().
|
inline |
Check whether diffusion is applied.
Definition at line 51 of file CbmStsParSim.h.
References fDiffusion.
Referenced by CbmStsDigitizeQaReport::Create(), CbmStsSimSensorDssdOrtho::PropagateCharge(), and CbmStsSimSensorDssdStereo::PropagateCharge().
|
inline |
Energy loss model.
Definition at line 57 of file CbmStsParSim.h.
References fELossModel.
Referenced by CbmStsDigitizeQaReport::Create(), and CbmStsSimSensorDssd::ProduceCharge().
|
inline |
Check whether event-by-event mode is applied.
Definition at line 63 of file CbmStsParSim.h.
References fEventMode.
|
virtual |
Reading parameters from ASCII. Abstract in base class.
An ASCII I/O is not implemented. The method throws an error.
Definition at line 32 of file CbmStsParSim.cxx.
|
inline |
Check whether Lorentz shift is applied.
Definition at line 76 of file CbmStsParSim.h.
References fLorentzShift.
Referenced by CbmStsDigitizeQaReport::Create(), CbmRecoSts::CreateModules(), CbmStsSimSensorDssdOrtho::PropagateCharge(), and CbmStsSimSensorDssdStereo::PropagateCharge().
|
inline |
Check whether inter-event noise is generated.
Definition at line 82 of file CbmStsParSim.h.
References fNoise.
Referenced by CbmStsDigitize::Exec().
|
inline |
Process only primary tracks.
Definition at line 88 of file CbmStsParSim.h.
References fOnlyPrimaries.
Referenced by CbmStsDigitize::ProcessMCEvent().
|
virtual |
Writing parameters to ASCII. Abstract in base class.
An ASCII I/O is not implemented. The method throws an error.
Definition at line 40 of file CbmStsParSim.cxx.
|
inline |
Set event-by-event simulation mode.
choice | If kTRUE, simulation will be performed event-by-event |
By default, simulation are time-based. In event-by-event simulation, all analogue buffers will be processed and cleared after each event, such that there is no inteference of data from different events.
Definition at line 106 of file CbmStsParSim.h.
References fEventMode.
Referenced by CbmStsDigitize::InitParams(), and CbmStsDigitize::SetGlobalDefaults().
|
inline |
Activate or de-activate inter-event noise.
choice | If kTRUE, inter-event noise will be generated |
By default, noise is generated. This setting will have no effect for event-by-event simulation.
Definition at line 115 of file CbmStsParSim.h.
References fNoise.
Referenced by CbmStsDigitize::InitParams(), and CbmStsDigitize::SetGlobalDefaults().
|
inline |
Process only primary tracks.
choice | If true, secondary tracks will be ignored |
The option to process only primary tracks exists for detector studies. If set, the MC points from secondary tracks will be ignored.
Definition at line 125 of file CbmStsParSim.h.
References fOnlyPrimaries.
Referenced by CbmStsDigitize::UseOnlyPrimaries().
|
inline |
Set physics processes
eLossModel | Energy loss model |
useLorentzShift | If kTRUE, activate Lorentz shift |
useDiffusion | If kTRUE, activate diffusion |
useCrossTalk | If kTRUE, activate cross talk |
Default is: all processes active; energy loss model is kELossUrban.
Definition at line 136 of file CbmStsParSim.h.
References fCrossTalk, fDiffusion, fELossModel, and fLorentzShift.
Referenced by CbmStsDigitize::SetGlobalDefaults(), and CbmStsDigitize::SetProcesses().
std::string CbmStsParSim::ToString | ( | ) | const |
String output.
Definition at line 47 of file CbmStsParSim.cxx.
References fCrossTalk, fDiffusion, fELossModel, fEventMode, fLorentzShift, fNoise, fOnlyPrimaries, kIdeal, kUniform, and kUrban.
Referenced by CbmRecoSts::Init(), and CbmStsDigitize::InitParams().
|
private |
Apply cross-talk.
Definition at line 156 of file CbmStsParSim.h.
Referenced by CrossTalk(), SetProcesses(), and ToString().
|
private |
Apply diffusion.
Definition at line 155 of file CbmStsParSim.h.
Referenced by Diffusion(), SetProcesses(), and ToString().
|
private |
Energy loss model.
Definition at line 153 of file CbmStsParSim.h.
Referenced by ELossModel(), SetProcesses(), and ToString().
|
private |
Event-by-event mode.
Definition at line 152 of file CbmStsParSim.h.
Referenced by EventMode(), SetEventMode(), and ToString().
|
private |
Apply Lorentz shift.
Definition at line 154 of file CbmStsParSim.h.
Referenced by LorentzShift(), SetProcesses(), and ToString().
|
private |
Generate inter-event noise.
Definition at line 157 of file CbmStsParSim.h.
Referenced by Noise(), SetGenerateNoise(), and ToString().
|
private |
Process sonly primary tracks.
Definition at line 158 of file CbmStsParSim.h.
Referenced by OnlyPrimaries(), SetOnlyPrimaries(), and ToString().