File indexing completed on 2025-01-18 09:55:43
0001
0002
0003
0004
0005 #pragma once
0006
0007 #include <JANA/JApplication.h>
0008 #include <JANA/JEvent.h>
0009 #include <TDirectory.h>
0010 #include <TH1.h>
0011 #include <TH2.h>
0012 #include <memory>
0013 #include <string>
0014 #include <vector>
0015
0016 class HitReconstructionAnalysis {
0017 public:
0018 void init(JApplication *app, TDirectory *plugin_tdir);
0019
0020 void process(const std::shared_ptr<const JEvent> &event);
0021
0022 private:
0023
0024
0025 std::vector<std::string> m_data_names = {
0026 "SiBarrelTrackerRecHits",
0027 "SiBarrelVertexRecHits",
0028 "SiEndcapTrackerRecHits",
0029
0030 "MPGDBarrelRecHits",
0031 "OuterMPGDBarrelRecHits",
0032 "ForwardMPGDEndcapRecHits",
0033 "BackwardMPGDEndcapRecHits",
0034
0035 "TOFEndcapRecHits",
0036 "TOFBarrelRecHit",
0037 };
0038
0039
0040 std::vector<std::shared_ptr<TH1F>> m_hits_count_hists;
0041
0042
0043 std::vector<std::shared_ptr<TH2F>> m_hits_occup_hists;
0044
0045
0046 TH2F * m_total_occup_th2;
0047 };