CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 public:
39  L1GtCondition();
40 
42  L1GtCondition(const std::string&);
43 
46 
48  virtual ~L1GtCondition();
49 
50 public:
52  inline const std::string& condName() const { return m_condName; }
53 
54  inline void setCondName(const std::string& cName) { m_condName = cName; }
55 
57  inline const L1GtConditionCategory& condCategory() const { return m_condCategory; }
58 
59  inline void setCondCategory(const L1GtConditionCategory& cCategory) { m_condCategory = cCategory; }
60 
62  inline const L1GtConditionType& condType() const { return m_condType; }
63 
64  inline void setCondType(const L1GtConditionType& cType) { m_condType = cType; }
65 
67  inline const std::vector<L1GtObject>& objectType() const { return m_objectType; }
68 
69  inline void setObjectType(const std::vector<L1GtObject>& objType) { m_objectType = objType; }
70 
72  inline const bool condGEq() const { return m_condGEq; }
73 
74  inline void setCondGEq(const bool& cGEq) { m_condGEq = cGEq; }
75 
77  inline const int& condChipNr() const { return m_condChipNr; }
78 
79  inline void setCondChipNr(const int& cChipNr) { m_condChipNr = cChipNr; }
80 
81 public:
83  const int nrObjects() const;
84 
87  const bool wsc() const;
88 
91  const bool corr() const;
92 
94  virtual void print(std::ostream& myCout) const;
95 
97  friend std::ostream& operator<<(std::ostream&, const L1GtCondition&);
98 
99 protected:
102 
105 
108 
110  std::vector<L1GtObject> m_objectType;
111 
113  bool m_condGEq;
114 
117 
119 };
120 
121 #endif /*CondFormats_L1TObjects_L1GtCondition_h*/
const int nrObjects() const
get number of trigger objects
void setCondCategory(const L1GtConditionCategory &cCategory)
Definition: L1GtCondition.h:59
L1GtConditionType
const std::string & condName() const
get / set condition name
Definition: L1GtCondition.h:52
const int & condChipNr() const
get / set the condition-chip number the condition is located on
Definition: L1GtCondition.h:77
void setCondGEq(const bool &cGEq)
Definition: L1GtCondition.h:74
const std::vector< L1GtObject > & objectType() const
get / set the trigger object type(s) in the condition
Definition: L1GtCondition.h:67
friend std::ostream & operator<<(std::ostream &, const L1GtCondition &)
output stream operator
void setCondName(const std::string &cName)
Definition: L1GtCondition.h:54
std::vector< L1GtObject > m_objectType
the trigger object type(s)
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:69
const bool wsc() const
const L1GtConditionType & condType() const
get / set the type of the condition (1s, etc)
Definition: L1GtCondition.h:62
std::string m_condName
the name of the condition
const L1GtConditionCategory & condCategory() const
get / set the category of the condition
Definition: L1GtCondition.h:57
const bool corr() const
void setCondChipNr(const int &cChipNr)
Definition: L1GtCondition.h:79
#define COND_SERIALIZABLE
Definition: Serializable.h:39
void setCondType(const L1GtConditionType &cType)
Definition: L1GtCondition.h:64
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:72
L1GtConditionCategory
condition categories
int m_condChipNr
condition is located on condition chip m_condChipNr
virtual ~L1GtCondition()
destructor