LDMX Software
TestBeamHitAnalyzer.h
Go to the documentation of this file.
1
7#ifndef TRIGSCINT_TESTBEAMHITANALYZER_H
8#define TRIGSCINT_TESTBEAMHITANALYZER_H
9
10// LDMX Framework
11#include "Framework/Configure/Parameters.h"
12#include "Framework/EventProcessor.h" //Needed to declare processor
13#include "TH1.h"
14#include "TH2.h"
16
17namespace trigscint {
18
24 public:
26 const std::string& name,
27 framework::Process& process); // : framework::Analyzer(name, process) {}
28 virtual ~TestBeamHitAnalyzer() = default;
29 void configure(framework::config::Parameters& parameters) override;
30
31 void analyze(const framework::Event& event) override;
32
33 void onProcessStart() override;
34
35 void onProcessEnd() override;
36
37 private:
38 std::vector<std::vector<TH1F*> > vChargeVsTime;
39
40 // configurable parameters
41 std::string inputCol_;
42 std::string inputPassName_{""};
43 std::vector<double> peds_;
44 int startSample_{0};
45
46 // plotting stuff
47 int nEv{200};
48 int nChannels{16};
49 // int nTrkMax{100};
50 TH2F* hEvDisp;
51 TH2F* hEvDispPE;
52
53 int fillNb{0};
54
55 // match nev, nchan above
56 TH1F* hOut[200][16];
57
58 TH1F* hPE[16];
59 TH1F* hPEinClusters[16];
60 TH2F* hPEVsDelta[16];
61 TH2F* hDeltaPEVsDelta[16];
62 TH2F* hPEmaxVsDelta;
63};
64} // namespace trigscint
65
66#endif /* TRIGSCINT_TESTBEAMHITANALYZER_H */
Base classes for all user event processing components to extend.
Class that stores full reconstructed (linearized) readout QIE sample from the TS.
Base class for a module which does not produce a data product.
Implements an event buffer system for storing event data.
Definition Event.h:41
Class which represents the process under execution.
Definition Process.h:36
Class encapsulating parameters for configuring a processor.
Definition Parameters.h:27
void configure(framework::config::Parameters &parameters) override
Callback for the EventProcessor to configure itself from the given set of parameters.
void onProcessEnd() override
Callback for the EventProcessor to take any necessary action when the processing of events finishes,...
void onProcessStart() override
Callback for the EventProcessor to take any necessary action when the processing of events starts,...
void analyze(const framework::Event &event) override
Process the event and make histograms or summaries.