23#ifndef RestCore_TRestGeant4VetoAnalysisProcess
24#define RestCore_TRestGeant4VetoAnalysisProcess
26#include <TRestEventProcess.h>
30#include "TRestGeant4Event.h"
31#include "TRestGeant4Metadata.h"
45 std::string fVetoVolumesExpression;
48 inline std::string GetVetoVolumesExpression()
const {
return fVetoVolumesExpression; }
55 std::vector<Veto> fVetoVolumes;
65 static Veto GetVetoFromString(
const std::string& vetoString);
68 fGeant4Metadata = metadata;
76 void LoadConfig(
const std::string& configFilename,
const std::string& name =
"");
80 const char* GetProcessName()
const override {
return "geant4VetoAnalysis"; }
A base class for any REST event process.
A base class for any REST event.
An event class to store geant4 generated event information.
void LoadConfig(const std::string &configFilename, const std::string &name="")
Function to load the configuration from an external configuration file.
TRestEvent * ProcessEvent(TRestEvent *inputEvent) override
The main processing event function.
void PrintMetadata() override
Implemented it in the derived metadata class to print out specific metadata information.
void LoadDefaultConfig()
Function to load the default config in absence of RML input.
RESTValue GetInputEvent() const override
Get pointer to input event. Must be implemented in the derived class.
RESTValue GetOutputEvent() const override
Get pointer to output event. Must be implemented in the derived class.
void EndProcess() override
Function to include required actions after all events have been processed.
void InitFromConfigFile() override
Function to read input parameters from the RML TRestGeant4VetoAnalysisProcess metadata section.
void Initialize() override
Function to initialize input/output event members and define the section name.
void InitProcess() override
Process initialization.