LDMX Software
TruthHitProducer.h
1
2#ifndef TRIGSCINT_TRUTHHITPRODUCER_H_
3#define TRIGSCINT_TRUTHHITPRODUCER_H_
4
5/***************/
6/* ldmx-sw */
7/***************/
8
9#include "Framework/Configure/Parameters.h"
11
12namespace trigscint {
13
21 public:
29 TruthHitProducer(const std::string& name, framework::Process& process);
30
32 ~TruthHitProducer() = default;
33
43 void configure(framework::config::Parameters& parameters) override;
44
50 void produce(framework::Event& event) override;
51
52 private:
54 std::string input_collection_;
55
58 std::string input_pass_name_;
61
64 std::string output_collection_;
65
66}; // TruthHitProducer
67
68} // namespace trigscint
69
70#endif // TRIGSCINT_TRUTHHITPRODUCER_H_
Base classes for all user event processing components to extend.
Implements an event buffer system for storing event data.
Definition Event.h:40
Class which represents the process under execution.
Definition Process.h:34
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:26
Producer making a collection based on some truth info cuts.
TruthHitProducer(const std::string &name, framework::Process &process)
Constructor.
~TruthHitProducer()=default
Destructor.
std::string input_collection_
Name of the input collection containing the sim hits.
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.
std::string sim_particles_pass_name_
Name of the pass that the input simparticles collection is on.
std::string input_pass_name_
Name of the pass that the input collection is on (empty string means take any pass)
std::string output_collection_
Name of the output collection that will be used to store the selected sim hits.