Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-07-05 08:52:41

0001 // Created by Dmitry Romanov
0002 // Subject to the terms in the LICENSE file found in the top-level directory.
0003 //
0004 
0005 #pragma once
0006 
0007 #include <JANA/JApplicationFwd.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   /// This is edm4hep::SimTrackerHits names of different detector readouts
0024   std::vector<std::string> m_data_names = {
0025       "SiBarrelTrackerRecHits", // Barrel Tracker
0026       "SiBarrelVertexRecHits",  // Vertex
0027       "SiEndcapTrackerRecHits", // End Cap tracker
0028                                 // MPGD
0029       "MPGDBarrelRecHits",
0030       "OuterMPGDBarrelRecHits",
0031       "ForwardMPGDEndcapRecHits",
0032       "BackwardMPGDEndcapRecHits",
0033       // TOF
0034       "TOFEndcapRecHits",
0035       "TOFBarrelRecHit",
0036   };
0037 
0038   /// Hits count histogram for each hits readout name
0039   std::vector<std::shared_ptr<TH1F>> m_hits_count_hists;
0040 
0041   /// Hits occupancy histogram for each hits readout name
0042   std::vector<std::shared_ptr<TH2F>> m_hits_occup_hists;
0043 
0044   /// Total occupancy of all m_data_names
0045   TH2F* m_total_occup_th2; /// MC Particles px,py
0046 };