90 std::cout <<
"VP1LightRun:: in execute() " << std::endl;
94 std::cout <<
"no vp1gui. Returning..." << std::endl;
99 std::cout <<
"Launching VP1...!!" << std::endl;
105 const uint64_t eventNumber = 0;
108 std::cout <<
" Got run number = " << runNumber <<
", event number = " << eventNumber << std::endl;
112 std::chrono::time_point<std::chrono::system_clock> now;
113 now = std::chrono::system_clock::now();
114 unsigned time = std::chrono::duration_cast<std::chrono::seconds>( now.time_since_epoch() ).count();
115 std::cout <<
" Got timestamp = " << time << std::endl;
118 unsigned int trigType = 0;
120 if (
m_noGui||
m_vp1gui->executeNewEvent(runNumber,eventNumber,trigType,time)) {
124 std::cout <<
" Ending application gracefully." << std::endl;
129 std::cout <<
"VP1LightRun::execute() returns TRUE..." << std::endl;
153 std::cout <<
" in handle() " << std::endl;
159 std::cout <<
"Aborting due to null VP1Gui pointer." << std::endl;
163 std::vector<std::string> vect;
182 std::string strNewFileName =
m_vp1gui->nextRequestedEventFile();
184 if (strNewFileName.empty())
188 cout <<
" File requested by VP1 does not exists or is not readable: "<<strNewFileName<<
". Ending." << endl;
192 vect.push_back(strNewFileName);
194 cout <<
" Setting next event file: " << strNewFileName<< endl;
197 std::vector<std::string> strNewFileNames =
m_vp1gui->userRequestedFiles();
198 for(
unsigned i=0; i<strNewFileNames.size(); ++i) {
199 const std::string& strNewFileName = strNewFileNames[i];
200 if (strNewFileName.empty())
204 cout <<
" File requested by VP1 does not exists or is not readable: " << strNewFileName << endl;
207 vect.push_back(strNewFileName);
209 cout <<
" Setting next event file: " << strNewFileName<< endl;