CMS 3D CMS Logo

CICADATemplate.cc
Go to the documentation of this file.
2 
3 #include <iostream>
4 #include <iomanip>
5 
6 //TODO: Check the actual conditions name: "CondCICADA"
8 
10 
12  : GlobalCondition(cName, l1t::CondCICADA, cType) {
14 
15  int nObjects = nrObjects();
16 
17  if (nObjects > 0) {
18  m_objectType.reserve(nObjects);
19  }
20 }
21 
23 
25  copy(cp);
26  return *this;
27 }
28 
29 void CICADATemplate::print(std::ostream& myCout) const {
30  myCout << "\n CICADATemplate print..." << std::endl;
31 
32  GlobalCondition::print(myCout);
33 
34  int nObjects = nrObjects();
35 
36  for (int i = 0; i < nObjects; ++i) {
37  myCout << std::endl;
38  myCout << " Template for object " << i << " [ hex ]" << std::endl;
39  myCout << " CICADAThreshold = " << std::hex << m_objectParameter[i].minCICADAThreshold << std::endl;
40  }
41 
42  myCout << std::dec << std::endl;
43 }
44 
46  m_condName = cp.condName();
47  m_condCategory = cp.condCategory();
48  m_condType = cp.condType();
49  m_objectType = cp.objectType();
50  m_condGEq = cp.condGEq();
51  m_condChipNr = cp.condChipNr();
52  m_condRelativeBx = cp.condRelativeBx();
53 
54  m_objectParameter = *(cp.objectParameter());
55 }
56 
57 std::ostream& operator<<(std::ostream& os, const CICADATemplate& result) {
58  result.print(os);
59  return os;
60 }
bool m_condGEq
the operator used for the condition (>=, =): true for >=
void print(std::ostream &myCout) const override
print condition
delete x;
Definition: CaloConfig.h:22
std::string m_condName
the name of the condition
int m_condChipNr
condition is located on condition chip m_condChipNr
l1t::GtConditionCategory m_condCategory
the category of the condition
CICADATemplate & operator=(const CICADATemplate &)
const int nrObjects() const
get number of trigger objects
std::vector< ObjectParameter > m_objectParameter
void copy(const CICADATemplate &cp)
std::vector< l1t::GlobalObject > m_objectType
the trigger object type(s)
l1t::GtConditionType m_condType
the type of the condition (1s, etc)
std::ostream & operator<<(std::ostream &os, const CICADATemplate &result)
virtual void print(std::ostream &myCout) const
print condition