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
22 
23 #include <string>
24 #include <vector>
25 
26 #include <iostream>
27 
28 // user include files
31 
32 // forward declarations
33 
34 // class declaration
36 {
37 
38 public:
39 
42  L1GtCondition();
43 
45  L1GtCondition(const std::string& );
46 
50 
52  virtual ~L1GtCondition();
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 L1GtConditionCategory& condCategory() const
69  {
70  return m_condCategory;
71  }
72 
73  inline void setCondCategory(const L1GtConditionCategory& cCategory)
74  {
75  m_condCategory = cCategory;
76  }
77 
79  inline const L1GtConditionType& condType() const
80  {
81  return m_condType;
82  }
83 
84  inline void setCondType(const L1GtConditionType& 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 
122 public:
123 
125  const int nrObjects() const;
126 
129  const bool wsc() const;
130 
133  const bool corr() const;
134 
136  virtual void print(std::ostream& myCout) const;
137 
139  friend std::ostream& operator<<(std::ostream&, const L1GtCondition&);
140 
141 protected:
142 
145 
148 
151 
153  std::vector<L1GtObject> m_objectType;
154 
156  bool m_condGEq;
157 
160 
161 
162 
164 };
165 
166 #endif /*CondFormats_L1TObjects_L1GtCondition_h*/
const int nrObjects() const
get number of trigger objects
void setCondCategory(const L1GtConditionCategory &cCategory)
Definition: L1GtCondition.h:73
const std::string & condName() const
get / set condition name
Definition: L1GtCondition.h:57
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:90
friend std::ostream & operator<<(std::ostream &, const L1GtCondition &)
output stream operator
void setCondName(const std::string &cName)
Definition: L1GtCondition.h:62
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:95
const bool wsc() const
const L1GtConditionType & condType() const
get / set the type of the condition (1s, etc)
Definition: L1GtCondition.h:79
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:68
const bool corr() const
void setCondChipNr(const int &cChipNr)
void setCondType(const L1GtConditionType &cType)
Definition: L1GtCondition.h:84
bool m_condGEq
the operator used for the condition (&gt;=, =): true for &gt;=
const bool condGEq() const
get / set condition GEq flag
int m_condChipNr
condition is located on condition chip m_condChipNr
virtual ~L1GtCondition()
destructor