33 : m_triggerMenuInterface(
"NULL"),
34 m_triggerMenuName(
"NULL"),
35 m_triggerMenuImplementation(0x0),
36 m_scaleDbKey(
"NULL") {
42 const unsigned int numberConditionChips,
43 const std::vector<std::vector<MuonTemplate> >& vecMuonTemplateVal,
44 const std::vector<std::vector<MuonShowerTemplate> >& vecMuonShowerTemplateVal,
45 const std::vector<std::vector<CaloTemplate> >& vecCaloTemplateVal,
46 const std::vector<std::vector<EnergySumTemplate> >& vecEnergySumTemplateVal,
47 const std::vector<std::vector<ExternalTemplate> >& vecExternalTemplateVal,
48 const std::vector<std::vector<CorrelationTemplate> >& vecCorrelationTemplateVal,
49 const std::vector<std::vector<CorrelationThreeBodyTemplate> >& vecCorrelationThreeBodyTemplateVal,
50 const std::vector<std::vector<CorrelationWithOverlapRemovalTemplate> >& vecCorrelationWithOverlapRemovalTemplateVal,
51 const std::vector<std::vector<MuonTemplate> >& corMuonTemplateVal,
52 const std::vector<std::vector<CaloTemplate> >& corCaloTemplateVal,
53 const std::vector<std::vector<EnergySumTemplate> >& corEnergySumTemplateVal
56 : m_triggerMenuInterface(
"NULL"),
57 m_triggerMenuName(triggerMenuNameVal),
58 m_triggerMenuImplementation(0x0),
60 m_vecMuonTemplate(vecMuonTemplateVal),
61 m_vecMuonShowerTemplate(vecMuonShowerTemplateVal),
62 m_vecCaloTemplate(vecCaloTemplateVal),
63 m_vecEnergySumTemplate(vecEnergySumTemplateVal),
64 m_vecExternalTemplate(vecExternalTemplateVal),
65 m_vecCorrelationTemplate(vecCorrelationTemplateVal),
66 m_vecCorrelationThreeBodyTemplate(vecCorrelationThreeBodyTemplateVal),
67 m_vecCorrelationWithOverlapRemovalTemplate(vecCorrelationWithOverlapRemovalTemplateVal),
68 m_corMuonTemplate(corMuonTemplateVal),
69 m_corCaloTemplate(corCaloTemplateVal),
70 m_corEnergySumTemplate(corEnergySumTemplateVal) {
101 (*this).buildGtConditionMap();
115 for (std::vector<l1t::ConditionMap>::iterator itCondOnChip =
m_conditionMap.begin();
118 itCondOnChip->clear();
155 (*this).buildGtConditionMap();
167 for (std::vector<l1t::ConditionMap>::iterator itCondOnChip =
m_conditionMap.begin();
170 itCondOnChip->clear();
179 if (condMapSize < vecMuonSize) {
191 for (std::vector<MuonTemplate>::iterator itCond = itCondOnChip->begin(); itCond != itCondOnChip->end(); itCond++) {
198 if (condMapSize < vecMuonShowerSize) {
210 for (std::vector<MuonShowerTemplate>::iterator itCond = itCondOnChip->begin(); itCond != itCondOnChip->end();
218 if (condMapSize < vecCaloSize) {
229 for (std::vector<CaloTemplate>::iterator itCond = itCondOnChip->begin(); itCond != itCondOnChip->end(); itCond++) {
236 if (condMapSize < vecEnergySumSize) {
247 for (std::vector<EnergySumTemplate>::iterator itCond = itCondOnChip->begin(); itCond != itCondOnChip->end();
257 if (condMapSize < vecExternalSize) {
268 for (std::vector<ExternalTemplate>::iterator itCond = itCondOnChip->begin(); itCond != itCondOnChip->end();
276 if (condMapSize < vecCorrelationSize) {
287 for (std::vector<CorrelationTemplate>::iterator itCond = itCondOnChip->begin(); itCond != itCondOnChip->end();
295 if (condMapSize < vecCorrelationThreeBodySize) {
301 for (
std::vector<std::vector<CorrelationThreeBodyTemplate> >::iterator itCondOnChip =
307 for (std::vector<CorrelationThreeBodyTemplate>::iterator itCond = itCondOnChip->begin();
308 itCond != itCondOnChip->end();
316 if (condMapSize < vecCorrelationWORSize) {
322 for (
std::vector<std::vector<CorrelationWithOverlapRemovalTemplate> >::iterator itCondOnChip =
328 for (std::vector<CorrelationWithOverlapRemovalTemplate>::iterator itCond = itCondOnChip->begin();
329 itCond != itCondOnChip->end();
377 const std::vector<std::vector<CorrelationThreeBodyTemplate> >& vecCorrelationThreeBodyTempl) {
382 const std::vector<std::vector<CorrelationWithOverlapRemovalTemplate> >& vecCorrelationTempl) {
416 std::map<int, const GlobalAlgorithm*> algoBitToAlgo;
417 typedef std::map<int, const GlobalAlgorithm*>::const_iterator CItBit;
420 int bitNumber = (itAlgo->second).algoBitNumber();
421 algoBitToAlgo[
bitNumber] = &(itAlgo->second);
424 size_t nrDefinedAlgo = algoBitToAlgo.size();
441 switch (printVerbosity) {
445 myCout <<
"\n ********** L1 Trigger Menu - printing ********** \n" 447 <<
"\nL1 Trigger Menu Name: " <<
m_triggerMenuName <<
"\nL1 Trigger Menu UUID (hash): 0x" 450 <<
"\nL1 Physics Algorithms: " << nrDefinedAlgo <<
" algorithms defined." 452 <<
"Bit Number " << std::right << std::setw(35) <<
"Algorithm Name" 453 <<
" " << std::right << std::setw(35) <<
"Algorithm Alias" << std::endl;
455 for (CItBit itBit = algoBitToAlgo.begin(); itBit != algoBitToAlgo.end(); itBit++) {
460 myCout << std::setw(6) <<
bitNumber <<
" " << std::right << std::setw(35) << aName <<
" " << std::right
461 << std::setw(35) << aAlias << std::endl;
488 myCout <<
"\n ********** L1 Trigger Menu - printing ********** \n" 490 <<
"\nL1 Trigger Menu Name: " <<
m_triggerMenuName <<
"\nL1 Trigger Menu UUID (hash): 0x" 493 <<
"\nL1 Physics Algorithms: " << nrDefinedAlgo <<
" algorithms defined." 495 <<
"Bit Number " << std::right << std::setw(35) <<
"Algorithm Name" 496 <<
" " << std::right << std::setw(35) <<
"Algorithm Alias" 497 <<
"\n Logical Expression \n" 500 for (CItBit itBit = algoBitToAlgo.begin(); itBit != algoBitToAlgo.end(); itBit++) {
504 std::string aLogicalExpression = (itBit->second)->algoLogicalExpression();
506 myCout << std::setw(6) <<
bitNumber <<
" " << std::right << std::setw(35) << aName <<
" " << std::right
507 << std::setw(35) << aAlias <<
"\n Logical expression: " << aLogicalExpression <<
"\n" 531 myCout <<
"\n ********** L1 Trigger Menu - printing ********** \n" 533 <<
"\nL1 Trigger Menu Name: " <<
m_triggerMenuName <<
"\nL1 Trigger Menu UUID (hash): 0x" 536 <<
"\nL1 Physics Algorithms: " << nrDefinedAlgo <<
" algorithms defined." 540 for (CItBit itBit = algoBitToAlgo.begin(); itBit != algoBitToAlgo.end(); itBit++) {
541 (itBit->second)->
print(myCout);
544 myCout <<
"\nNumber of condition chips: " <<
m_conditionMap.size() <<
"\n" << std::endl;
547 int totalNrConditions = 0;
549 for (std::vector<l1t::ConditionMap>::const_iterator itCondOnChip =
m_conditionMap.begin();
554 int condMapSize = itCondOnChip->size();
555 totalNrConditions += condMapSize;
557 myCout <<
"\nTotal number of conditions on condition chip " << chipNr <<
": " << condMapSize <<
" conditions.\n" 560 for (
l1t::CItCond itCond = itCondOnChip->begin(); itCond != itCondOnChip->end(); itCond++) {
561 (itCond->second)->
print(myCout);
565 myCout <<
"\nTotal number of conditions on all condition chips: " << totalNrConditions <<
"\n" << std::endl;
586 myCout <<
"\n ********** L1 Trigger Menu - printing ********** \n\n" 587 <<
"Verbosity level: " << printVerbosity <<
" not implemented.\n\n" 596 bool algResult =
false;
600 int bitNumber = (itAlgo->second).algoBitNumber();
ConditionMap::const_iterator CItCond
iterators through map containing the conditions
AlgorithmMap::const_iterator CItAlgo
iterators through map containing the algorithms
std::map< std::string, GlobalAlgorithm > AlgorithmMap
map containing the algorithms