23 #include <boost/algorithm/string.hpp>
53 cout <<
"Closing currently open file "
55 <<
" and opening " << filenam << endl;
71 cout <<
"Send mail to off-l with this printout and the macro you used"
73 cout <<
"Trying to execute IManager->print() to display more info"
75 cout <<
"Code will probably segfault now" << endl;
77 cout <<
"Have someone look into this problem - Exiting now" << endl;
98 <<
" The impossible happened, we have a valid copy of the run node "
151 cout <<
PHWHERE <<
": " <<
Name() <<
" Could not open file "
167 cout <<
Name() <<
": No Input file open" << endl;
175 cout <<
Name() <<
": No Input file from filelist opened" << endl;
182 cout <<
"Getting Event from " <<
Name() << endl;
191 if (nevents > 0 && ncount >= nevents)
221 cout <<
Name() <<
": fileclose: No Input file open" << endl;
257 cout <<
PHWHERE <<
Name() <<
" No MasterSync object, cannot perform synchronization" << endl;
258 cout <<
"Most likely your first file does not contain a SyncObject and the file" << endl;
259 cout <<
"opened by the Fun4AllDstInputManager with Name " <<
Name() <<
" has one" << endl;
260 cout <<
"Change your macro and use the file opened by this input manager as first input" << endl;
261 cout <<
"and you will be okay. Fun4All will not process the current configuration" << endl
270 cout <<
PHWHERE <<
" Mastersync not filled, your first file does not contain a SyncObject" << endl;
271 cout <<
"This Event will not be processed further" << endl;
277 cout <<
"Need to Resync, mastersync evt no: " << mastersync->
EventNumber()
279 cout <<
"mastersync evt counter: " << mastersync->
EventCounter()
281 cout <<
"mastersync run number: " << mastersync->
RunNumber()
291 <<
", master: " << mastersync->
RunNumber()
369 cout <<
PHWHERE <<
" " <<
Name() <<
" Could not read full Event" << endl;
370 cout <<
"PLEASE NOTIFY PHENIX-OFF-L and post the macro you used" << endl;
377 cout <<
PHWHERE <<
" MasterSync and SyncObject of " <<
Name() <<
" are different" << endl;
378 cout <<
"This Event will not be processed further, here is some debugging info:" << endl;
379 cout <<
"PLEASE NOTIFY PHENIX-OFF-L and post the macro you used" << endl;
380 cout <<
"MasterSync->identify:" << endl;
382 cout <<
Name() <<
": SyncObject->identify:" << endl;
388 cout <<
PHWHERE <<
" Resynchronization successfull for " <<
Name() << endl;
389 cout <<
"MasterSync->identify:" << endl;
391 cout <<
Name() <<
": SyncObject->identify:" << endl;
406 static int readfull = 0;
414 map<string, TBranch *>::const_iterator bIter;
419 cout <<
Name() <<
": branch: " << bIter->first << endl;
422 vector<string> splitvec;
423 boost::split(splitvec, bIter->first, boost::is_any_of(delimeters));
424 for (
size_t ia = 0; ia < splitvec.size(); ia++)
426 if (splitvec[ia] == syncdefs::SYNCNODENAME)
439 cout <<
PHWHERE <<
"Could not locate Sync Branch" << endl;
440 cout <<
"Please check for it in the following list of branch names and" << endl;
441 cout <<
"PLEASE NOTIFY PHENIX-OFF-L and post the macro you used" << endl;
444 cout << bIter->first << endl;
449 size_t EventOnDst = 0;
464 cout <<
Name() <<
": File exhausted while resyncing" << endl;
484 cout <<
Name() <<
": File exhausted while resyncing" << endl;
510 cout <<
"BranchSelect(\"" << branch <<
"\", " << iflag
511 <<
") : Input branches can only selected for reading before fileopen is called proceeding without input branch selection" << endl;
520 map<const string, int>::iterator branchiter;
533 cout <<
"Setting Root Tree Branch: " << branch <<
" to read" << endl;
541 cout <<
"Setting Root Tree Branch: " << branch <<
" to NOT read" << endl;
554 map<const string, int>::const_iterator branchiter;
560 cout << branchiter->first <<
" set to " << branchiter->second << endl;
570 cout <<
PHWHERE <<
" " <<
Name() <<
": You can only call this function after a file has been opened" << endl;
571 cout <<
"Do not worry, the branches will be set as soon as you open a file" << endl;
580 for (
int i = 0; i < syncdefs::NUM_SYNC_VARS; i++)
589 if (what ==
"ALL" || what ==
"BRANCH")
592 cout <<
"--------------------------------------" << endl
594 cout <<
"List of selected branches in Fun4AllDstInputManager " <<
Name() <<
":" << endl;
596 map<const string, int>::const_iterator iter;
599 cout << iter->first <<
" is switched ";
611 if ((what ==
"ALL" || what ==
"PHOOL") &&
IManager)
614 cout <<
"--------------------------------------" << endl
616 cout <<
"PHNodeIOManager print in Fun4AllDstInputManager " <<
Name() <<
":" << endl;
628 EventOnDst -=
static_cast<unsigned>(i);
632 cout <<
PHWHERE <<
Name() <<
": could not push back events, Imanager is NULL"
633 <<
" probably the dst is not open yet (you need to call fileopen or run 1 event for lists)" << endl;
645 cout <<
PHWHERE <<
"HasSyncObject() not initialized check the calling order" << endl;