40 m_triggerMenuInterface(
"NULL"), m_triggerMenuName(
"NULL"),
41 m_triggerMenuImplementation(
"NULL"), m_scaleDbKey(
"NULL") {
48 const std::string& triggerMenuNameVal,
52 const std::vector<unsigned int>& triggerMaskAlgoTrigVal,
53 const std::vector<unsigned int>& triggerMaskTechTrigVal,
54 const std::vector<std::vector<int> >& prescaleFactorsAlgoTrigVal,
55 const std::vector<std::vector<int> >& prescaleFactorsTechTrigVal)
57 m_triggerMenuInterface(
"NULL"),
58 m_triggerMenuName(triggerMenuNameVal),
59 m_triggerMenuImplementation(
"NULL"),
61 m_algorithmMap(algorithmMapVal),
62 m_algorithmAliasMap(algorithmAliasMapVal),
63 m_technicalTriggerMap(technicalTriggerMapVal),
64 m_triggerMaskAlgoTrig(triggerMaskAlgoTrigVal),
65 m_triggerMaskTechTrig(triggerMaskTechTrigVal),
66 m_prescaleFactorsAlgoTrig(prescaleFactorsAlgoTrigVal),
67 m_prescaleFactorsTechTrig(prescaleFactorsTechTrigVal)
195 return !(otherObj == *
this);
202 return (otherObj == *
this);
208 const std::string& menuInterface) {
217 const std::string& menuImplementation) {
243 const std::vector<unsigned int>& maskValue) {
260 const std::vector<std::vector<int> >& factorValue) {
267 const std::vector<std::vector<int> >& factorValue) {
278 switch (printVerbosity) {
287 myCout <<
"\n ********** L1 Trigger Menu - printing ********** \n"
291 <<
"\nAssociated Scale DB Key: " <<
m_scaleDbKey <<
"\n\n"
292 <<
"\nL1 Physics Algorithms: " << nrDefinedAlgo <<
" algorithms defined." <<
"\n\n"
294 << std::right << std::setw(35) <<
"Algorithm Name" <<
" "
295 << std::right << std::setw(35) <<
"Algorithm Alias" <<
" "
296 << std::right << std::setw(12) <<
"Trigger Mask";
298 myCout << std::right << std::setw(10) <<
"PF Set "
299 << std::right << std::setw(2) << iSet;
308 const unsigned int bitNumber = itTrig->first;
309 const std::string& aName = itTrig->second;
314 aAlias = itAlias->second;
317 myCout << std::setw(6) << bitNumber <<
" "
318 << std::right << std::setw(35) << aName <<
" "
319 << std::right << std::setw(35) << aAlias <<
" "
328 myCout <<
"\nL1 Technical Triggers: " << nrDefinedTech
329 <<
" technical triggers defined." <<
"\n\n" << std::endl;
332 << std::right << std::setw(6) <<
"Bit Number "
333 << std::right << std::setw(45) <<
" Technical trigger name " <<
" "
334 << std::right << std::setw(12) <<
"Trigger Mask";
336 myCout << std::right << std::setw(10) <<
"PF Set "
337 << std::right << std::setw(2) << iSet;
346 unsigned int bitNumber = itTrig->first;
347 std::string aName = itTrig->second;
349 myCout << std::setw(6) << bitNumber <<
" "
350 << std::right << std::setw(45) << aName
365 myCout <<
"\n ********** L1 Trigger Menu - printing ********** \n\n"
366 <<
"Verbosity level: " << printVerbosity <<
" not implemented.\n\n"
377 int verbosityLevel = 0;
379 result.
print(streamRec, verbosityLevel);
386 const unsigned int bitNumber,
int& errorCode)
const {
393 if (itTrig->first == bitNumber) {
395 gtAlgorithmAlias = &(itTrig->second);
410 const unsigned int bitNumber,
int& errorCode)
const {
417 if (itTrig->first == bitNumber) {
419 gtAlgorithmName = &(itTrig->second);
432 const unsigned int bitNumber,
int& errorCode)
const {
439 if (itTrig->first == bitNumber) {
441 gtTechTrigName = &(itTrig->second);
456 const std::string& trigName,
int& errorCode)
const {
458 unsigned int bitNr = 999;
464 if (itTrig->second == trigName) {
466 bitNr = itTrig->first;
477 if (itTrig->second == trigName) {
479 bitNr = itTrig->first;
489 if (itTrig->second == trigName) {
491 bitNr = itTrig->first;
505 const std::vector<bool>& decWord,
int& errorCode)
const {
507 bool trigResult =
false;
514 if (itTrig->second == trigName) {
515 unsigned int bitNumber = itTrig->first;
517 if ((bitNumber >= decWord.size())) {
521 trigResult = decWord[bitNumber];
534 if (itTrig->second == trigName) {
535 unsigned int bitNumber = itTrig->first;
537 if ((bitNumber >= decWord.size())) {
541 trigResult = decWord[bitNumber];
554 if (itTrig->second == trigName) {
555 unsigned int bitNumber = itTrig->first;
557 if ((bitNumber >= decWord.size())) {
561 trigResult = decWord[bitNumber];
std::ostream & operator<<(std::ostream &out, const ALILine &li)