File indexing completed on 2025-01-18 09:55:43
0001 #pragma once
0002
0003 #include <JANA/JApplication.h>
0004 #include <JANA/JEvent.h>
0005 #include <JANA/JEventProcessor.h>
0006 #include <TDirectory.h>
0007 #include <TH1.h>
0008 #include <TH2.h>
0009 #include <spdlog/fwd.h>
0010 #include <memory>
0011
0012 #include "HitReconstructionAnalysis.h"
0013 #include "TrackingOccupancyAnalysis.h"
0014
0015 class TrackingOccupancy_processor:public JEventProcessor
0016 {
0017 public:
0018 explicit TrackingOccupancy_processor(JApplication *);
0019 ~TrackingOccupancy_processor() override = default;
0020
0021
0022
0023
0024
0025
0026
0027 void Init() override;
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037 void Process(const std::shared_ptr<const JEvent>& event) override;
0038
0039
0040
0041
0042
0043
0044
0045 void Finish() override;
0046
0047 private:
0048
0049 TrackingOccupancyAnalysis m_occupancy_analysis;
0050 HitReconstructionAnalysis m_hit_reco_analysis;
0051
0052 TDirectory* m_dir_main;
0053 TH1F * m_th1_prt_pz;
0054 TH1F * m_th1_prt_energy;
0055 TH1F * m_th1_prt_theta;
0056 TH1F * m_th1_prt_phi;
0057 TH2F * m_th2_prt_pxy;
0058
0059 std::shared_ptr<spdlog::logger> m_log;
0060 };