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#include "TrigScint/Event/TrigScintCluster.h"
16
17namespace trigscint {
18
24 public:
26 const std::string& name,
27 framework::Process& process); // : framework::Analyzer(name, process) {}
28 virtual ~TestBeamClusterAnalyzer() = 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 // configurable parameters
39 std::string inputCol_; // input coll. containing 2-hit clusters (standard)
40 std::string inputPassName_{""};
41 // std::string wideInputCol_; // input coll. containing 3-hit clusters
42 // std::string wideInputPassName_{inputPassName}; // default to same pass
43
44 // plotting stuff
45 int nChannels{16};
46 // match nchan above
47 TH2F* hN3N2;
48 TH2F* hN3N1;
49 TH2F* hN2N1;
50 TH1F* hNClusters;
51 TH1F* hNHits;
52 // TH1F* hNhitsInClusters;
53 TH1F* hPEinHits[16];
54 TH1F* hPEinClusters[16];
55 TH1F* hDeltaCentroids;
56 TH2F* hDeltaVsSeed;
57};
58} // namespace trigscint
59
60#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.
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 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,...