CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1GtConditionEvaluation.cc
Go to the documentation of this file.
1 
17 // this class header
19 
20 // system include files
21 #include <iostream>
22 #include <iomanip>
23 #include <iterator>
24 
25 // user include files
26 
27 // base class
28 
29 //
31 
32 
33 
34 
35 // methods
36 
38 void L1GtConditionEvaluation::print(std::ostream& myCout) const {
39 
40  myCout << "\n L1GtConditionEvaluation print...\n" << std::endl;
41  myCout << " Maximum number of objects in condition: " << m_condMaxNumberObjects << std::endl;
42  myCout << " Condition result: " << m_condLastResult << std::endl;
43 
44  CombinationsInCond::const_iterator itVV;
45  std::ostringstream myCout1;
46 
47  for (itVV = (m_combinationsInCond).begin(); itVV != (m_combinationsInCond).end(); itVV++) {
48 
49  myCout1 << "( ";
50 
51  std::copy((*itVV).begin(), (*itVV).end(), std::ostream_iterator<int> (myCout1, " "));
52 
53  myCout1 << "); ";
54 
55  }
56 
57  myCout
58  << "\n List of combinations passing all requirements for this condition: \n "
59  << myCout1.str()
60  << " \n"
61  << std::endl;
62 
63 }
64 
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:38
#define begin
Definition: vmac.h:31
virtual void print(std::ostream &myCout) const
print condition