CMS 3D CMS Logo

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*/
L1GtCondition::L1GtCondition
L1GtCondition()
Definition: L1GtCondition.cc:28
L1GtCondition
Definition: L1GtCondition.h:35
L1GtCondition::m_condCategory
L1GtConditionCategory m_condCategory
the category of the condition
Definition: L1GtCondition.h:104
L1GtCondition::m_condType
L1GtConditionType m_condType
the type of the condition (1s, etc)
Definition: L1GtCondition.h:107
L1GtCondition::setCondName
void setCondName(const std::string &cName)
Definition: L1GtCondition.h:54
L1GtCondition::m_condGEq
bool m_condGEq
the operator used for the condition (>=, =): true for >=
Definition: L1GtCondition.h:113
L1GtCondition::nrObjects
const int nrObjects() const
get number of trigger objects
Definition: L1GtCondition.cc:62
L1GtCondition::condType
const L1GtConditionType & condType() const
get / set the type of the condition (1s, etc)
Definition: L1GtCondition.h:62
L1GtCondition::setObjectType
void setObjectType(const std::vector< L1GtObject > &objType)
Definition: L1GtCondition.h:69
L1GtCondition::condGEq
const bool condGEq() const
get / set condition GEq flag
Definition: L1GtCondition.h:72
L1GlobalTriggerReadoutSetupFwd.h
L1GtCondition::setCondType
void setCondType(const L1GtConditionType &cType)
Definition: L1GtCondition.h:64
L1GtCondition::wsc
const bool wsc() const
Definition: L1GtCondition.cc:114
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
L1GtCondition::corr
const bool corr() const
Definition: L1GtCondition.cc:124
L1GtCondition::objectType
const std::vector< L1GtObject > & objectType() const
get / set the trigger object type(s) in the condition
Definition: L1GtCondition.h:67
L1GtCondition::operator<<
friend std::ostream & operator<<(std::ostream &, const L1GtCondition &)
output stream operator
Definition: L1GtCondition.cc:420
L1GtConditionCategory
L1GtConditionCategory
condition categories
Definition: L1GtDefinitions.h:26
L1GtCondition::condCategory
const L1GtConditionCategory & condCategory() const
get / set the category of the condition
Definition: L1GtCondition.h:57
L1GtCondition::~L1GtCondition
virtual ~L1GtCondition()
destructor
Definition: L1GtCondition.cc:57
L1GtCondition::setCondChipNr
void setCondChipNr(const int &cChipNr)
Definition: L1GtCondition.h:79
L1GtConditionType
L1GtConditionType
Definition: L1GtDefinitions.h:4
electrons_cff.objType
objType
Definition: electrons_cff.py:519
Serializable.h
L1GtFwd.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
L1GtCondition::m_condChipNr
int m_condChipNr
condition is located on condition chip m_condChipNr
Definition: L1GtCondition.h:116
L1GtCondition::print
virtual void print(std::ostream &myCout) const
print condition
Definition: L1GtCondition.cc:133
L1GtCondition::setCondGEq
void setCondGEq(const bool &cGEq)
Definition: L1GtCondition.h:74
L1GtCondition::m_objectType
std::vector< L1GtObject > m_objectType
the trigger object type(s)
Definition: L1GtCondition.h:110
L1GtCondition::setCondCategory
void setCondCategory(const L1GtConditionCategory &cCategory)
Definition: L1GtCondition.h:59
L1GtCondition::condName
const std::string & condName() const
get / set condition name
Definition: L1GtCondition.h:52
L1GtCondition::m_condName
std::string m_condName
the name of the condition
Definition: L1GtCondition.h:101
L1GtCondition::condChipNr
const int & condChipNr() const
get / set the condition-chip number the condition is located on
Definition: L1GtCondition.h:77