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*> > v_charge_vs_time_;
39
40 // configurable parameters
41 std::string input_col_;
42 std::string input_pass_name_{""};
43 std::vector<double> peds_;
44 int start_sample_{0};
45
46 // plotting stuff
47 int n_ev_{200};
48 int n_channels_{16};
49 // int nTrkMax{100};
50 TH2F* h_ev_disp_;
51 TH2F* h_ev_disp_pe_;
52
53 int fill_nb_{0};
54
55 // match nev, nchan above
56 TH1F* h_out_[200][16];
57
58 TH1F* h_pe_[16];
59 TH1F* h_pe_in_clusters_[16];
60 TH2F* h_pe_vs_delta_[16];
61 TH2F* h_delta_pe_vs_delta_[16];
62 TH2F* h_pe_max_vs_delta_;
63 TH2F* h_cross_talk_[16][16];
64};
65} // namespace trigscint
66
67#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.
virtual void process(Event &event) final
Processing an event for an Analyzer is calling analyze.
Implements an event buffer system for storing event data.
Definition Event.h:42
Class which represents the process under execution.
Definition Process.h:36
Class encapsulating parameters for configuring a processor.
Definition Parameters.h:29
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.