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 //
32 
33 // constructor
35  m_condMaxNumberObjects(0),
36  m_condLastResult(false),
37  m_combinationsInCond(new CombinationsInCond),
38  m_verbosity(0)
39 
40 {
41 
42  // empty
43 
44 }
45 
46 // copy constructor
48 
52 
54 
55 }
56 
57 // destructor
59 
60  delete m_combinationsInCond;
61 
62 }
63 
64 // methods
65 
67 void L1GtConditionEvaluation::print(std::ostream& myCout) const {
68 
69  myCout << "\n L1GtConditionEvaluation print...\n" << std::endl;
70  myCout << " Maximum number of objects in condition: " << m_condMaxNumberObjects << std::endl;
71  myCout << " Condition result: " << m_condLastResult << std::endl;
72 
73  CombinationsInCond::const_iterator itVV;
74  std::ostringstream myCout1;
75 
76  for (itVV = (*m_combinationsInCond).begin(); itVV != (*m_combinationsInCond).end(); itVV++) {
77 
78  myCout1 << "( ";
79 
80  std::copy((*itVV).begin(), (*itVV).end(), std::ostream_iterator<int> (myCout1, " "));
81 
82  myCout1 << "); ";
83 
84  }
85 
86  myCout
87  << "\n List of combinations passing all requirements for this condition: \n "
88  << myCout1.str()
89  << " \n"
90  << std::endl;
91 
92 }
93 
CombinationsInCond * m_combinationsInCond
store all the object combinations evaluated to true in the condition
CombinationsInCond * getCombinationsInCond() const
get all the object combinations evaluated to true in the condition
bool m_condLastResult
the last result of evaluateCondition()
virtual void print(std::ostream &myCout) const
print condition
std::vector< SingleCombInCond > CombinationsInCond
all the object combinations evaluated to true in the condition
virtual ~L1GtConditionEvaluation()
destructor
bool condLastResult() const
get the latest result for the condition