//////////////////////////////////////////////////////////////////// /// \file parentinfo.C /// /// \brief Extracts parent information for testing /// /// \author J Wilson /// /// REVISION HISTORY:\n /// 2014-05-29 : P G Jones - Added header information.\n /// /// \details /// //////////////////////////////////////////////////////////////////// void make_plots(TFile *event_file, TTree *T, TFile *out_file) { TH1F *hparPDG = new TH1F("hparPDG", "Parent PDG code", 20, 0, 20); hparPDG->SetYTitle("Events per bin"); hparPDG->SetXTitle("parent PDG code"); T->Draw("ds.mc.parents.pdgCode>>hparPDG","",""); hparPDG->Write(); }