File indexing completed on 2025-08-06 08:12:20
0001 #ifndef CheckDeltaR_h
0002 #define CheckDeltaR_h
0003
0004 #include <iostream>
0005 #include <TH1.h>
0006 #include <TH2.h>
0007 #include <TCanvas.h>
0008 #include <TLatex.h>
0009 #include <map>
0010 #include <TMath.h>
0011 #include "../ReadEta/ReadEta_v3.h"
0012
0013 R__LOAD_LIBRARY(/sphenix/user/ChengWei/INTT/INTT_dNdeta_repo/DST_MC/ReadEta/libReadEtaV3.so)
0014
0015 class CheckDeltaR
0016 {
0017 public:
0018 CheckDeltaR(string run_type, string input_folder_directory, string input_file_name, string input_tree_name, string out_folder_directory);
0019 void Processing(int run_Nevent);
0020 void PrintPlots();
0021 ~CheckDeltaR();
0022 protected:
0023 string out_folder_directory;
0024 string input_folder_directory;
0025 string input_file_name;
0026 string input_tree_name;
0027 TFile * file_in;
0028 TTree * tree_in;
0029 ReadEta_v3 * readeta;
0030
0031 double eta_weight = 0.631099/0.0195074;
0032
0033 TCanvas * c1;
0034 TLatex * ltx;
0035 string run_type;
0036 string plot_text;
0037
0038 TH1F * DeltaPhi_All_1D;
0039 TH1F * DeltaEta_All_1D;
0040 TH2F * DeltaPhiDeltaEta_All_2D;
0041
0042 TH1F * DeltaPhi_link_1D;
0043 TH1F * DeltaEta_link_1D;
0044 TH2F * DeltaPhiDeltaEta_link_2D;
0045
0046 TH1F * DeltaR_best_1D;
0047 TH2F * DeltaPhiDeltaEta_best_2D;
0048 TH2F * DeltaEtaTrueEta_best_2D;
0049 TH2F * DeltaEtaRecoZ_best_2D;
0050 TH2F * DeltaEtaTrueZ_best_2D;
0051
0052 vector<vector<double>> track_pair;
0053 vector<double> track_pair_deltaR;
0054 map <int, int> true_track_used_tag;
0055 map <int, int> reco_track_used_tag;
0056
0057 void Init();
0058 void ClearEvt();
0059 };
0060
0061 #endif