Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:20:00

0001 /**
0002  * \class L1GtConditionEvaluation
0003  *
0004  *
0005  * Description: Base class for evaluation of the L1 Global Trigger object
0006  * templates.
0007  *
0008  * Implementation:
0009  *    <TODO: enter implementation details>
0010  *
0011  * \author: Vasile Mihai Ghete   - HEPHY Vienna
0012  *
0013  *
0014  */
0015 
0016 // this class header
0017 #include "L1Trigger/GlobalTrigger/interface/L1GtConditionEvaluation.h"
0018 
0019 // system include files
0020 #include <iomanip>
0021 #include <iostream>
0022 #include <iterator>
0023 
0024 // user include files
0025 
0026 //   base class
0027 
0028 //
0029 #include "DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerObjectMapFwd.h"
0030 
0031 // methods
0032 
0033 /// print condition
0034 void L1GtConditionEvaluation::print(std::ostream &myCout) const {
0035   myCout << "\n  L1GtConditionEvaluation print...\n" << std::endl;
0036   myCout << "  Maximum number of objects in condition: " << m_condMaxNumberObjects << std::endl;
0037   myCout << "  Condition result:                       " << m_condLastResult << std::endl;
0038 
0039   CombinationsInCond::const_iterator itVV;
0040   std::ostringstream myCout1;
0041 
0042   for (itVV = (m_combinationsInCond).begin(); itVV != (m_combinationsInCond).end(); itVV++) {
0043     myCout1 << "( ";
0044 
0045     std::copy((*itVV).begin(), (*itVV).end(), std::ostream_iterator<int>(myCout1, " "));
0046 
0047     myCout1 << "); ";
0048   }
0049 
0050   myCout << "\n  List of combinations passing all requirements for this "
0051             "condition: \n  "
0052          << myCout1.str() << " \n"
0053          << std::endl;
0054 }