23 #pragma GCC diagnostic push
24 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
25 #include <boost/algorithm/string.hpp>
26 #pragma GCC diagnostic pop
54 std::cout <<
"Closing currently open file "
56 <<
" and opening " << filenam << std::endl;
72 std::cout <<
"Send mail to off-l with this printout and the macro you used"
74 std::cout <<
"Trying to execute IManager->print() to display more info"
76 std::cout <<
"Code will probably segfault now" << std::endl;
78 std::cout <<
"Have someone look into this problem - Exiting now" << std::endl;
99 <<
" The impossible happened, we have a valid copy of the run node "
152 std::cout <<
PHWHERE <<
": " <<
Name() <<
" Could not open file "
168 std::cout <<
Name() <<
": No Input file open" << std::endl;
176 std::cout <<
Name() <<
": No Input file from filelist opened" << std::endl;
183 std::cout <<
"Getting Event from " <<
Name() << std::endl;
192 if (nevents > 0 && ncount >= nevents)
224 std::cout <<
Name() <<
": fileclose: No Input file open" << std::endl;
260 std::cout <<
PHWHERE <<
Name() <<
" No MasterSync object, cannot perform synchronization" << std::endl;
261 std::cout <<
"Most likely your first file does not contain a SyncObject and the file" << std::endl;
262 std::cout <<
"opened by the Fun4AllDstInputManager with Name " <<
Name() <<
" has one" << std::endl;
263 std::cout <<
"Change your macro and use the file opened by this input manager as first input" << std::endl;
264 std::cout <<
"and you will be okay. Fun4All will not process the current configuration" << std::endl
270 std::cout <<
Name() <<
" no sync object found in this manager but synchronization needed" << std::endl;
271 std::cout <<
" Check if you have used an empty listfile. If this is not the case - please ask for help" << std::endl;
272 std::cout <<
"This may be a really bad internal problem and cannot continue, exiting now " << std::endl;
281 std::cout <<
PHWHERE <<
" Mastersync not filled, your first file does not contain a SyncObject" << std::endl;
282 std::cout <<
"This Event will not be processed further" << std::endl;
288 std::cout <<
"Need to Resync, mastersync evt no: " << mastersync->
EventNumber()
290 std::cout <<
"mastersync evt counter: " << mastersync->
EventCounter()
292 std::cout <<
"mastersync run number: " << mastersync->
RunNumber()
302 <<
", master: " << mastersync->
RunNumber()
380 std::cout <<
PHWHERE <<
" " <<
Name() <<
" Could not read full Event" << std::endl;
381 std::cout <<
"PLEASE NOTIFY PHENIX-OFF-L and post the macro you used" << std::endl;
388 std::cout <<
PHWHERE <<
" MasterSync and SyncObject of " <<
Name() <<
" are different" << std::endl;
389 std::cout <<
"This Event will not be processed further, here is some debugging info:" << std::endl;
390 std::cout <<
"PLEASE NOTIFY PHENIX-OFF-L and post the macro you used" << std::endl;
391 std::cout <<
"MasterSync->identify:" << std::endl;
393 std::cout <<
Name() <<
": SyncObject->identify:" << std::endl;
399 std::cout <<
PHWHERE <<
" Resynchronization successfull for " <<
Name() << std::endl;
400 std::cout <<
"MasterSync->identify:" << std::endl;
402 std::cout <<
Name() <<
": SyncObject->identify:" << std::endl;
417 static int readfull = 0;
425 std::map<std::string, TBranch *>::const_iterator bIter;
430 std::cout <<
Name() <<
": branch: " << bIter->first << std::endl;
433 std::vector<std::string> splitvec;
434 boost::split(splitvec, bIter->first, boost::is_any_of(delimeters));
435 for (
auto &ia : splitvec)
437 if (ia == syncdefs::SYNCNODENAME)
450 std::cout <<
PHWHERE <<
"Could not locate Sync Branch" << std::endl;
451 std::cout <<
"Please check for it in the following list of branch names and" << std::endl;
452 std::cout <<
"PLEASE NOTIFY PHENIX-OFF-L and post the macro you used" << std::endl;
455 std::cout << bIter->first << std::endl;
460 size_t EventOnDst = 0;
475 std::cout <<
Name() <<
": File exhausted while resyncing" << std::endl;
495 std::cout <<
Name() <<
": File exhausted while resyncing" << std::endl;
522 std::cout <<
"BranchSelect(\"" << branch <<
"\", " << iflag
523 <<
") : Input branches can only selected for reading before fileopen is called proceeding without input branch selection" << std::endl;
532 std::map<const std::string, int>::iterator branchiter;
545 std::cout <<
"Setting Root Tree Branch: " << branch <<
" to read" << std::endl;
553 std::cout <<
"Setting Root Tree Branch: " << branch <<
" to NOT read" << std::endl;
566 std::map<const std::string, int>::const_iterator branchiter;
572 std::cout << branchiter->first <<
" set to " << branchiter->second << std::endl;
582 std::cout <<
PHWHERE <<
" " <<
Name() <<
": You can only call this function after a file has been opened" << std::endl;
583 std::cout <<
"Do not worry, the branches will be set as soon as you open a file" << std::endl;
592 for (
auto &
i : syncdefs::SYNCVARS)
601 if (what ==
"ALL" || what ==
"BRANCH")
604 std::cout <<
"--------------------------------------" << std::endl
606 std::cout <<
"List of selected branches in Fun4AllDstInputManager " <<
Name() <<
":" << std::endl;
608 std::map<const std::string, int>::const_iterator iter;
611 std::cout << iter->first <<
" is switched ";
620 std::cout << std::endl;
623 if ((what ==
"ALL" || what ==
"PHOOL") &&
m_IManager)
626 std::cout <<
"--------------------------------------" << std::endl
628 std::cout <<
"PHNodeIOManager print in Fun4AllDstInputManager " <<
Name() <<
":" << std::endl;
640 EventOnDst -=
static_cast<unsigned>(
i);
644 std::cout <<
PHWHERE <<
Name() <<
": could not push back events, Imanager is NULL"
645 <<
" probably the dst is not open yet (you need to call fileopen or run 1 event for lists)" << std::endl;
657 std::cout <<
PHWHERE <<
"HasSyncObject() not initialized check the calling order" << std::endl;