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"
13#include "TrigScint/Event/TrigScintHit.h"
14
15namespace trigscint {
16
24 public:
32 TruthHitProducer(const std::string &name, framework::Process &process);
33
35 ~TruthHitProducer() = default;
36
46 void configure(framework::config::Parameters &parameters) override;
47
53 void produce(framework::Event &event) override;
54
56 // TODO: Make use of the global verbose parameter.
57 bool verbose_{false};
58
60 std::string input_collection_;
61
64 std::string input_pass_name_;
65
68 std::string output_collection_;
69
70 private:
71 std::string sim_particles_passname_;
72 std::string input_collection_events_passname_;
73
74}; // TruthHitProducer
75
76} // namespace trigscint
77
78#endif // TRIGSCINT_TRUTHHITPRODUCER_H_
Class providing string constants for the event model.
Base classes for all user event processing components to extend.
Class which stores simulated calorimeter hit information.
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
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 input_pass_name_
Name of the pass that the input collection is on (empty string means take any pass)
bool verbose_
Class to set the verbosity level.
std::string output_collection_
Name of the output collection that will be used to store the selected sim hits.