LDMX Software
Standalone.cxx
2
4 public:
5 Standalone(const std::string& name, framework::Process& p)
6 : framework::Analyzer(name, p) {}
7 ~Standalone() override = default;
8 void onProcessStart() override;
9 void analyze(const framework::Event& event) override;
10};
11
13 histograms_.create("event", "Event Number", 11, 0, 20);
14}
15
17 histograms_.fill("event", event.getEventNumber());
18}
19
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.
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:42
int getEventNumber() const
Get the event number.
Definition Event.h:81
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:37