LDMX Software
MyProcessor.h
1
2#ifndef RECON_EXAMPLES_MY_PROCESSOR_H_
3#define RECON_EXAMPLES_MY_PROCESSOR_H_
4
5/***************/
6/* ldmx-sw */
7/***************/
8#include "Ecal/Event/EcalHit.h"
9#include "Framework/Configure/Parameters.h"
11
12namespace recon {
13
21 public:
29 MyProcessor(const std::string &name, framework::Process &process);
30
32 virtual ~MyProcessor() = default;
33
43 void configure(framework::config::Parameters &parameters) override;
44
50 void produce(framework::Event &event) override;
51
52 private:
55 std::string ecal_rec_hits_event_passname_;
56
57}; // MyProcessor
58
59} // namespace recon
60
61#endif // RECON_EXAMPLES_MY_PROCESSOR_H_
Base classes for all user event processing components to extend.
Implements an event buffer system for storing event data.
Definition Event.h:42
Class which represents the process under execution.
Definition Process.h:36
Base class for a module which produces a data product.
virtual void process(Event &event) final
Processing an event for a Producer is calling produce.
Class encapsulating parameters for configuring a processor.
Definition Parameters.h:29
Minimal example of a processor.
Definition MyProcessor.h:20
std::string ecal_rechits_passname_
Pass name for the EcalRecHits collection.
Definition MyProcessor.h:54
virtual ~MyProcessor()=default
Destructor.
MyProcessor(const std::string &name, framework::Process &process)
Constructor.
void produce(framework::Event &event) override
Process the event and put new data products into it.
void configure(framework::config::Parameters &parameters) override
Configure the processor using the given user specified parameters.