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. | |
virtual | ~CbmStsParSim () |
Destructor. | |
virtual void | clear () |
Reset all parameters. | |
Bool_t | CrossTalk () const |
Check whether cross-talk is applied. | |
Bool_t | Diffusion () const |
Check whether diffusion is applied. | |
CbmStsELoss | ELossModel () const |
Energy loss model. | |
Bool_t | EventMode () const |
Check whether event-by-event mode is applied. | |
virtual Bool_t | getParams (FairParamList *parList) |
Reading parameters from ASCII. Abstract in base class. | |
Bool_t | LorentzShift () const |
Check whether Lorentz shift is applied. | |
Bool_t | Noise () const |
Check whether inter-event noise is generated. | |
Bool_t | OnlyPrimaries () const |
Process only primary tracks. | |
virtual void | putParams (FairParamList *parList) |
Writing parameters to ASCII. Abstract in base class. | |
void | SetEventMode (Bool_t choice=kTRUE) |
Set event-by-event simulation mode. | |
void | SetGenerateNoise (Bool_t choice=kTRUE) |
Activate or de-activate inter-event noise. | |
void | SetOnlyPrimaries (Bool_t choice=kTRUE) |
Process only primary tracks. | |
void | SetProcesses (CbmStsELoss eLossModel, Bool_t useLorentzShift, Bool_t useDiffusion, Bool_t useCrossTalk) |
std::string | ToString () const |
String output. | |
Private Member Functions | |
ClassDef (CbmStsParSim, 1) | |
Private Attributes | |
Bool_t | fEventMode = kFALSE |
Event-by-event mode. | |
CbmStsELoss | fELossModel = CbmStsELoss::kUrban |
Energy loss model. | |
Bool_t | fLorentzShift = kTRUE |
Apply Lorentz shift. | |
Bool_t | fDiffusion = kTRUE |
Apply diffusion. | |
Bool_t | fCrossTalk = kTRUE |
Apply cross-talk. | |
Bool_t | fNoise = kTRUE |
Generate inter-event noise. | |
Bool_t | fOnlyPrimaries = kFALSE |
Process sonly primary tracks. | |
Settings for STS simulation (digitizer)
Definition at line 29 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 38 of file CbmStsParSim.h.
|
private |
|
virtual |
Reset all parameters.
Definition at line 28 of file CbmStsParSim.cxx.
|
inline |
Check whether cross-talk is applied.
Definition at line 48 of file CbmStsParSim.h.
References fCrossTalk.
Referenced by CbmStsSimSensorDssd::CalculateResponse(), and CbmStsDigitizeQaReport::Create().
|
inline |
Check whether diffusion is applied.
Definition at line 54 of file CbmStsParSim.h.
References fDiffusion.
Referenced by CbmStsDigitizeQaReport::Create(), CbmStsSimSensorDssdOrtho::PropagateCharge(), and CbmStsSimSensorDssdStereo::PropagateCharge().
|
inline |
Energy loss model.
Definition at line 60 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 66 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 37 of file CbmStsParSim.cxx.
|
inline |
Check whether Lorentz shift is applied.
Definition at line 79 of file CbmStsParSim.h.
References fLorentzShift.
Referenced by CbmStsDigitizeQaReport::Create(), CbmRecoSts::CreateModules(), CbmTaskStsHitFinderParWrite::CreateModules(), CbmStsSimSensorDssdOrtho::PropagateCharge(), and CbmStsSimSensorDssdStereo::PropagateCharge().
|
inline |
Check whether inter-event noise is generated.
Definition at line 85 of file CbmStsParSim.h.
References fNoise.
Referenced by CbmStsDigitize::Exec().
|
inline |
Process only primary tracks.
Definition at line 91 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 46 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 109 of file CbmStsParSim.h.
References fEventMode.
Referenced by CbmStsDigitize::InitParams(), CbmStsDigitizePixel::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 118 of file CbmStsParSim.h.
References fNoise.
Referenced by CbmStsDigitize::InitParams(), CbmStsDigitizePixel::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 128 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 139 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 51 of file CbmStsParSim.cxx.
References fCrossTalk, fDiffusion, fELossModel, fEventMode, fLorentzShift, fNoise, fOnlyPrimaries, kIdeal, kUniform, and kUrban.
Referenced by CbmRecoSts::Init(), CbmRecoStsPixel::Init(), CbmTaskStsHitFinderParWrite::Init(), CbmStsDigitize::InitParams(), and CbmStsDigitizePixel::InitParams().
|
private |
Apply cross-talk.
Definition at line 157 of file CbmStsParSim.h.
Referenced by CrossTalk(), SetProcesses(), and ToString().
|
private |
Apply diffusion.
Definition at line 156 of file CbmStsParSim.h.
Referenced by Diffusion(), SetProcesses(), and ToString().
|
private |
Energy loss model.
Definition at line 154 of file CbmStsParSim.h.
Referenced by ELossModel(), SetProcesses(), and ToString().
|
private |
Event-by-event mode.
Definition at line 153 of file CbmStsParSim.h.
Referenced by EventMode(), SetEventMode(), and ToString().
|
private |
Apply Lorentz shift.
Definition at line 155 of file CbmStsParSim.h.
Referenced by LorentzShift(), SetProcesses(), and ToString().
|
private |
Generate inter-event noise.
Definition at line 158 of file CbmStsParSim.h.
Referenced by Noise(), SetGenerateNoise(), and ToString().
|
private |
Process sonly primary tracks.
Definition at line 159 of file CbmStsParSim.h.
Referenced by OnlyPrimaries(), SetOnlyPrimaries(), and ToString().