8 #include <boost/filesystem.hpp>
18 , m_MySyncManager(nullptr)
23 , m_InputNode(nodename)
24 , m_TopNodeName(topnodename)
46 cout <<
"Adding " << filename <<
" to list of input files for "
59 if (boost::filesystem::is_regular_file(filename.c_str()))
61 uintmax_t fsize = boost::filesystem::file_size(filename.c_str());
62 if (fsize > 1000000 && !do_it)
64 cout <<
"size of " << filename
65 <<
" is suspiciously large for a text file: "
66 << fsize <<
" bytes" << endl;
67 cout <<
"if you really want to use " << filename
68 <<
" as list file (it will be used as a text file containing a list of input files), use AddListFile(\""
69 << filename <<
"\",1)" << endl;
75 cout << filename <<
" is not a regular file" << endl;
81 cout <<
PHWHERE <<
"Could not open " << filename << endl;
88 cout <<
PHWHERE <<
"Could not open " << filename << endl;
92 getline(infile, FullLine);
95 if (FullLine.size() && FullLine[0] !=
'#')
99 else if (FullLine.size())
103 cout <<
"Found Comment: " << FullLine << endl;
107 getline(infile, FullLine);
115 if (what ==
"ALL" || what ==
"FILELIST")
117 cout <<
"--------------------------------------" << endl
119 cout <<
"List of input files in Fun4AllInputManager " <<
Name() <<
":" << endl;
123 cout <<
file << endl;
126 if (what ==
"ALL" || what ==
"SUBSYSTEMS")
129 cout <<
"--------------------------------------" << endl
131 cout <<
"List of SubsysRecos in Fun4AllInputManager " <<
Name() <<
":" << endl;
135 cout << subsys->Name() << endl;
148 cout <<
PHWHERE <<
" Error initializing subsystem "
149 << subsystem->
Name() <<
", return code: " << iret << endl;
154 cout <<
"Registering Subsystem " << subsystem->
Name() << endl;
174 cout <<
Name() <<
": Fun4AllInpuManager::EventReject processing " << subsys->Name() << endl;
189 cout <<
Name() <<
": ResetFileList can only be used with filelists" << endl;
218 list<string>::const_iterator iter =
m_FileList.begin();
221 cout <<
PHWHERE <<
" opening next file: " << *iter << endl;
225 cout <<
PHWHERE <<
" could not open file: " << *iter << endl;