9 , m_tree_name (
"default_tree_name")
10 , m_branch_name(
"default_branch_name")
15 gSystem->mkdir(oss.str().c_str(),
true);
17 m_ofs.open(oss.str().c_str());
26 string fname = oss.str();
27 ifstream ifs(fname.c_str());
28 cout <<
"+----------------------------------------------------------------+\n"
29 <<
"| Messages in '" << fname <<
"':\n"
30 <<
"+----------------------------------------------------------------+\n"
31 << string(istreambuf_iterator<char>(ifs), istreambuf_iterator<char>())
32 <<
"+----------------------------------------------------------------+\n"
54 vector<string> list_fname;
55 ifstream ifs(fn_list);
57 while (ifs >> fname) list_fname.push_back(fname);
59 int n_fname = list_fname.size();
61 m_ofs <<
"N of input files = " << n_fname << endl;
62 cout <<
"N of input files = " << n_fname << endl;
63 for (
int ii = 0; ii < n_fname; ii++) {
64 if (n_max > 0 && ii == n_max)
break;
66 if ((ii+1) % 50 == 0) cout <<
" " << (ii+1) << endl;
virtual void ReadEvents(const char *fname)
virtual void ReadEventsFromFileList(const char *fn_list, const int n_max=0)
virtual void ProcessOneEvent()
AnaBase(const std::string label)