LDMX Software
TestBeamClusterAnalyzer.h
Go to the documentation of this file.
1
7#ifndef TRIGSCINT_TESTBEAMCLUSTERANALYZER_H
8#define TRIGSCINT_TESTBEAMCLUSTERANALYZER_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"
15
16namespace trigscint {
17
23 public:
25 const std::string& name,
26 framework::Process& process); // : framework::Analyzer(name, process) {}
27 virtual ~TestBeamClusterAnalyzer() = default;
28 void configure(framework::config::Parameters& parameters) override;
29
30 void analyze(const framework::Event& event) override;
31
32 void onProcessStart() override;
33
34 void onProcessEnd() override;
35
36 private:
37 // configurable parameters
38 std::string input_col_; // input coll. containing 2-hit clusters (standard)
39 std::string input_pass_name_{""};
40 // std::string wideInputCol_; // input coll. containing 3-hit clusters
41 // std::string wideInputPassName_{inputPassName}; // default to same pass
42
43 // plotting stuff
44 int n_channels_{16};
45 // match nchan above
46 TH2F* h_n3_n2_;
47 TH2F* h_n3_n1_;
48 TH2F* h_n2_n1_;
49 TH1F* h_n_clusters_;
50 TH1F* h_n_hits_;
51 // TH1F* hNhitsInClusters;
52 TH1F* h_pe_in_hits_[16];
53 TH1F* h_pe_in_clusters_[16];
54 TH1F* h_delta_centroids_;
55 TH2F* h_delta_vs_seed_;
56};
57} // namespace trigscint
58
59#endif /* TRIGSCINT_TESTBEAMCLUSTERANALYZER_H */
Base classes for all user event processing components to extend.
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:40
Class which represents the process under execution.
Definition Process.h:34
Class encapsulating parameters for configuring a processor.
Definition Parameters.h:26
void configure(framework::config::Parameters &parameters) override
Callback for the EventProcessor to configure itself from the given set of parameters.
void analyze(const framework::Event &event) override
Process the event and make histograms or summaries.
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,...