Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:22:55

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 // this class header
0016 #include "L1Trigger/L1TGlobal/interface/ConditionEvaluation.h"
0017 
0018 // system include files
0019 #include <iostream>
0020 #include <iomanip>
0021 #include <iterator>
0022 
0023 // user include files
0024 
0025 //   base class
0026 
0027 //
0028 
0029 // methods
0030 
0031 /// print condition
0032 void l1t::ConditionEvaluation::print(std::ostream& myCout) const {
0033   myCout << "\n  ConditionEvaluation print...\n" << std::endl;
0034   myCout << "  Maximum number of objects in condition: " << m_condMaxNumberObjects << std::endl;
0035   myCout << "  Condition result:                       " << m_condLastResult << std::endl;
0036 
0037   CombinationsInCond::const_iterator itVV;
0038   std::ostringstream myCout1;
0039 
0040   for (itVV = (m_combinationsInCond).begin(); itVV != (m_combinationsInCond).end(); itVV++) {
0041     myCout1 << "( ";
0042 
0043     std::copy((*itVV).begin(), (*itVV).end(), std::ostream_iterator<int>(myCout1, " "));
0044 
0045     myCout1 << "); ";
0046   }
0047 
0048   myCout << "\n  List of combinations passing all requirements for this condition: \n  " << myCout1.str() << " \n"
0049          << std::endl;
0050 }