void makePlotTSmear(int iShow){

  gROOT->Reset();
  gROOT->SetStyle("Plain");
  gStyle->SetOptStat(0);
  char  hId[120];
  char  fString[120];
  char  tString[120];

  TFile *hFileV0 = new TFile("./mSlice_part1500k_T.root");

  TFile *hFileVFit = new TFile("./mSlice_part1500k_TSmear3.root");

  TFile *hFileV1 = new TFile("./mSlice_part1500k_TSmear2.root");


  TH1F *hj0a0V0; hFileV0->GetObject("hkpkm_pi0_mkppi0accj0a0",hj0a0V0);
  TH1F *hj0a0V1; hFileV1->GetObject("hkpkm_pi0_mkppi0accj0a0",hj0a0V1);

  TH1F *hdatV0;   hFileV0->GetObject("hkpkm_pi0_mkppi0dat",hdatV0);
  TH1F *hdatVFit; hFileVFit->GetObject("hkpkm_pi0_mkppi0dat",hdatVFit);
  TH1F *hdatV1;   hFileV1->GetObject("hkpkm_pi0_mkppi0dat",hdatV1);


  TH1F *hj0ksV0;   hFileV0->GetObject("hkpkm_pi0_mkppi0accj0ks",hj0ksV0);
  TH1F *hj0ksVFit; hFileVFit->GetObject("hkpkm_pi0_mkppi0accj0ks",hj0ksVFit);
  TH1F *hj0ksV1;   hFileV1->GetObject("hkpkm_pi0_mkppi0accj0ks",hj0ksV1);

  //hj0ksV0->SetMaximum(250);
  //hj0ksVFit->SetMaximum(250);
  //hj0ksV1->SetMaximum(250);

  hj0ksV0->SetTitle("");
  hj0ksV0->GetXaxis()->SetTitle("Mass[K^{+}#pi^{0}]");
  hj0ksV0->GetYaxis()->SetTitle("Counts");
  hj0ksV0->GetXaxis()->SetRangeUser(0.6,1.1);

  hj0ksVFit->SetTitle("");
  hj0ksVFit->GetXaxis()->SetTitle("Mass[K^{+}#pi^{0}]");
  hj0ksVFit->GetYaxis()->SetTitle("Counts");
  hj0ksVFit->GetXaxis()->SetRangeUser(0.6,1.1);

  hj0ksV1->SetTitle("");
  hj0ksV1->GetXaxis()->SetTitle("Mass[K^{+}#pi^{0}]");
  hj0ksV1->GetYaxis()->SetTitle("Counts");
  hj0ksV1->GetXaxis()->SetRangeUser(0.6,1.1);

  hdatV0->SetMarkerStyle(21);
  hdatV0->SetMarkerColor(1);
  hdatV0->SetLineColor(1);
  hdatV0->SetLineWidth(2);

  hdatVFit->SetMarkerStyle(21);
  hdatVFit->SetMarkerColor(1);
  hdatVFit->SetLineColor(1);
  hdatVFit->SetLineWidth(2);

  hdatV1->SetMarkerStyle(21);
  hdatV1->SetMarkerColor(1);
  hdatV1->SetLineColor(1);
  hdatV1->SetLineWidth(2);

  hj0ksV0->SetMarkerStyle(21);
  hj0ksV0->SetMarkerColor(2);
  hj0ksV0->SetLineColor(2);
  hj0ksV0->SetLineWidth(2);

  hj0ksVFit->SetMarkerStyle(21);
  hj0ksVFit->SetMarkerColor(2);
  hj0ksVFit->SetLineColor(2);
  hj0ksVFit->SetLineWidth(2);

  hj0ksV1->SetMarkerStyle(21);
  hj0ksV1->SetMarkerColor(2);
  hj0ksV1->SetLineColor(2);
  hj0ksV1->SetLineWidth(2);

  hj0a0V0->SetMarkerStyle(21);
  hj0a0V0->SetMarkerColor(4);
  hj0a0V0->SetLineColor(4);
  hj0a0V0->SetLineWidth(2);

  hj0a0V1->SetMarkerStyle(21);
  hj0a0V1->SetMarkerColor(4);
  hj0a0V1->SetLineColor(4);
  hj0a0V1->SetLineWidth(2);


  //Make a legend with fill type                                              
  Double_t xl1=0.20, yl1 = 0.63;
  Double_t yl2=yl1 + 0.18;
  Double_t xl2=xl1 + 0.2;

  if (iShow == 0) {

    hdatV0->Draw("e1");

    hj0ksV0->Draw("same");
    hj0a0V0->Draw("same");

    TLegend *legend = new TLegend(xl1,yl1,xl2,yl2);
    legend->SetFillColor(0);
    legend->SetLineColor(0);
    legend->SetTextSize(0.05);
    legend->AddEntry(hdatV0,"K*K (Data)","p");
    legend->AddEntry(hj0ksV0,"K*K (Fit)","p");
    legend->AddEntry(hj0a0V0,"a_{0}#pi^{0} (Fit)","p");
    legend->Draw();

  }

  if (iShow == 1) {
    hdatV1->Draw("e1");

    hj0ksV1->Draw("e1same");

    hj0a0V1->Draw("same");

    TLegend *legend = new TLegend(xl1,yl1,xl2,yl2);
    legend->SetFillColor(0);
    legend->SetLineColor(0);
    legend->SetTextSize(0.05);
    legend->AddEntry(hdatV1,"K*K (Data)","p");
    legend->AddEntry(hj0ksV1,"K*K (Fit)","p");
    legend->AddEntry(hj0a0V1,"a_{0}#pi^{0} (Fit)","p");
    legend->Draw();

  }

  if (iShow == 2) {
    hj0ksVFit->Draw("e1");
    hdatVFit->Draw("same");
    //hj0a0VFit->Draw("same");

    TLegend *legend = new TLegend(xl1,yl1,xl2,yl2);
    legend->SetFillColor(0);
    legend->SetLineColor(0);
    legend->SetTextSize(0.05);
    legend->AddEntry(hdatVFit,"K*K (Data)","p");
    legend->AddEntry(hj0ksVFit,"K*K (Fit)","p");
    //legend->AddEntry(hj0a0VFit,"a_{0}#pi^{0}","p");
    legend->Draw();

  }


}
