LDMX Software
StandaloneG4.cxx
1
8
10 public:
11 StandaloneG4(const std::string& name, framework::Process& p)
12 : framework::Analyzer(name, p) {}
13 ~StandaloneG4() override = default;
14 void onProcessStart() override;
15 void analyze(const framework::Event& event) override;
16};
17
19 histograms_.create("action_type", "User Action Type",
20 static_cast<int>(simcore::TYPE::NONE), 0.5,
21 static_cast<int>(simcore::TYPE::NONE) + 0.5);
22}
23
25 histograms_.fill("action_type", simcore::TYPE::EVENT);
26}
27
Base classes for all user event processing components to extend.
#define DECLARE_ANALYZER(CLASS)
Macro which allows the framework to construct an analyzer given its name during configuration.
File holding UserAction prototype and supporting macro.
check that a standalone processor can use headers from a library that depends on Geant4 (Issue #2106)
void analyze(const framework::Event &event) override
Process the event and make histograms or summaries.
void onProcessStart() override
Callback for the EventProcessor to take any necessary action when the processing of events starts,...
Base class for a module which does not produce a data product.
HistogramPool histograms_
helper object for making and filling histograms
Implements an event buffer system for storing event data.
Definition Event.h:40
void create(const config::Parameters &p)
Create a histogram from the input configuration parameters.
void fill(const std::string &name, const T &val)
Fill a 1D histogram.
Class which represents the process under execution.
Definition Process.h:34