2#include "Recon/Examples/MyProcessor.h"
16 int my_parameter = parameters.
getParameter<
int>(
"my_parameter");
18 std::cout <<
"MyProcessor has my_parameter = " << my_parameter << std::endl;
24 if (!event.
exists(
"EcalRecHits"))
return;
27 const std::vector<ldmx::EcalHit> hits =
#define DECLARE_PRODUCER_NS(NS, CLASS)
Macro which allows the framework to construct a producer given its name during configuration.
Implements an event buffer system for storing event data.
bool exists(const std::string &name, const std::string &passName="", bool unique=true) const
Check for the existence of an object or collection with the given name and pass name in the event.
Class which represents the process under execution.
Class encapsulating parameters for configuring a processor.
T getParameter(const std::string &name) const
Retrieve the parameter of the given name.
Stores reconstructed hit information from the ECAL.
void Print() const
Print a text representation of this object.
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 ¶meters) override
Configure the processor using the given user specified parameters.
All classes in the ldmx-sw project use this namespace.