LDMX Software
TrigScintFirmwareHitProducer.h
Go to the documentation of this file.
1
7#ifndef TRIGSCINT_TRIGSCINTFIRMWAREHITPRODUCER_H
8#define TRIGSCINT_TRIGSCINTFIRMWAREHITPRODUCER_H
9
10/*~~~~~~~~~~*/
11/* ROOT */
12/*~~~~~~~~~~*/
13
14// LDMX
15
16/*~~~~~~~~~~~~~~~*/
17/* Framework */
18/*~~~~~~~~~~~~~~~*/
19#include "Framework/Configure/Parameters.h"
21
22/*~~~~~~~~~~~*/
23/* TrigScint */
24/*~~~~~~~~~~~*/
25
26namespace trigscint {
27
33 public:
34 TrigScintFirmwareHitProducer(const std::string& name,
36 : Producer(name, process) {}
37
39
40 void produce(framework::Event& event) override;
41
46 private:
48 std::string input_collection_;
49
52 std::string input_pass_name_;
53
56 std::string output_collection_;
57
59 double gain_{1e6};
60
62 double pedestal_{6.0};
63
65 double mev_per_mip_{1.40};
66
68 double pe_per_mip_{13.5};
69
72
73 std::string test_collection_;
74
75 bool do_test_{true};
76};
77
78} // namespace trigscint
79
80#endif /* TRIGSCINT_TRIGSCINTFIRMWAREHITPRODUCER_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.
Producer(const std::string &name, Process &process)
Class constructor.
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
std::string output_collection_
Name of the output collection that will be used to stored the digitized trigger scintillator hits.
void configure(framework::config::Parameters &ps) override
Callback for the EventProcessor to configure itself from the given set of parameters.
int sample_of_interest_
Total number of photoelectrons per MIP.
void produce(framework::Event &event) override
Process the event and put new data products into it.
std::string input_collection_
add a hit at index idx to a cluster
std::string input_pass_name_
Name of the pass that the input collection is on (empty string means take any pass)
double pe_per_mip_
Total number of photoelectrons per MIP.