12 #ifndef RestCore_TRestDetectorElectronDiffusionProcess
13 #define RestCore_TRestDetectorElectronDiffusionProcess
16 #include <TRestDetectorGas.h>
17 #include <TRestDetectorHitsEvent.h>
18 #include <TRestDetectorReadout.h>
19 #include <TRestEventProcess.h>
35 void LoadDefaultConfig();
38 Double_t fElectricField;
40 Double_t fGasPressure;
42 Double_t fLongitudinalDiffusionCoefficient;
43 Double_t fTransversalDiffusionCoefficient;
44 Bool_t fPoissonElectronExcitation;
45 Bool_t fUnitElectronEnergy;
48 Bool_t fCheckIsInside =
true;
58 void LoadConfig(
const std::string& configFilename,
const std::string& name =
"");
63 RESTMetadata <<
" eField : " << fElectricField *
units(
"V/cm") <<
" V/cm" <<
RESTendl;
64 RESTMetadata <<
" attachment coeficient : " << fAttachment <<
" V/cm" <<
RESTendl;
65 RESTMetadata <<
" gas pressure : " << fGasPressure <<
" atm" <<
RESTendl;
66 RESTMetadata <<
" longitudinal diffusion coefficient : " << fLongitudinalDiffusionCoefficient
68 RESTMetadata <<
" transversal diffusion coefficient : " << fTransversalDiffusionCoefficient
70 RESTMetadata <<
" W value : " << fWValue <<
" eV" <<
RESTendl;
72 RESTMetadata <<
" Maximum number of hits : " << fMaxHits <<
RESTendl;
74 RESTMetadata <<
" seed : " << fSeed <<
RESTendl;
81 const char* GetProcessName()
const override {
return "electronDiffusion"; }
83 inline Double_t GetElectricField()
const {
return fElectricField; }
84 inline Double_t GetAttachmentCoefficient()
const {
return fAttachment; }
85 inline Double_t GetGasPressure()
const {
return fGasPressure; }
void InitProcess() override
To be executed at the beginning of the run (outside event loop)
RESTValue GetOutputEvent() const override
Get pointer to output event. Must be implemented in the derived class.
void EndProcess() override
To be executed at the end of the run (outside event loop)
void InitFromConfigFile() override
To make settings from rml file. This method must be implemented in the derived class.
TRestEvent * ProcessEvent(TRestEvent *inputEvent) override
Process one event.
RESTValue GetInputEvent() const override
Get pointer to input event. Must be implemented in the derived class.
void PrintMetadata() override
Implemented it in the derived metadata class to print out specific metadata information.
void Initialize() override
Making default settings.
A metadata class to generate/store a readout description.
A base class for any REST event process.
void BeginPrintProcess()
[name, cut range]
A base class for any REST event.