LDMX Software
HcalSingleEndRecProducer.h
1#ifndef HCALSINGLEENDRECPRODUCER_H
2#define HCALSINGLEENDRECPRODUCER_H
3
6
7namespace hcal {
10 std::string pass_name_{""};
12 std::string coll_name_{"HcalDigis"};
14 std::string rec_pass_name_{""};
16 std::string rec_coll_name_{"HcalRecHits"};
17
25 unsigned int isoi_;
26
27 private:
52 std::tuple<double, double, int> extractMeasurements(
53 const ldmx::HgcrocDigiCollection::HgcrocDigi& digi, double pedestal,
54 double bx_shift);
55
56 public:
57 HcalSingleEndRecProducer(const std::string& n, framework::Process& p)
58 : Producer(n, p) {}
59 virtual ~HcalSingleEndRecProducer() = default;
60
62 void produce(framework::Event& event) override;
63
64}; // HcalSingleEndRecProducer
65
66} // namespace hcal
67
68#endif /* HCALSINGLEENDRECPRODUCER_H */
Base classes for all user event processing components to extend.
Class that represents a digitized hit in a calorimeter cell readout by an HGCROC.
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.
Class encapsulating parameters for configuring a processor.
Definition Parameters.h:26
double mip_energy_
energy per MIP [MeV]
double pe_per_mip_
number of PEs per MIP
std::string pass_name_
name of pass of digis to use
void produce(framework::Event &event) override
Process the event and put new data products into it.
void configure(framework::config::Parameters &p) override
Callback for the EventProcessor to configure itself from the given set of parameters.
std::string rec_coll_name_
name of rechits to reconstruct
std::tuple< double, double, int > extractMeasurements(const ldmx::HgcrocDigiCollection::HgcrocDigi &digi, double pedestal, double bx_shift)
extract toa, sum adc, and sum tot from the input raw digi
std::string coll_name_
name of digis to reconstruct
unsigned int isoi_
sample of interest index_
double clock_cycle_
length of clock cycle [ns]
std::string rec_pass_name_
name of pass of rechits to use
One DIGI signal coming from the HGC ROC.