32 std::cout <<
"Got vector of " <<
files.size() <<
" items" << std::endl;
34 for(
const std::string&
n :
m_files) {
35 std::cout <<
n <<
'\n';
42 std::cout <<
"VP1BatchUtilities::getRandomConfigFile()" << std::endl;
47 int nConfigFiles =
m_files.size();
48 std::cout <<
" ===> # config files: " << nConfigFiles << std::endl;
51 int nPositions = nConfigFiles - 1;
52 auto seed = std::random_device{}();
53 auto randomDist = std::bind(std::uniform_int_distribution<int>(0, nPositions ),
63 std::cout <<
" ===> random index: " <<
m_indexFile << std::endl;
66 std::cout <<
" ===> random file: " <<
configFile << std::endl;
82 std::string commandStr =
"convert -composite `cat latest_vp1image` $TestArea/InstallArea/share/ATLAS-Logo-New_300pixels.png -geometry +10+10 -depth 8 `cat latest_vp1image`";
84 std::cout <<
" ===> overlay the ATLAS logo: " << commandStr << std::endl;
86 system(commandStr.c_str());
87 }
catch (std::runtime_error&
err) {
88 std::cout <<
"Exception caught: " <<
err.what() << std::endl;
89 std::cout <<
"Unable to run 'convert'!" << std::endl;
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;