#include "chain_fine.h" #include "chain_course.h" #include "chain_fine_matt.h" #include "chain_course_matt.h" void mk_event_hists(const string &who) { TChain *chain = NULL; if(who=="fine"){ chain = chain_fine("event"); }else if(who=="course"){ chain = chain_course("event"); }else if(who=="fine_matt"){ chain = chain_fine_matt("event"); }else if(who=="course_matt"){ chain = chain_course_matt("event"); } if(!chain){ cout<Process("event.C"); // Flush file and close it cleanly f->Write(); f->Close(); delete f; }