23 #ifndef RestCore_TRestGeant4ToDetectorHitsProcess
24 #define RestCore_TRestGeant4ToDetectorHitsProcess
26 #include <TRestDetectorHitsEvent.h>
27 #include <TRestEventProcess.h>
28 #include <TRestGeant4Event.h>
29 #include <TRestGeant4Metadata.h>
52 std::map<std::string, REST_HitType> fHitTypes;
72 void LoadConfig(
const std::string& configFilename,
const std::string& name =
"");
A base class for any REST event process.
A base class for any REST event.
An event class to store geant4 generated event information.
A process to transform a TRestGeant4Event into a TRestDetectorHitsEvent.
void Initialize() override
Function to initialize input/output event members and define the section name.
std::vector< TString > fVolumeSelection
The geometry volume names to be transferred to TRestDetectorHitsEvent.
TRestEvent * ProcessEvent(TRestEvent *inputEvent) override
The main processing event function.
RESTValue GetOutputEvent() const override
Get pointer to output event. Must be implemented in the derived class.
TRestDetectorHitsEvent * fHitsEvent
A pointer to the output TRestDetectorHitsEvent.
const char * GetProcessName() const override
Returns the name of this process.
void LoadConfig(const std::string &configFilename, const std::string &name="")
Function to load the configuration from an external configuration file.
TRestGeant4ToDetectorHitsProcess()
Default constructor.
~TRestGeant4ToDetectorHitsProcess() override
Default destructor.
void InitProcess() override
Process initialization. This process accesses the information inside TRestGeant4Metadata to identify ...
TRestGeant4Metadata * fGeant4Metadata
A pointer to the Geant4 simulation conditions stored in TRestGeant4Metadata.
void InitFromConfigFile() override
Function to read input parameters from the RML TRestGeant4ToDetectorHitsProcess metadata section.
RESTValue GetInputEvent() const override
Get pointer to input event. Must be implemented in the derived class.
TRestGeant4Event * fGeant4Event
A pointer to the input TRestGeant4Event.
void PrintMetadata() override
It prints on screen relevant data members from this class.
std::vector< Int_t > fVolumeId
The volume ids from the volumes selected for transfer to TRestDetectorHitsEvent.
void LoadDefaultConfig()
Function to load the default config in absence of RML input.