8 #include <boost/filesystem.hpp>
16 , m_InputNode(nodename)
17 , m_TopNodeName(topnodename)
39 std::cout <<
"Adding " << filename <<
" to list of input files for "
40 <<
Name() << std::endl;
52 if (boost::filesystem::is_regular_file(filename.c_str()))
54 uintmax_t fsize = boost::filesystem::file_size(filename.c_str());
55 if (fsize > 1000000 && !do_it)
57 std::cout <<
"size of " << filename
58 <<
" is suspiciously large for a text file: "
59 << fsize <<
" bytes" << std::endl;
60 std::cout <<
"if you really want to use " << filename
61 <<
" as list file (it will be used as a text file containing a list of input files), use AddListFile(\""
62 << filename <<
"\",1)" << std::endl;
68 std::cout << filename <<
" is not a regular file" << std::endl;
74 std::cout <<
PHWHERE <<
"Could not open " << filename << std::endl;
81 std::cout <<
PHWHERE <<
"Could not open " << filename << std::endl;
86 getline(infile, FullLine);
89 if (FullLine.size() && FullLine[0] !=
'#')
94 else if (FullLine.size())
98 std::cout <<
"Found Comment: " << FullLine << std::endl;
101 getline(infile, FullLine);
106 std::cout <<
Name() <<
" listfile " << filename <<
" does not contain filenames "
107 <<
"if this is the only list you load into this Input Manager your code will exit very soon" << std::endl;
114 if (what ==
"ALL" || what ==
"FILELIST")
116 std::cout <<
"--------------------------------------" << std::endl
118 std::cout <<
"List of input files in Fun4AllInputManager " <<
Name() <<
":" << std::endl;
122 std::cout <<
file << std::endl;
125 if (what ==
"ALL" || what ==
"SUBSYSTEMS")
128 std::cout <<
"--------------------------------------" << std::endl
130 std::cout <<
"List of SubsysRecos in Fun4AllInputManager " <<
Name() <<
":" << std::endl;
134 std::cout << subsys->Name() << std::endl;
136 std::cout << std::endl;
147 std::cout <<
PHWHERE <<
" Error initializing subsystem "
148 << subsystem->
Name() <<
", return code: " << iret << std::endl;
153 std::cout <<
"Registering Subsystem " << subsystem->
Name() << std::endl;
173 std::cout <<
Name() <<
": Fun4AllInpuManager::EventReject processing " << subsys->Name() << std::endl;
188 std::cout <<
Name() <<
": ResetFileList can only be used with filelists" << std::endl;
217 std::list<std::string>::const_iterator iter =
m_FileList.begin();
220 std::cout <<
PHWHERE <<
" opening next file: " << *iter << std::endl;
224 std::cout <<
PHWHERE <<
" could not open file: " << *iter << std::endl;