void modeadz() { TChain *t1 = new TChain(); t1->Add("/home/souvik/new_belle_analysis/muon_mode/generic_mc/mu_charm_*.root/h1"); Float_t modedz ; t1->SetBranchAddress("modedz",&modedz); TH1F *hist1 = new TH1F("hist1","modeadz",80, 0,200); for (Int_t i=0; i < t1->GetEntries(); ++i) { t1->GetEntry(i); { hist1->Fill(modedz); } } hist1->GetBinContent(100); hist1->Draw(); }