7 TString inFile=
"etac_histo_4c.root";
12 TFile *
f = TFile::Open(inFile);
13 TVectorD *n_etac = (TVectorD*)f->Get(
"n_etac");
14 TVectorD *
n_events = (TVectorD*)f->Get(
"n_events");
17 h_etac_nocut->UseCurrentStyle();
19 h_etac_pid->UseCurrentStyle();
20 TH1F *h_etac_phimass=(TH1F *)f->Get(
"h_etac_phimass");
21 h_etac_phimass->UseCurrentStyle();
23 h_etac_vtx->UseCurrentStyle();
24 TH1F *
h_etac_4c=(TH1F *)f->Get(
"h_etac_4c");
25 h_etac_4c->UseCurrentStyle();
28 h_mphi_nocuts->UseCurrentStyle();
30 h_mphi_pid->UseCurrentStyle();
32 h_mphi_vtx->UseCurrentStyle();
33 TH1F *
h_mphi_4c=(TH1F *)f->Get(
"h_mphi_4c");
34 h_mphi_4c->UseCurrentStyle();
35 TH1F *h_mphi_final=(TH1F *)f->Get(
"h_mphi_final");
36 h_mphi_final->UseCurrentStyle();
38 TH1F *
nc=(TH1F *)f->Get(
"nc");
39 nc->UseCurrentStyle();
41 TH1F *
h_chi2_4c=(TH1F *)f->Get(
"h_chi2_4c");
42 h_chi2_4c->UseCurrentStyle();
44 h_chi2_vtx->UseCurrentStyle();
45 TH1F *
hvzpos=(TH1F *)f->Get(
"hvzpos");
46 hvzpos->UseCurrentStyle();
47 TH2F *
hvpos=(TH2F *)f->Get(
"hvpos");
48 hvpos->UseCurrentStyle();
50 TCanvas *
c1=
new TCanvas(
"c1",
"c1",600,600);
53 TCanvas *
c2=
new TCanvas(
"c2",
"c2",600,600);
56 h_mphi_nocuts->Draw();
60 TCanvas *
c3=
new TCanvas(
"c3",
"c3",600,600);
67 TCanvas *
c4=
new TCanvas(
"c4",
"c4",600,600);
74 TCanvas *
c5=
new TCanvas(
"c5",
"c5",600,600);
82 TF1 *f1_phi =
new TF1(
"f1_phi",
"gaus",0.9,1.1);
83 h_mphi_final->Fit(f1_phi,
"R",
"",mean_phi-1.6*rms_phi,mean_phi+1.6*rms_phi);
85 double sigma1_phi=f1_phi->GetParameter(2);
86 double mean1_phi=f1_phi->GetParameter(1);
88 TF1 *f2_phi =
new TF1(
"f2_phi",
"gaus",0.9,1.1);
89 h_mphi_final->Fit(f2_phi,
"R",
"",mean1_phi-1.6*sigma1_phi,mean1_phi+1.6*sigma1_phi);
91 double sigma2_phi=f2_phi->GetParameter(2);
92 std::cout<<
"sigma phi="<<sigma2_phi<<std::endl;
95 h_etac_phimass->Draw();
97 double mean=h_etac_phimass->GetMean();
98 double rms=h_etac_phimass->GetRMS();
100 TF1 *
f1 =
new TF1(
"f1",
"gaus",2.8,3.2);
101 h_etac_phimass->Fit(f1,
"R",
"",mean-1.6*rms,mean+1.6*rms);
103 double sigma1=f1->GetParameter(2);
104 double mean1=f1->GetParameter(1);
106 TF1 *
f2 =
new TF1(
"f2",
"gaus",2.8,3.2);
107 h_etac_phimass->Fit(f2,
"R",
"",mean1-1.6*sigma1,mean1+1.6*sigma1);
109 double sigma2=f2->GetParameter(2);
110 std::cout<<
"sigma="<<sigma2<<std::endl;
112 TCanvas *
c6=
new TCanvas(
"c6",
"c6",600,600);
117 TCanvas *
c7=
new TCanvas(
"c7",
"c7",600,600);
120 TCanvas *
c8=
new TCanvas(
"c8",
"c8",600,600);
123 TCanvas *
c9=
new TCanvas(
"c9",
"c9",600,600);
126 TCanvas *
c10=
new TCanvas(
"c10",
"c10",600,600);