void makePicsV4(int iShow){

  gROOT->Reset();
  gROOT->SetStyle("Plain");
  gStyle->SetOptStat(0);


  TFile *hFileAB = new TFile("./dataOut/AB.root");
  TFile *hFileA  = new TFile("./dataOut/A.root");
  TFile *hFileB  = new TFile("./dataOut/B.root");

  TH1D *hMassKpKmAB; hFileAB->GetObject("hMassKpKm",hMassKpKmAB);
  TH1D *hMassKpKmA; hFileA->GetObject("hMassKpKm",hMassKpKmA);
  TH1D *hMassKpKmB; hFileB->GetObject("hMassKpKm",hMassKpKmB);

  /// 1230  ///
  TFile *hFile1230AB = new TFile("./dataOut/m1230.root");
  TFile *hFile1230A  = new TFile("./dataOut/A_m1230.root");
  TFile *hFile1230B  = new TFile("./dataOut/B_m1230.root");

  TH1D *hMassKpKm1230AB; hFile1230AB->GetObject("hMassKpKm",hMassKpKm1230AB);
  TH1D *hMassKpKm1230A; hFile1230A->GetObject("hMassKpKm",hMassKpKm1230A);
  TH1D *hMassKpKm1230B; hFile1230B->GetObject("hMassKpKm",hMassKpKm1230B);

  /// 1250  ///
  TFile *hFile1250AB = new TFile("./dataOut/m1250.root");
  TFile *hFile1250A  = new TFile("./dataOut/A_m1250.root");
  TFile *hFile1250B  = new TFile("./dataOut/B_m1250.root");

  TH1D *hMassKpKm1250AB; hFile1250AB->GetObject("hMassKpKm",hMassKpKm1250AB);
  TH1D *hMassKpKm1250A; hFile1250A->GetObject("hMassKpKm",hMassKpKm1250A);
  TH1D *hMassKpKm1250B; hFile1250B->GetObject("hMassKpKm",hMassKpKm1250B);

  /// 1270  ///
  TFile *hFile1270AB = new TFile("./dataOut/m1270.root");
  TFile *hFile1270A  = new TFile("./dataOut/A_m1270.root");
  TFile *hFile1270B  = new TFile("./dataOut/B_m1270.root");

  TH1D *hMassKpKm1270AB; hFile1270AB->GetObject("hMassKpKm",hMassKpKm1270AB);
  TH1D *hMassKpKm1270A; hFile1270A->GetObject("hMassKpKm",hMassKpKm1270A);
  TH1D *hMassKpKm1270B; hFile1270B->GetObject("hMassKpKm",hMassKpKm1270B);

  /// 1290  ///
  TFile *hFile1290AB = new TFile("./dataOut/m1290.root");
  TFile *hFile1290A  = new TFile("./dataOut/A_m1290.root");
  TFile *hFile1290B  = new TFile("./dataOut/B_m1290.root");

  TH1D *hMassKpKm1290AB; hFile1290AB->GetObject("hMassKpKm",hMassKpKm1290AB);
  TH1D *hMassKpKm1290A; hFile1290A->GetObject("hMassKpKm",hMassKpKm1290A);
  TH1D *hMassKpKm1290B; hFile1290B->GetObject("hMassKpKm",hMassKpKm1290B);

  /// 1310  ///
  TFile *hFile1310AB = new TFile("./dataOut/m1310.root");
  TFile *hFile1310A  = new TFile("./dataOut/A_m1310.root");
  TFile *hFile1310B  = new TFile("./dataOut/B_m1310.root");

  TH1D *hMassKpKm1310AB; hFile1310AB->GetObject("hMassKpKm",hMassKpKm1310AB);
  TH1D *hMassKpKm1310A; hFile1310A->GetObject("hMassKpKm",hMassKpKm1310A);
  TH1D *hMassKpKm1310B; hFile1310B->GetObject("hMassKpKm",hMassKpKm1310B);

  if (iShow == 0){ 
    hMassKpKmAB->GetXaxis()->SetTitle("Mass(K^{+}K^{-})");
    hMassKpKmAB->GetYaxis()->SetTitle("Counts");
    hMassKpKmAB->SetLineColor(3);
    hMassKpKmAB->SetFillColor(3);
    hMassKpKmAB->SetFillStyle(3001);
    hMassKpKmB->SetFillColor(1);
    hMassKpKmB->SetFillStyle(3001);
    hMassKpKmAB->Draw();
    hMassKpKmAB->Draw("");
    hMassKpKmB->Draw("same");

    Double_t xl1=0.68, yl1 = 0.77, xl2=xl1+0.2, yl2=yl1+0.1;
    TLegend *legend = new TLegend(xl1,yl1,xl2,yl2);
    legend->SetFillColor(0);
    legend->SetLineColor(0);
    legend->SetTextSize(0.04);
    legend->AddEntry(hMassKpKmB,"Removed","f");
    legend->Draw();
    c1->Print("./pics/m_kpkm.png");
  }

  //1230
  if (iShow == 1){ 
    hMassKpKm1230AB->GetXaxis()->SetTitle("Mass(K^{+}K^{-})");
    hMassKpKm1230AB->GetYaxis()->SetTitle("Counts");
    hMassKpKm1230AB->SetLineColor(3);
    hMassKpKm1230AB->SetFillColor(3);
    hMassKpKm1230AB->SetFillStyle(3001);
    hMassKpKm1230B->SetFillColor(1);
    hMassKpKm1230B->SetFillStyle(3001);
    hMassKpKm1230AB->Draw();
    hMassKpKm1230AB->Draw("");
    hMassKpKm1230B->Draw("same");

    Double_t xl1=0.68, yl1 = 0.77, xl2=xl1+0.2, yl2=yl1+0.1;
    TLegend *legend = new TLegend(xl1,yl1,xl2,yl2);
    legend->SetFillColor(0);
    legend->SetLineColor(0);
    legend->SetTextSize(0.04);
    legend->AddEntry(hMassKpKm1230B,"Removed","f");
    legend->Draw();
    c1->Print("./pics/m_kpkm1230.png");
  }

  //1250

  if (iShow == 2){ 
    hMassKpKm1250AB->GetXaxis()->SetTitle("Mass(K^{+}K^{-})");
    hMassKpKm1250AB->GetYaxis()->SetTitle("Counts");
    hMassKpKm1250AB->SetLineColor(3);
    hMassKpKm1250AB->SetFillColor(3);
    hMassKpKm1250AB->SetFillStyle(3001);
    hMassKpKm1250B->SetFillColor(1);
    hMassKpKm1250B->SetFillStyle(3001);
    hMassKpKm1250AB->Draw();
    hMassKpKm1250AB->Draw("");
    hMassKpKm1250B->Draw("same");

    Double_t xl1=0.68, yl1 = 0.77, xl2=xl1+0.2, yl2=yl1+0.1;
    TLegend *legend = new TLegend(xl1,yl1,xl2,yl2);
    legend->SetFillColor(0);
    legend->SetLineColor(0);
    legend->SetTextSize(0.04);
    legend->AddEntry(hMassKpKm1250B,"Removed","f");
    legend->Draw();
    c1->Print("./pics/m_kpkm1250.png");
  }
  //1270

  if (iShow == 3){ 
    hMassKpKm1270AB->GetXaxis()->SetTitle("Mass(K^{+}K^{-})");
    hMassKpKm1270AB->GetYaxis()->SetTitle("Counts");
    hMassKpKm1270AB->SetLineColor(3);
    hMassKpKm1270AB->SetFillColor(3);
    hMassKpKm1270AB->SetFillStyle(3001);
    hMassKpKm1270B->SetFillColor(1);
    hMassKpKm1270B->SetFillStyle(3001);
    hMassKpKm1270AB->Draw();
    hMassKpKm1270AB->Draw("");
    hMassKpKm1270B->Draw("same");

    Double_t xl1=0.68, yl1 = 0.77, xl2=xl1+0.2, yl2=yl1+0.1;
    TLegend *legend = new TLegend(xl1,yl1,xl2,yl2);
    legend->SetFillColor(0);
    legend->SetLineColor(0);
    legend->SetTextSize(0.04);
    legend->AddEntry(hMassKpKm1270B,"Removed","f");
    legend->Draw();
    c1->Print("./pics/m_kpkm1270.png");
  }
  //1290

  if (iShow == 4){ 
    hMassKpKm1290AB->GetXaxis()->SetTitle("Mass(K^{+}K^{-})");
    hMassKpKm1290AB->GetYaxis()->SetTitle("Counts");
    hMassKpKm1290AB->SetLineColor(3);
    hMassKpKm1290AB->SetFillColor(3);
    hMassKpKm1290AB->SetFillStyle(3001);
    hMassKpKm1290B->SetFillColor(1);
    hMassKpKm1290B->SetFillStyle(3001);
    hMassKpKm1290AB->Draw();
    hMassKpKm1290AB->Draw("");
    hMassKpKm1290B->Draw("same");

    Double_t xl1=0.68, yl1 = 0.77, xl2=xl1+0.2, yl2=yl1+0.1;
    TLegend *legend = new TLegend(xl1,yl1,xl2,yl2);
    legend->SetFillColor(0);
    legend->SetLineColor(0);
    legend->SetTextSize(0.04);
    legend->AddEntry(hMassKpKm1290B,"Removed","f");
    legend->Draw();
    c1->Print("./pics/m_kpkm1290.png");
  }
  //1310

  if (iShow == 5){ 
    hMassKpKm1310AB->GetXaxis()->SetTitle("Mass(K^{+}K^{-})");
    hMassKpKm1310AB->GetYaxis()->SetTitle("Counts");
    hMassKpKm1310AB->SetLineColor(3);
    hMassKpKm1310AB->SetFillColor(3);
    hMassKpKm1310AB->SetFillStyle(3001);
    hMassKpKm1310B->SetFillColor(1);
    hMassKpKm1310B->SetFillStyle(3001);
    hMassKpKm1310AB->Draw();
    hMassKpKm1310AB->Draw("");
    hMassKpKm1310B->Draw("same");

    Double_t xl1=0.68, yl1 = 0.77, xl2=xl1+0.2, yl2=yl1+0.1;
    TLegend *legend = new TLegend(xl1,yl1,xl2,yl2);
    legend->SetFillColor(0);
    legend->SetLineColor(0);
    legend->SetTextSize(0.04);
    legend->AddEntry(hMassKpKm1310B,"Removed","f");
    legend->Draw();
    c1->Print("./pics/m_kpkm1310.png");
  }
}
