LDMX Software
EventReadoutProducer.h
Go to the documentation of this file.
1
7#ifndef TRIGSCINT_EVENTREADOUTPRODUCER_H
8#define TRIGSCINT_EVENTREADOUTPRODUCER_H
9
10// LDMX
13#include "TrigScint/Event/TrigScintQIEDigis.h"
14
15/*~~~~~~~~~~~~~~~*/
16/* Framework */
17/*~~~~~~~~~~~~~~~*/
18#include "Framework/Configure/Parameters.h"
20
21/*~~~~~~~~~~~*/
22/* TrigScint */
23/*~~~~~~~~~~~*/
24#include "TrigScint/SimQIE.h"
25
26namespace trigscint {
27
35 public:
36 EventReadoutProducer(const std::string& name, framework::Process& process);
37
38 ~EventReadoutProducer() = default;
39
46 void configure(framework::config::Parameters& parameters) override;
47
48 void produce(framework::Event& event) override;
49
50 private:
52 // TODO: Make use of the global verbose parameter.
53 bool verbose_{false};
54
56 std::string inputCollection_;
57
60 std::string inputPassName_;
61
64 std::string outputCollection_;
65
68
71 int timeShift_{5};
72
75};
76
77} // namespace trigscint
78
79#endif
Class providing string constants for the event model.
Base classes for all user event processing components to extend.
Class that stores full reconstructed (linearized) readout QIE sample from the TS.
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
Linearizes ADC info to charge, calculates channel pedestal and noise levels (in charge)
int fiberToShift_
Which of the fibers to set the time shift for (0 or 1)
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.
int nPedSamples_
Number of initial time samples averaged over in the pedestal calculation.
std::string inputCollection_
Name of the input collection containing the sim hits.
int timeShift_
Number of time samples to shift readout by, to align fibers if there is an offset.
void produce(framework::Event &event) override
Process the event and put new data products into it.
std::string inputPassName_
Name of the pass that the input collection is on (empty string means take any pass)
void configure(framework::config::Parameters &parameters) override
Callback for the processor to configure itself from the given set of parameters.