98 std::string nRun = std::to_string(runNumber);
99 std::string nEvent = std::to_string(eventNumber);
109 std::string commandStr;
112 commandStr +=
"nRun="+nRun+
"; ";
113 commandStr +=
"nEvent="+nEvent+
"; ";
114 if (humanTimestamp !=
"0") commandStr +=
"timestamp='"+humanTimestamp+
"'; ";
117 commandStr +=
"img=`cat latest_vp1image`; ";
118 commandStr +=
"width=$(identify -format %W ${img}); ";
119 commandStr +=
"width=$(( ${width} * 3 / 10 )); ";
122 commandStr = commandStr
124 +
"-background '#0008' "
125 +
"-geometry +20+20 "
128 +
"-size ${width}x80 "
137 +
"caption:'Run number: '${nRun}'\\nEvent number: '${nEvent}'\\n'${timestamp} "
141 +
"-gravity SouthEast "
146 std::cout <<
" ===> overlay the event details: " << commandStr << std::endl;
148 system(commandStr.c_str());
149 }
catch (std::runtime_error& err) {
150 std::cout <<
"Exception caught: " << err.what() << std::endl;
151 std::cout <<
"Unable to run 'convert'!" << std::endl;