Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-01-14 23:16:59

0001 /**
0002  * \class ConditionEvaluation
0003  *
0004  *
0005  * Description: Base class for evaluation of the L1 Global Trigger object templates.
0006  *
0007  * Implementation:
0008  *    <TODO: enter implementation details>
0009  *
0010  * \author: Vasile Mihai Ghete   - HEPHY Vienna
0011  *
0012  *
0013  */
0014 
0015 #include "L1Trigger/L1TGlobal/interface/ConditionEvaluation.h"
0016 
0017 #include <ostream>
0018 
0019 /// print condition
0020 void l1t::ConditionEvaluation::print(std::ostream& myCout) const {
0021   myCout << "\n  ConditionEvaluation print...\n" << std::endl;
0022   myCout << "  Maximum number of objects in condition: " << m_condMaxNumberObjects << std::endl;
0023   myCout << "  Condition result:                       " << m_condLastResult << std::endl;
0024 
0025   std::ostringstream myCout1;
0026   for (size_t i1 = 0; i1 < m_combinationsInCond.size(); ++i1) {
0027     myCout1 << "( ";
0028     for (size_t i2 = 0; i2 < m_combinationsInCond[i1].size(); ++i2) {
0029       myCout1 << m_combinationsInCond[i1][i2].first << ":" << m_combinationsInCond[i1][i2].second << " ";
0030     }
0031     myCout1 << "); ";
0032   }
0033 
0034   myCout << "\n  List of combinations passing all requirements for this condition: \n  " << myCout1.str() << " \n"
0035          << std::endl;
0036 }