Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:12:21

0001 #ifndef MEGATRACKRATIO_H
0002 #define MEGATRACKRATIO_H
0003 
0004 #include "../../sPhenixStyle.h"
0005 #include "../ReadEta/ReadEta_v1.C"
0006 #include <map>
0007 #include <TCanvas.h>
0008 #include <TLatex.h>
0009 #include <TH2.h>
0010 
0011 // R__LOAD_LIBRARY(../ReadEta/ReadEta_v1_C.so)
0012 
0013 class MegaTrackRatio
0014 {
0015     public:
0016         MegaTrackRatio();
0017         MegaTrackRatio(string run_type, string input1_directory, string input1_name, string tree1_name, string input2_directory, string input2_name, string tree2_name);
0018         void ProcessEvent();
0019         void PrintPlot();
0020 
0021     protected:
0022         string run_type;
0023         string input1_directory;
0024         string input2_directory;
0025         string input1_name;
0026         string input2_name;
0027         string tree1_name;
0028         string tree2_name;
0029 
0030         TFile * file_in1;
0031         TFile * file_in2;
0032         TTree * tree_in1;
0033         TTree * tree_in2;
0034 
0035         ReadEta_v1 * readEta1;
0036         ReadEta_v1 * readEta2;
0037 
0038         map<int,int> centrality_map = {
0039             {5, 0},
0040             {15, 1},
0041             {25, 2},
0042             {35, 3},
0043             {45, 4},
0044             {55, 5},
0045             {65, 6},
0046             {75, 7},
0047             {85, 8},
0048             {95, 9}
0049         };
0050 
0051         TCanvas * c1;
0052         TH2F * MegaTrackRatio_Mbin_2D;
0053         TH2F * MegaTtrackRatio_NMegaTrack_2D;
0054         TLatex * ltx;
0055 
0056         string plot_text;
0057 
0058         void Init();
0059         void InitCanvas();
0060         void InitHist();
0061         void InitRest();
0062         
0063 };
0064 
0065 #endif