CMS 3D CMS Logo

L1GtConditionEvaluation.cc
Go to the documentation of this file.
1 
16 // this class header
18 
19 // system include files
20 #include <iomanip>
21 #include <iostream>
22 #include <iterator>
23 
24 // user include files
25 
26 // base class
27 
28 //
30 
31 // methods
32 
34 void L1GtConditionEvaluation::print(std::ostream &myCout) const {
35 
36  myCout << "\n L1GtConditionEvaluation print...\n" << std::endl;
37  myCout << " Maximum number of objects in condition: "
38  << m_condMaxNumberObjects << std::endl;
39  myCout << " Condition result: " << m_condLastResult
40  << std::endl;
41 
42  CombinationsInCond::const_iterator itVV;
43  std::ostringstream myCout1;
44 
45  for (itVV = (m_combinationsInCond).begin();
46  itVV != (m_combinationsInCond).end(); itVV++) {
47 
48  myCout1 << "( ";
49 
50  std::copy((*itVV).begin(), (*itVV).end(),
51  std::ostream_iterator<int>(myCout1, " "));
52 
53  myCout1 << "); ";
54  }
55 
56  myCout << "\n List of combinations passing all requirements for this "
57  "condition: \n "
58  << myCout1.str() << " \n"
59  << std::endl;
60 }
def copy(args, dbName)
bool m_condLastResult
the last result of evaluateCondition()
CombinationsInCond m_combinationsInCond
store all the object combinations evaluated to true in the condition
#define end
Definition: vmac.h:39
#define begin
Definition: vmac.h:32
virtual void print(std::ostream &myCout) const
print condition