Definition at line 83 of file CoolFix.cxx.
◆ ETriggerLevel
◆ Format
◆ CheckForCompleteSetup()
string JobConfig::CheckForCompleteSetup |
( |
| ) |
|
Definition at line 303 of file ReadWrite.cxx.
305 return "Use argument '-i' to specify input source and check that the input is specified correctly";
308 return "No TriggerDB connection string specified";
310 return "No configuration key(s) specified";
314 return "No TriggerDB connection string specified for comparison, use option '--db2'";
315 if(
keys2.size()==0 )
316 return "No smk specified for comparison, use option '--dbsmk2'";
◆ getKey()
unsigned int JobConfig::getKey |
( |
unsigned int |
which | ) |
|
|
inline |
◆ getKey2()
unsigned int JobConfig::getKey2 |
( |
unsigned int |
which | ) |
|
|
inline |
◆ parseProgramOptions() [1/2]
void JobConfig::parseProgramOptions |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 116 of file CoolFix.cxx.
117 std::string currentPar(
"");
118 std::string listofUnknownParameters =
"";
121 string currInput(
argv[
i]);
122 int fchar = currInput.find_first_not_of(
'-');
123 string stripped = currInput.substr(fchar);
124 bool isParam = (fchar!=0);
127 if( ! (stripped ==
"c" || stripped ==
"cooldb" ||
128 stripped ==
"r" || stripped ==
"run" ||
129 stripped ==
"l" || stripped ==
"log" ||
130 stripped ==
"p" || stripped ==
"print" ||
131 stripped ==
"f" || stripped ==
"fix" ||
132 stripped ==
"e" || stripped ==
"extended" ||
133 stripped ==
"triggerdb" ||
134 stripped ==
"release" ||
135 stripped ==
"h" || stripped ==
"help" ||
136 stripped ==
"v" || stripped ==
"loglevel") ) {
137 listofUnknownParameters +=
" " + currInput;
143 if(stripped ==
"h" || stripped ==
"help" ) {
help =
true;
continue; }
144 if(stripped ==
"f" || stripped ==
"fix") {
fix =
true;
continue; }
145 if(stripped ==
"e" || stripped ==
"extended") {
extendedSelection =
true;
continue; }
146 currentPar = stripped;
148 if(currentPar ==
"c" || currentPar ==
"cooldb") {
cooldb = stripped; currentPar=
"";
continue; }
149 if(currentPar ==
"r" || currentPar ==
"run") {
150 unsigned int val = boost::lexical_cast<unsigned int,string>(stripped);
166 if(currentPar ==
"triggerdb") {
triggerdb = stripped;
continue; }
167 if(currentPar ==
"release") {
release = stripped;
continue; }
168 if(currentPar ==
"p" || currentPar ==
"print") {
printlevel = boost::lexical_cast<int,string>(stripped); currentPar=
"";
continue; }
169 if(currentPar ==
"v" || currentPar ==
"loglevel") {
179 error.push_back(
"Unknown output level: " + stripped +
". Must be one of NIL, VERBOSE, DEBUG, INFO, WARNING, ERROR, FATAL, ALWAYS");
186 if(listofUnknownParameters!=
"")
187 error.push_back(
"Unknown parameter(s): " + listofUnknownParameters);
190 error.push_back(
"No run specified, use '--run <run>' option");
195 string dbname =
"CONDBR2";
196 size_t slashpos =
cooldb.find(
'/');
197 if(slashpos != string::npos) {
201 if(
db.find(
'.') != string::npos) {
212 if(
error.size()!=0) {
213 for(
const string&
e:
error)
◆ parseProgramOptions() [2/2]
void JobConfig::parseProgramOptions |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
◆ PrintSetup() [1/2]
void JobConfig::PrintSetup |
( |
| ) |
|
Definition at line 225 of file CoolFix.cxx.
226 cout <<
"========================================" << endl;
227 cout <<
"JOB SETUP: " << endl;
228 cout <<
"----------" << endl;
229 cout <<
" Run : " <<
run << endl;
230 cout <<
" LB : " <<
lb <<
" - " <<
lbend << endl;
232 cout <<
" Trigger database : " <<
triggerdb << endl;
233 cout <<
" Fix flag : " << (
fix ?
"yes" :
"no") << endl;
236 cout <<
" Print menu detail : " <<
printlevel << endl;
237 cout <<
"========================================" << endl;
◆ PrintSetup() [2/2]
void JobConfig::PrintSetup |
( |
std::ostream & |
log, |
|
|
std::ostream &(*)(std::ostream &os) |
lineend |
|
) |
| |
Definition at line 323 of file ReadWrite.cxx.
324 log <<
"========================================" << lineend;
325 log <<
"JOB SETUP: " << (
input==
DB?
"DB":
"COOL");
329 log <<
"----------" << lineend;
334 log <<
" Input for comparison: ";
348 log <<
"========================================" << lineend;
◆ bgkJsonOutFile
string JobConfig::bgkJsonOutFile {"BunchGroupSet.json"} |
◆ bgsk
◆ coolConnection
string JobConfig::coolConnection {""} |
◆ cooldb
string JobConfig::cooldb {"COOLONL_TRIGGER/CONDBR2"} |
◆ coolInputConnection
string JobConfig::coolInputConnection { "" } |
◆ coolOutputConnection
string JobConfig::coolOutputConnection { "" } |
◆ coolOutputRunNr
unsigned int JobConfig::coolOutputRunNr { 0 } |
◆ db
string JobConfig::db {""} |
◆ db2
string JobConfig::db2 {""} |
◆ error
vector< string > JobConfig::error |
◆ extendedSelection
bool JobConfig::extendedSelection {false} |
◆ fix
bool JobConfig::fix {false} |
◆ fw
bool JobConfig::fw {false} |
◆ help
bool JobConfig::help {false} |
◆ hltJsonOutFile
string JobConfig::hltJsonOutFile { "HLTMenu.json" } |
◆ hltPSJsonOutFile
string JobConfig::hltPSJsonOutFile { "HLTPrescalesSet.json" } |
◆ hltpsk
int JobConfig::hltpsk {0} |
◆ inpar
std::vector<std::string> JobConfig::inpar |
◆ inpar2
std::vector<std::string> JobConfig::inpar2 |
◆ input
◆ input2
◆ jo
bool JobConfig::jo {false} |
◆ keys
vector<unsigned int> JobConfig::keys |
◆ keys2
vector<unsigned int> JobConfig::keys2 |
◆ l1JsonOutFile
string JobConfig::l1JsonOutFile {"L1Menu.json"} |
◆ l1PSJsonOutFile
string JobConfig::l1PSJsonOutFile { "L1PrescalesSet.json" } |
◆ l1psk
◆ lb
unsigned int JobConfig::lb {0} |
◆ lbend
unsigned int JobConfig::lbend {0} |
◆ logFileName
string JobConfig::logFileName {""} |
◆ merge
bool JobConfig::merge = { true } |
◆ openended
bool JobConfig::openended {true} |
◆ outBase
string JobConfig::outBase {""} |
◆ outpar
std::vector<std::string> JobConfig::outpar |
◆ output
unsigned int JobConfig::output {UNDEF} |
◆ outputlevel
◆ printlevel
int JobConfig::printlevel {-1} |
◆ release
string JobConfig::release {""} |
◆ run
unsigned int JobConfig::run {0} |
◆ smk
◆ triggerdb
string JobConfig::triggerdb {"TRIGGERDBR2"} |
The documentation for this struct was generated from the following files: