LDMX Software
TrigScintRecHitProducer.h
Go to the documentation of this file.
1
7#ifndef TRIGSCINT_TRIGSCINTDIGIPRODUCER_H
8#define TRIGSCINT_TRIGSCINTDIGIPRODUCER_H
9
10/*~~~~~~~~~~*/
11/* ROOT */
12/*~~~~~~~~~~*/
13#include "TRandom3.h"
14
15// LDMX
16#include "DetDescr/TrigScintID.h"
19#include "TrigScint/Event/TrigScintHit.h"
20#include "TrigScint/Event/TrigScintQIEDigis.h"
21
22/*~~~~~~~~~~~~~~~*/
23/* Framework */
24/*~~~~~~~~~~~~~~~*/
25#include "Framework/Configure/Parameters.h"
27
28/*~~~~~~~~~~~*/
29/* TrigScint */
30/*~~~~~~~~~~~*/
31#include "TrigScint/SimQIE.h"
32
33namespace trigscint {
34
42 public:
43 TrigScintRecHitProducer(const std::string& name, framework::Process& process);
44
46
53 void configure(framework::config::Parameters& parameters) override;
54
55 void produce(framework::Event& event) override;
56
57 private:
59 // TODO: Make use of the global verbose parameter.
60 bool verbose_{false};
61
63 std::string inputCollection_;
64
67 std::string inputPassName_;
68
71 std::string outputCollection_;
72
74 double gain_{1e6};
75
77 double pedestal_{6.0};
78
80 double mevPerMip_{1.40};
81
83 double pePerMip_{13.5};
84
87};
88
89} // namespace trigscint
90
91#endif
Class providing string constants for the event model.
Base classes for all user event processing components to extend.
Utility used to generate noise hits.
Implements an event buffer system for storing event data.
Definition Event.h:41
Class which represents the process under execution.
Definition Process.h:36
Base class for a module which produces a data product.
Class encapsulating parameters for configuring a processor.
Definition Parameters.h:27
Organizes digis into TrigScintHits, linearizes TDC and ADC info, and converts amplitudes to PEs.
std::string inputPassName_
Name of the pass that the input collection is on (empty string means take any pass)
void produce(framework::Event &event) override
Process the event and put new data products into it.
double pePerMip_
Total number of photoelectrons per MIP.
void configure(framework::config::Parameters &parameters) override
Callback for the processor to configure itself from the given set of parameters.
std::string inputCollection_
Name of the input collection containing the sim hits.
int sample_of_interest_
Total number of photoelectrons per MIP.
bool verbose_
Class to set the verbosity level.
std::string outputCollection_
Name of the output collection that will be used to stored the digitized trigger scintillator hits.