test
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
30 
31 // forward declarations
32 
33 // class declaration
35 {
36 
37 public:
38 
41  GtCondition();
42 
44  GtCondition(const std::string& );
45 
47  GtCondition(const std::string&,
49 
51  virtual ~GtCondition();
52 
53 public:
54 
56  inline const std::string& condName() const
57  {
58  return m_condName;
59  }
60 
61  inline void setCondName(const std::string& cName)
62  {
63  m_condName = cName;
64  }
65 
67  inline const l1t::GtConditionCategory& condCategory() const
68  {
69  return m_condCategory;
70  }
71 
72  inline void setCondCategory(const l1t::GtConditionCategory& cCategory)
73  {
74  m_condCategory = cCategory;
75  }
76 
78  inline const l1t::GtConditionType& condType() const
79  {
80  return m_condType;
81  }
82 
83  inline void setCondType(const l1t::GtConditionType& cType)
84  {
85  m_condType = cType;
86  }
87 
89  inline const std::vector<L1GtObject>& objectType() const
90  {
91  return m_objectType;
92  }
93 
94  inline void setObjectType(const std::vector<L1GtObject>& objType)
95  {
96  m_objectType = objType;
97  }
98 
100  inline const bool condGEq() const
101  {
102  return m_condGEq;
103  }
104 
105  inline void setCondGEq(const bool& cGEq)
106  {
107  m_condGEq = cGEq;
108  }
109 
111  inline const int& condChipNr() const
112  {
113  return m_condChipNr;
114  }
115 
116  inline void setCondChipNr(const int& cChipNr)
117  {
118  m_condChipNr = cChipNr;
119  }
120 
122  inline const int& condRelativeBx() const
123  {
124  return m_condRelativeBx;
125  }
126 
127  inline void setCondRelativeBx(const int& cRelativeBx)
128  {
129  m_condRelativeBx = cRelativeBx;
130  }
131 
132 
133 public:
134 
136  const int nrObjects() const;
137 
140  const bool wsc() const;
141 
144  const bool corr() const;
145 
147  virtual void print(std::ostream& myCout) const;
148 
150  friend std::ostream& operator<<(std::ostream&, const GtCondition&);
151 
152 protected:
153 
156 
159 
162 
164  std::vector<L1GtObject> m_objectType;
165 
167  bool m_condGEq;
168 
171 
172  // Relative bunch crossing offset for input data.
174 };
175 
176 #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:167
const int & condChipNr() const
get / set the condition-chip number the condition is located on
Definition: GtCondition.h:111
l1t::GtConditionType m_condType
the type of the condition (1s, etc)
Definition: GtCondition.h:161
GtConditionType
Definition: GtDefinitions.h:99
int m_condChipNr
condition is located on condition chip m_condChipNr
Definition: GtCondition.h:170
void setCondType(const l1t::GtConditionType &cType)
Definition: GtCondition.h:83
virtual void print(std::ostream &myCout) const
print condition
Definition: GtCondition.cc:154
void setCondGEq(const bool &cGEq)
Definition: GtCondition.h:105
std::vector< L1GtObject > m_objectType
the trigger object type(s)
Definition: GtCondition.h:164
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:155
const int & condRelativeBx() const
get / set the condition relative bx
Definition: GtCondition.h:122
l1t::GtConditionCategory m_condCategory
the category of the condition
Definition: GtCondition.h:158
const l1t::GtConditionType & condType() const
get / set the type of the condition (1s, etc)
Definition: GtCondition.h:78
void setCondName(const std::string &cName)
Definition: GtCondition.h:61
const std::vector< L1GtObject > & objectType() const
get / set the trigger object type(s) in the condition
Definition: GtCondition.h:89
const std::string & condName() const
get / set condition name
Definition: GtCondition.h:56
const bool wsc() const
Definition: GtCondition.cc:131
void setCondChipNr(const int &cChipNr)
Definition: GtCondition.h:116
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:94
const l1t::GtConditionCategory & condCategory() const
get / set the category of the condition
Definition: GtCondition.h:67
int m_condRelativeBx
Definition: GtCondition.h:173
const bool condGEq() const
get / set condition GEq flag
Definition: GtCondition.h:100
void setCondCategory(const l1t::GtConditionCategory &cCategory)
Definition: GtCondition.h:72
void setCondRelativeBx(const int &cRelativeBx)
Definition: GtCondition.h:127
virtual ~GtCondition()
destructor
Definition: GtCondition.cc:68