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
11
12/*~~~~~~~~~~~~~~~*/
13/* Framework */
14/*~~~~~~~~~~~~~~~*/
15#include "Framework/Configure/Parameters.h"
17
18/*~~~~~~~~~~~*/
19/* TrigScint */
20/*~~~~~~~~~~~*/
21
22namespace trigscint {
23
31 public:
32 EventReadoutProducer(const std::string& name, framework::Process& process);
33
34 ~EventReadoutProducer() = default;
35
42 void configure(framework::config::Parameters& parameters) override;
43
44 void produce(framework::Event& event) override;
45
46 private:
48 // TODO: Make use of the global verbose parameter.
49 bool verbose_{false};
50
52 std::string input_collection_;
53
56 std::string input_pass_name_;
57
60 std::string output_collection_;
61
64
68
71};
72
73} // namespace trigscint
74
75#endif
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
Linearizes ADC info to charge, calculates channel pedestal and noise levels (in charge)
bool verbose_
Class to set the verbosity level.
std::string output_collection_
Name of the output collection that will be used to stored the digitized trigger scintillator hits.
std::string input_pass_name_
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.
int time_shift_
Number of time samples to shift readout by, to align fibers if there is an offset.
int fiber_to_shift_
Which of the fibers to set the time shift for (0 or 1)
std::string input_collection_
Name of the input collection containing the sim hits.
void configure(framework::config::Parameters &parameters) override
Callback for the processor to configure itself from the given set of parameters.
int n_ped_samples_
Number of initial time samples averaged over in the pedestal calculation.