#include <VP1BatchUtilities.h>
Definition at line 24 of file VP1BatchUtilities.h.
◆ VP1BatchUtilities()
VP1BatchUtilities::VP1BatchUtilities |
( |
const std::vector< std::string > & |
files | ) |
|
Definition at line 27 of file VP1BatchUtilities.cxx.
32 std::cout <<
"Got vector of " <<
files.size() <<
" items" << std::endl;
34 for(
const std::string&
n :
m_files) {
35 std::cout <<
n <<
'\n';
◆ ~VP1BatchUtilities()
VP1BatchUtilities::~VP1BatchUtilities |
( |
| ) |
|
|
inline |
◆ getRandomConfigFile()
std::string VP1BatchUtilities::getRandomConfigFile |
( |
| ) |
|
Definition at line 40 of file VP1BatchUtilities.cxx.
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;
◆ overlayATLASlogo()
void VP1BatchUtilities::overlayATLASlogo |
( |
| ) |
|
|
static |
Definition at line 73 of file VP1BatchUtilities.cxx.
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;
◆ overlayEventDetails()
void VP1BatchUtilities::overlayEventDetails |
( |
unsigned long |
runNumber, |
|
|
unsigned long |
eventNumber, |
|
|
const std::string & |
humanTimestamp |
|
) |
| |
|
static |
Definition at line 95 of file VP1BatchUtilities.cxx.
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;
◆ m_files
std::vector<std::string> VP1BatchUtilities::m_files |
|
private |
◆ m_indexFile
int VP1BatchUtilities::m_indexFile |
|
private |
◆ m_lastIndexFile
int VP1BatchUtilities::m_lastIndexFile |
|
private |
The documentation for this class was generated from the following files: