void makePicsV6(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 *hMassKpStarAB; hFileAB->GetObject("hMassKpStar",hMassKpStarAB);
  TH1D *hMassKpStarA; hFileA->GetObject("hMassKpStar",hMassKpStarA);
  TH1D *hMassKpStarB; hFileB->GetObject("hMassKpStar",hMassKpStarB);

  /// 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 *hMassKpStar1230AB; hFile1230AB->GetObject("hMassKpStar",hMassKpStar1230AB);
  TH1D *hMassKpStar1230A; hFile1230A->GetObject("hMassKpStar",hMassKpStar1230A);
  TH1D *hMassKpStar1230B; hFile1230B->GetObject("hMassKpStar",hMassKpStar1230B);

  /// 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 *hMassKpStar1250AB; hFile1250AB->GetObject("hMassKpStar",hMassKpStar1250AB);
  TH1D *hMassKpStar1250A; hFile1250A->GetObject("hMassKpStar",hMassKpStar1250A);
  TH1D *hMassKpStar1250B; hFile1250B->GetObject("hMassKpStar",hMassKpStar1250B);

  /// 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 *hMassKpStar1270AB; hFile1270AB->GetObject("hMassKpStar",hMassKpStar1270AB);
  TH1D *hMassKpStar1270A; hFile1270A->GetObject("hMassKpStar",hMassKpStar1270A);
  TH1D *hMassKpStar1270B; hFile1270B->GetObject("hMassKpStar",hMassKpStar1270B);

  /// 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 *hMassKpStar1290AB; hFile1290AB->GetObject("hMassKpStar",hMassKpStar1290AB);
  TH1D *hMassKpStar1290A; hFile1290A->GetObject("hMassKpStar",hMassKpStar1290A);
  TH1D *hMassKpStar1290B; hFile1290B->GetObject("hMassKpStar",hMassKpStar1290B);

  /// 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 *hMassKpStar1310AB; hFile1310AB->GetObject("hMassKpStar",hMassKpStar1310AB);
  TH1D *hMassKpStar1310A; hFile1310A->GetObject("hMassKpStar",hMassKpStar1310A);
  TH1D *hMassKpStar1310B; hFile1310B->GetObject("hMassKpStar",hMassKpStar1310B);

  if (iShow == 0){ 
    hMassKpStarAB->GetXaxis()->SetTitle("Mass(K^{+}#pi^{0})");
    hMassKpStarAB->GetYaxis()->SetTitle("Counts");
    hMassKpStarAB->SetLineColor(3);
    hMassKpStarAB->SetFillColor(3);
    hMassKpStarAB->SetFillStyle(3001);
    hMassKpStarB->SetFillColor(1);
    hMassKpStarB->SetFillStyle(3001);
    hMassKpStarAB->Draw();
    hMassKpStarAB->Draw("");
    hMassKpStarB->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(hMassKpStarB,"Removed","f");
    legend->Draw();
    c1->Print("./pics/m_kpstar.png");
  }

  //1230
  if (iShow == 1){ 
    hMassKpStar1230AB->GetXaxis()->SetTitle("Mass(K^{+}#pi^{0})");
    hMassKpStar1230AB->GetYaxis()->SetTitle("Counts");
    hMassKpStar1230AB->SetLineColor(3);
    hMassKpStar1230AB->SetFillColor(3);
    hMassKpStar1230AB->SetFillStyle(3001);
    hMassKpStar1230B->SetFillColor(1);
    hMassKpStar1230B->SetFillStyle(3001);
    hMassKpStar1230AB->Draw();
    hMassKpStar1230AB->Draw("");
    hMassKpStar1230B->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(hMassKpStar1230B,"Removed","f");
    legend->Draw();
    c1->Print("./pics/m_kpstar1230.png");
  }

  //1250

  if (iShow == 2){ 
    hMassKpStar1250AB->GetXaxis()->SetTitle("Mass(K^{+}#pi^{0})");
    hMassKpStar1250AB->GetYaxis()->SetTitle("Counts");
    hMassKpStar1250AB->SetLineColor(3);
    hMassKpStar1250AB->SetFillColor(3);
    hMassKpStar1250AB->SetFillStyle(3001);
    hMassKpStar1250B->SetFillColor(1);
    hMassKpStar1250B->SetFillStyle(3001);
    hMassKpStar1250AB->Draw();
    hMassKpStar1250AB->Draw("");
    hMassKpStar1250B->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(hMassKpStar1250B,"Removed","f");
    legend->Draw();
    c1->Print("./pics/m_kpstar1250.png");
  }
  //1270

  if (iShow == 3){ 
    hMassKpStar1270AB->GetXaxis()->SetTitle("Mass(K^{+}#pi^{0})");
    hMassKpStar1270AB->GetYaxis()->SetTitle("Counts");
    hMassKpStar1270AB->SetLineColor(3);
    hMassKpStar1270AB->SetFillColor(3);
    hMassKpStar1270AB->SetFillStyle(3001);
    hMassKpStar1270B->SetFillColor(1);
    hMassKpStar1270B->SetFillStyle(3001);
    hMassKpStar1270AB->Draw();
    hMassKpStar1270AB->Draw("");
    hMassKpStar1270B->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(hMassKpStar1270B,"Removed","f");
    legend->Draw();
    c1->Print("./pics/m_kpstar1270.png");
  }
  //1290

  if (iShow == 4){ 
    hMassKpStar1290AB->GetXaxis()->SetTitle("Mass(K^{+}#pi^{0})");
    hMassKpStar1290AB->GetYaxis()->SetTitle("Counts");
    hMassKpStar1290AB->SetLineColor(3);
    hMassKpStar1290AB->SetFillColor(3);
    hMassKpStar1290AB->SetFillStyle(3001);
    hMassKpStar1290B->SetFillColor(1);
    hMassKpStar1290B->SetFillStyle(3001);
    hMassKpStar1290AB->Draw();
    hMassKpStar1290AB->Draw("");
    hMassKpStar1290B->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(hMassKpStar1290B,"Removed","f");
    legend->Draw();
    c1->Print("./pics/m_kpstar1290.png");
  }
  //1310

  if (iShow == 5){ 
    hMassKpStar1310AB->GetXaxis()->SetTitle("Mass(K^{+}#pi^{0})");
    hMassKpStar1310AB->GetYaxis()->SetTitle("Counts");
    hMassKpStar1310AB->SetLineColor(3);
    hMassKpStar1310AB->SetFillColor(3);
    hMassKpStar1310AB->SetFillStyle(3001);
    hMassKpStar1310B->SetFillColor(1);
    hMassKpStar1310B->SetFillStyle(3001);
    hMassKpStar1310AB->Draw();
    hMassKpStar1310AB->Draw("");
    hMassKpStar1310B->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(hMassKpStar1310B,"Removed","f");
    legend->Draw();
    c1->Print("./pics/m_kpstar1310.png");
  }
}
