CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GtCondition.h
Go to the documentation of this file.
1 #ifndef L1Trigger_L1TGlobal_GtCondition_h
2 #define L1Trigger_L1TGlobal_GtCondition_h
3 
20 // system include files
21 #include <string>
22 #include <vector>
23 
24 #include <iostream>
25 
26 // user include files
29 //#include "L1Trigger/L1TGlobal/interface/L1GtObject.h"
31 
32 // forward declarations
33 
34 // class declaration
36 {
37 
38 public:
39 
42  GtCondition();
43 
45  GtCondition(const std::string& );
46 
48  GtCondition(const std::string&,
50 
52  virtual ~GtCondition();
53 
54 public:
55 
57  inline const std::string& condName() const
58  {
59  return m_condName;
60  }
61 
62  inline void setCondName(const std::string& cName)
63  {
64  m_condName = cName;
65  }
66 
68  inline const l1t::GtConditionCategory& condCategory() const
69  {
70  return m_condCategory;
71  }
72 
73  inline void setCondCategory(const l1t::GtConditionCategory& cCategory)
74  {
75  m_condCategory = cCategory;
76  }
77 
79  inline const l1t::GtConditionType& condType() const
80  {
81  return m_condType;
82  }
83 
84  inline void setCondType(const l1t::GtConditionType& cType)
85  {
86  m_condType = cType;
87  }
88 
90  inline const std::vector<L1GtObject>& objectType() const
91  {
92  return m_objectType;
93  }
94 
95  inline void setObjectType(const std::vector<L1GtObject>& objType)
96  {
97  m_objectType = objType;
98  }
99 
101  inline const bool condGEq() const
102  {
103  return m_condGEq;
104  }
105 
106  inline void setCondGEq(const bool& cGEq)
107  {
108  m_condGEq = cGEq;
109  }
110 
112  inline const int& condChipNr() const
113  {
114  return m_condChipNr;
115  }
116 
117  inline void setCondChipNr(const int& cChipNr)
118  {
119  m_condChipNr = cChipNr;
120  }
121 
123  inline const int& condRelativeBx() const
124  {
125  return m_condRelativeBx;
126  }
127 
128  inline void setCondRelativeBx(const int& cRelativeBx)
129  {
130  m_condRelativeBx = cRelativeBx;
131  }
132 
133 
134 public:
135 
137  const int nrObjects() const;
138 
141  const bool wsc() const;
142 
145  const bool corr() const;
146 
148  virtual void print(std::ostream& myCout) const;
149 
151  friend std::ostream& operator<<(std::ostream&, const GtCondition&);
152 
153 protected:
154 
157 
160 
163 
165  std::vector<L1GtObject> m_objectType;
166 
168  bool m_condGEq;
169 
172 
173  // Relative bunch crossing offset for input data.
175 };
176 
177 #endif /*L1Trigger_L1TGlobal_GtCondition_h*/
const bool corr() const
Definition: GtCondition.cc:143
bool m_condGEq
the operator used for the condition (&gt;=, =): true for &gt;=
Definition: GtCondition.h:168
const int & condChipNr() const
get / set the condition-chip number the condition is located on
Definition: GtCondition.h:112
l1t::GtConditionType m_condType
the type of the condition (1s, etc)
Definition: GtCondition.h:162
GtConditionType
Definition: GtDefinitions.h:99
int m_condChipNr
condition is located on condition chip m_condChipNr
Definition: GtCondition.h:171
void setCondType(const l1t::GtConditionType &cType)
Definition: GtCondition.h:84
virtual void print(std::ostream &myCout) const
print condition
Definition: GtCondition.cc:154
void setCondGEq(const bool &cGEq)
Definition: GtCondition.h:106
std::vector< L1GtObject > m_objectType
the trigger object type(s)
Definition: GtCondition.h:165
GtConditionCategory
condition categories
const int nrObjects() const
get number of trigger objects
Definition: GtCondition.cc:74
std::string m_condName
the name of the condition
Definition: GtCondition.h:156
const int & condRelativeBx() const
get / set the condition relative bx
Definition: GtCondition.h:123
l1t::GtConditionCategory m_condCategory
the category of the condition
Definition: GtCondition.h:159
const l1t::GtConditionType & condType() const
get / set the type of the condition (1s, etc)
Definition: GtCondition.h:79
void setCondName(const std::string &cName)
Definition: GtCondition.h:62
const std::vector< L1GtObject > & objectType() const
get / set the trigger object type(s) in the condition
Definition: GtCondition.h:90
const std::string & condName() const
get / set condition name
Definition: GtCondition.h:57
const bool wsc() const
Definition: GtCondition.cc:131
void setCondChipNr(const int &cChipNr)
Definition: GtCondition.h:117
friend std::ostream & operator<<(std::ostream &, const GtCondition &)
output stream operator
Definition: GtCondition.cc:428
void setObjectType(const std::vector< L1GtObject > &objType)
Definition: GtCondition.h:95
const l1t::GtConditionCategory & condCategory() const
get / set the category of the condition
Definition: GtCondition.h:68
int m_condRelativeBx
Definition: GtCondition.h:174
const bool condGEq() const
get / set condition GEq flag
Definition: GtCondition.h:101
void setCondCategory(const l1t::GtConditionCategory &cCategory)
Definition: GtCondition.h:73
void setCondRelativeBx(const int &cRelativeBx)
Definition: GtCondition.h:128
virtual ~GtCondition()
destructor
Definition: GtCondition.cc:68