CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1GtCondition.h
Go to the documentation of this file.
1 #ifndef CondFormats_L1TObjects_L1GtCondition_h
2 #define CondFormats_L1TObjects_L1GtCondition_h
3 
20 // system include files
21 #include <string>
22 #include <vector>
23 
24 #include <iostream>
25 
26 // user include files
29 
30 // forward declarations
31 
32 // class declaration
34 {
35 
36 public:
37 
40  L1GtCondition();
41 
43  L1GtCondition(const std::string& );
44 
46  L1GtCondition(const std::string&,
48 
50  virtual ~L1GtCondition();
51 
52 public:
53 
55  inline const std::string& condName() const
56  {
57  return m_condName;
58  }
59 
60  inline void setCondName(const std::string& cName)
61  {
62  m_condName = cName;
63  }
64 
66  inline const L1GtConditionCategory& condCategory() const
67  {
68  return m_condCategory;
69  }
70 
71  inline void setCondCategory(const L1GtConditionCategory& cCategory)
72  {
73  m_condCategory = cCategory;
74  }
75 
77  inline const L1GtConditionType& condType() const
78  {
79  return m_condType;
80  }
81 
82  inline void setCondType(const L1GtConditionType& cType)
83  {
84  m_condType = cType;
85  }
86 
88  inline const std::vector<L1GtObject>& objectType() const
89  {
90  return m_objectType;
91  }
92 
93  inline void setObjectType(const std::vector<L1GtObject>& objType)
94  {
95  m_objectType = objType;
96  }
97 
99  inline const bool condGEq() const
100  {
101  return m_condGEq;
102  }
103 
104  inline void setCondGEq(const bool& cGEq)
105  {
106  m_condGEq = cGEq;
107  }
108 
110  inline const int& condChipNr() const
111  {
112  return m_condChipNr;
113  }
114 
115  inline void setCondChipNr(const int& cChipNr)
116  {
117  m_condChipNr = cChipNr;
118  }
119 
120 public:
121 
123  const int nrObjects() const;
124 
127  const bool wsc() const;
128 
131  const bool corr() const;
132 
134  virtual void print(std::ostream& myCout) const;
135 
137  friend std::ostream& operator<<(std::ostream&, const L1GtCondition&);
138 
139 protected:
140 
142  std::string m_condName;
143 
146 
149 
151  std::vector<L1GtObject> m_objectType;
152 
154  bool m_condGEq;
155 
158 
159 
160 };
161 
162 #endif /*CondFormats_L1TObjects_L1GtCondition_h*/
const int nrObjects() const
get number of trigger objects
void setCondCategory(const L1GtConditionCategory &cCategory)
Definition: L1GtCondition.h:71
const std::string & condName() const
get / set condition name
Definition: L1GtCondition.h:55
const int & condChipNr() const
get / set the condition-chip number the condition is located on
void setCondGEq(const bool &cGEq)
const std::vector< L1GtObject > & objectType() const
get / set the trigger object type(s) in the condition
Definition: L1GtCondition.h:88
friend std::ostream & operator<<(std::ostream &, const L1GtCondition &)
output stream operator
void setCondName(const std::string &cName)
Definition: L1GtCondition.h:60
std::vector< L1GtObject > m_objectType
the trigger object type(s)
L1GtConditionType
virtual void print(std::ostream &myCout) const
print condition
L1GtConditionType m_condType
the type of the condition (1s, etc)
L1GtConditionCategory m_condCategory
the category of the condition
void setObjectType(const std::vector< L1GtObject > &objType)
Definition: L1GtCondition.h:93
const bool wsc() const
const L1GtConditionType & condType() const
get / set the type of the condition (1s, etc)
Definition: L1GtCondition.h:77
L1GtConditionCategory
condition categories
std::string m_condName
the name of the condition
const L1GtConditionCategory & condCategory() const
get / set the category of the condition
Definition: L1GtCondition.h:66
const bool corr() const
void setCondChipNr(const int &cChipNr)
void setCondType(const L1GtConditionType &cType)
Definition: L1GtCondition.h:82
bool m_condGEq
the operator used for the condition (&gt;=, =): true for &gt;=
const bool condGEq() const
get / set condition GEq flag
Definition: L1GtCondition.h:99
int m_condChipNr
condition is located on condition chip m_condChipNr
virtual ~L1GtCondition()
destructor