#include "treeData.h" #include #include #include #include "TTree.h" #include "TFile.h" #include "TH1D.h" #include void test() { std::ifstream ifs("online_run.list"); string filelist[500]; Int_t nfiles = 0; while(!ifs.eof()){ ifs>>filelist[nfiles]; // cout< pid_file; for(Int_t i=0; iGet("tree"); nentries[i] = (Int_t)temptree->GetEntries(); cout<SetBranchAddress("ts", &ts); temptree->SetBranchAddress("sts", &sts); temptree->SetBranchAddress("tof", &tof); temptree->SetBranchStatus("*",1); temptree->Show(40); temptree->GetEntry(40); cout<GetTree()->GetEntry(j); cout<<"tof is "<