LDMX Software
RunHeaderAnalyzer.h
1#ifndef RUNHEADERANALYZER_H
2#define RUNHEADERANALYZER_H
3
5#include "Framework/Process.h"
6#include "Framework/RunHeader.h"
7
8namespace framework {
9
11 public:
15 RunHeaderAnalyzer(const std::string& name, framework::Process& process)
16 : framework::Analyzer(name, process) {}
17
21 virtual ~RunHeaderAnalyzer() = default;
22
26 virtual void onNewRun(const ldmx::RunHeader& rh) override;
27
31 virtual void analyze(const framework::Event& event) override;
32};
33
34} // namespace framework
35
36#endif /* RUNHEADERANALYZER_H */
Base classes for all user event processing components to extend.
Class which represents the process under execution.
Base class for a module which does not produce a data product.
virtual void process(Event &event) final
Processing an event for an Analyzer is calling analyze.
Implements an event buffer system for storing event data.
Definition Event.h:40
Class which represents the process under execution.
Definition Process.h:34
virtual void analyze(const framework::Event &event) override
Not used but necessary for an analyzer.
virtual ~RunHeaderAnalyzer()=default
Destructor.
RunHeaderAnalyzer(const std::string &name, framework::Process &process)
Constructor.
virtual void onNewRun(const ldmx::RunHeader &rh) override
This is used to print out the run header on a new run.
Run-specific configuration and data stored in its own output TTree alongside the event TTree in the o...
Definition RunHeader.h:68
All classes in the ldmx-sw project use this namespace.