Back to home page

sPhenix code displayed by LXR

 
 

    


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

0001 // #include "sPhenixStyle.C"
0002 
0003 // int MakePlot_DeltaPhiStack()
0004 // {
0005 //     int Mbin = 0;
0006 
0007 //     std::string input_file_directory = Form("/sphenix/tg/tg01/commissioning/INTT/work/cwshih/seflgendata/run_54280_HR_Feb102025/Run6_EvtZFitWidthChange/EvtVtxZ/FinalResult_10cm_Pol2BkgFit/completed/vtxZ_-10_10cm_MBin%d/Folder_BaseLine/Run_0/completed", Mbin); 
0008 //     std::string input_file_name = Form("Data_PreparedNdEtaEach_AlphaCorr_AllSensor_VtxZ10_Mbin%d_00054280_00000_DeltaPhi.root", Mbin);
0009     
0010 //     std::string target_stack_sig_name = "c1_hstack1D_DeltaPhi_Eta13";
0011 //     std::string target_stack_bkg_name = "c1_hstack1D_DeltaPhi_Eta13";
0012 
0013 //     std::string output_directory = input_file_directory;
0014 
0015 //     std::pair<std::string, std::string> axes_label = {"Pair #Delta#phi", "Entries"};
0016     
0017 //     std::string sPH_label = "Internal";
0018 //     std::vector<std::tuple<double,double,std::string>> additional_text = {
0019 //         // {0.2, 0.9, "The cluster pairs post the VtxZ linking requirement are filled"},
0020 
0021 //         // {0.22, 0.9, "Au+Au 200 GeV"},
0022 //         // {0.22, 0.86, "HIJING"},
0023 //         // {0.22, 0.86, "Centrality 0-70%"},
0024 //         // {0.22, 0.82, "|INTT vtxZ| #leq 10 cm"}
0025 
0026 //         {0.22, 0.90, "Inner clusters rotated by #pi in #phi angle"},
0027 //         {0.22, 0.86, "#eta: [-0.1 - 0.1]"},
0028 //         {0.22, 0.82, Form("Centrality interval: [%s]%%", Constants::centrality_text[Mbin].c_str())},
0029 //         {0.22, 0.78, "|INTT vtxZ| #leq 10 cm"}
0030 
0031 //     };
0032 
0033 //     // std::vector<std::tuple<int, std::string,std::string>> legend_text = {
0034 //     //     {4, "Nominal", "f"},
0035 //     //     {2, "Rotated", "f"},
0036 //     //     {3, "Subtracted", "f"},
0037 //     //     {41, "Pol-2 Bkg Fit", "l"}
0038 //     // };
0039 
0040 //     double y_max = 2000000;
0041     
0042 //     SetsPhenixStyle();
0043 
0044 //     TCanvas * c1 = new TCanvas("c1", "c1", 950, 800);
0045 
0046 //     TLatex * ltx = new TLatex();
0047 //     ltx->SetNDC();
0048 //     ltx->SetTextSize(0.045);
0049 //     ltx->SetTextAlign(31);
0050 
0051 //     TLatex * draw_text = new TLatex();
0052 //     draw_text -> SetNDC();
0053 //     draw_text -> SetTextSize(0.03);
0054 
0055 //     // TLegend * leg = new TLegend(0.22,0.68,0.42,0.77);
0056 //     // // leg -> SetNColumns(2);
0057 //     // leg -> SetBorderSize(0);
0058 //     // leg -> SetTextSize(0.025);
0059 //     // leg -> SetMargin(0.2);
0060 
0061 //     TFile * file_in = TFile::Open(Form("%s/%s", input_file_directory.c_str(), input_file_name.c_str()));
0062 //     THStack * hstack_sig = (THStack*)file_in->Get(target_stack_sig_name.c_str());
0063 //     THStack * hstack_bkg = (THStack*)file_in->Get(target_stack_bkg_name.c_str());
0064 
0065 //     c1 -> cd();
0066 //     hstack_sig -> Draw("stack");
0067     
0068 
0069 //     return 0;
0070 // }