File indexing completed on 2025-08-06 08:12:20
0001 #ifndef CHECKEVTXY_H
0002 #define CHECKEVTXY_H
0003
0004 #include <iostream>
0005
0006 #include <TCanvas.h>
0007 #include <TH1.h>
0008 #include <TH2.h>
0009 #include <TGraph.h>
0010 #include <TLatex.h>
0011 #include <TF1.h>
0012
0013 #include "ReadEvtXY_Chain.C"
0014 #include "sPhenixStyle.C"
0015 #include "gaus_func.cpp"
0016
0017
0018 class CheckEvtXY
0019 {
0020 public:
0021 CheckEvtXY(
0022 string mother_folder_directory_in,
0023 string input_file_list_in,
0024 string out_folder_directory_in,
0025 std::pair<double, double> beam_origin_in,
0026 int NClus_cut_label_in,
0027 int unit_tag_in,
0028 string run_type_in
0029 );
0030
0031
0032 void Prepare_info();
0033 void Print_plots();
0034
0035 protected:
0036 TCanvas * c1;
0037 TH1F * vtxX_1D;
0038 TH1F * vtxY_1D;
0039 TH2F * vtxXY_2D;
0040 TH2F * vtxX_eID_2D;
0041 TH2F * vtxY_eID_2D;
0042 TGraph * vtxX_bco_graph;
0043 TGraph * vtxY_bco_graph;
0044
0045
0046 TH2F * vtxX_correlation;
0047 TH2F * vtxY_correlation;
0048 TH1F * vtxX_diff;
0049 TH1F * vtxY_diff;
0050
0051 TLatex * ltx;
0052 TLatex * ltx_warning;
0053 TLatex * draw_text;
0054 TF1 * gaus_fit_MC;
0055 TF1 * pol1_fit;
0056
0057 string run_type;
0058 string sPHENIX_suffix;
0059
0060 int unit_tag;
0061 string unit_text;
0062 double unit_correction;
0063
0064 std::pair<double, double> beam_origin;
0065
0066 string mother_folder_directory;
0067 string input_file_list;
0068 string out_folder_directory;
0069 ReadEvtXY_Chain * data_in;
0070 int NClus_cut_label;
0071
0072 void Init();
0073 };
0074
0075
0076 #endif