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;
43 Double_t fLongitudinalDiffusionCoefficient;
44 Double_t fTransversalDiffusionCoefficient;
45 Bool_t fUnitElectronEnergy;
48 Bool_t fCheckIsInside =
true;
49 Bool_t fUseFanoFactor =
false;
50 Bool_t fPoissonElectronExcitation =
false;
60 void LoadConfig(
const std::string& configFilename,
const std::string& name =
"");
65 RESTMetadata <<
" eField : " << fElectricField *
units(
"V/cm") <<
" V/cm" <<
RESTendl;
66 RESTMetadata <<
" attachment coefficient : " << fAttachment <<
" V/cm" <<
RESTendl;
67 RESTMetadata <<
" gas pressure : " << fGasPressure <<
" atm" <<
RESTendl;
68 RESTMetadata <<
" longitudinal diffusion coefficient : " << fLongitudinalDiffusionCoefficient
70 RESTMetadata <<
" transversal diffusion coefficient : " << fTransversalDiffusionCoefficient
72 RESTMetadata <<
" W value : " << fWValue <<
" eV" <<
RESTendl;
74 RESTMetadata <<
" Maximum number of hits : " << fMaxHits <<
RESTendl;
76 RESTMetadata <<
" seed : " << fSeed <<
RESTendl;
83 const char* GetProcessName()
const override {
return "electronDiffusion"; }
85 inline Double_t GetElectricField()
const {
return fElectricField; }
86 inline Double_t GetAttachmentCoefficient()
const {
return fAttachment; }
87 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.