LDMX Software
TestBeamHitProducer.h
Go to the documentation of this file.
1
7#ifndef TRIGSCINT_TESTBEAMHITPRODUCER_H
8#define TRIGSCINT_TESTBEAMHITPRODUCER_H
9
10// LDMX
11#include "DetDescr/TrigScintID.h"
15#include "TrigScint/Event/TrigScintHit.h"
16
17/*~~~~~~~~~~~~~~~*/
18/* Framework */
19/*~~~~~~~~~~~~~~~*/
20#include "Framework/Configure/Parameters.h"
22
23namespace trigscint {
24
32 public:
33 TestBeamHitProducer(const std::string& name, framework::Process& process);
34
35 virtual ~TestBeamHitProducer() = default;
36
43 void configure(framework::config::Parameters& parameters) override;
44
45 void produce(framework::Event& event) override;
46
47 private:
49
51 std::string inputCol_;
52
55 std::string inputPassName_;
56
59 std::string outputCollection_;
60
62 std::vector<double> gain_;
63
65 std::vector<double> peds_;
66
68 std::vector<double> MIPresponse_;
69
71 int startSample_{10};
72
75
79
82
85 bool doCleanHits_{false};
86};
87
88} // namespace trigscint
89
90#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.
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
Organizes digis into TrigScintHits, based on linearized full event readout from test beam/test stand.
std::vector< double > MIPresponse_
channel MIP response for intercalibration
std::string outputCollection_
Name of the output collection that will be used to stored the trigger scintillator hits.
int startSample_
start sample for pulse integration (not including any fiber offsets)
int nInstrumentedChannels_
Number of instrumented channels in module.
int pulseWidth_
Total number of samples used in pulse integration.
void configure(framework::config::Parameters &parameters) override
Callback for the processor to configure itself from the given set of parameters.
int pulseWidthLYSO_
Total number of samples used in pulse integration for LYSO (long decay, might need wider window)
std::vector< double > gain_
SiPM gain, per channel (all initialized to 2e6 in default config)
bool doCleanHits_
boolean indicating whether we want to apply quality criteria in hit reconstruction
std::string inputCol_
Set the local verbosity level.
std::string inputPassName_
Name of the pass that the input collection is on (empty string means take any pass)
std::vector< double > peds_
channel pedestals [fC]
void produce(framework::Event &event) override
Process the event and put new data products into it.