5#include "Framework/RunHeader.h"
11 : histograms_{[this]() -> TDirectory * {
14 the_log_{logging::makeLogger(name)},
19 return process_.getConditions();
23 return *(process_.getEventHeader());
26TDirectory *EventProcessor::getHistoDirectory() {
28 histo_dir_ = process_.makeHistoDirectory(name_);
35 const std::string &purposeString) {
36 process_.getStorageController().addHint(name_, hint, purposeString);
39int EventProcessor::getLogFrequency()
const {
40 return process_.getLogFrequency();
43int EventProcessor::getRunNumber()
const {
return process_.getRunNumber(); }
45void EventProcessor::createHistograms(
46 const std::vector<framework::config::Parameters> &histos) {
47 for (
auto const &h : histos) {
48 histograms_.create(h);
54Producer::Producer(
const std::string &name,
Process &process)
Base classes for all user event processing components to extend.
#define DEFINE_FACTORY(classtype)
This should go into an implementation file for your prototype class.
Class which represents the process under execution.
Analyzer(const std::string &name, Process &process)
Class constructor.
Container and cache for conditions and conditions providers.
Base class for all event processing components.
EventProcessor(const std::string &name, Process &process)
Class constructor.
TDirectory * getHistoDirectory()
Access/create a directory in the histogram file for this event processor to create histograms and ana...
Class which represents the process under execution.
Hint
Hints that can be provided by processors to the storage controller.
All classes in the ldmx-sw project use this namespace.