CMS 3D CMS Logo

GlobalCondition.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 
30 // forward declarations
31 
32 // class declaration
34 public:
38 
41 
44 
46  virtual ~GlobalCondition();
47 
48 public:
50  inline const std::string& condName() const { return m_condName; }
51 
52  inline void setCondName(const std::string& cName) { m_condName = cName; }
53 
55  inline const l1t::GtConditionCategory& condCategory() const { return m_condCategory; }
56 
57  inline void setCondCategory(const l1t::GtConditionCategory& cCategory) { m_condCategory = cCategory; }
58 
60  inline const l1t::GtConditionType& condType() const { return m_condType; }
61 
62  inline void setCondType(const l1t::GtConditionType& cType) { m_condType = cType; }
63 
65  inline const std::vector<l1t::GlobalObject>& objectType() const { return m_objectType; }
66 
67  inline void setObjectType(const std::vector<l1t::GlobalObject>& objType) { m_objectType = objType; }
68 
70  inline const bool condGEq() const { return m_condGEq; }
71 
72  inline void setCondGEq(const bool& cGEq) { m_condGEq = cGEq; }
73 
75  inline const int& condChipNr() const { return m_condChipNr; }
76 
77  inline void setCondChipNr(const int& cChipNr) { m_condChipNr = cChipNr; }
78 
80  inline const int& condRelativeBx() const { return m_condRelativeBx; }
81 
82  inline void setCondRelativeBx(const int& cRelativeBx) { m_condRelativeBx = cRelativeBx; }
83 
84 public:
86  const int nrObjects() const;
87 
90  const bool wsc() const;
91 
94  const bool corr() const;
95 
97  virtual void print(std::ostream& myCout) const;
98 
100  friend std::ostream& operator<<(std::ostream&, const GlobalCondition&);
101 
102 protected:
105 
108 
111 
113  std::vector<l1t::GlobalObject> m_objectType;
114 
116  bool m_condGEq;
117 
120 
121  // Relative bunch crossing offset for input data.
123 };
124 
125 #endif /*L1Trigger_L1TGlobal_GtCondition_h*/
GlobalCondition::condRelativeBx
const int & condRelativeBx() const
get / set the condition relative bx
Definition: GlobalCondition.h:80
GlobalCondition::setCondType
void setCondType(const l1t::GtConditionType &cType)
Definition: GlobalCondition.h:62
GlobalCondition::setCondRelativeBx
void setCondRelativeBx(const int &cRelativeBx)
Definition: GlobalCondition.h:82
GlobalCondition::condType
const l1t::GtConditionType & condType() const
get / set the type of the condition (1s, etc)
Definition: GlobalCondition.h:60
GlobalCondition::print
virtual void print(std::ostream &myCout) const
print condition
Definition: GlobalCondition.cc:156
GlobalCondition::corr
const bool corr() const
Definition: GlobalCondition.cc:147
GlobalObject.h
GlobalCondition::objectType
const std::vector< l1t::GlobalObject > & objectType() const
get / set the trigger object type(s) in the condition
Definition: GlobalCondition.h:65
GlobalCondition::m_condRelativeBx
int m_condRelativeBx
Definition: GlobalCondition.h:122
GlobalCondition::condCategory
const l1t::GtConditionCategory & condCategory() const
get / set the category of the condition
Definition: GlobalCondition.h:55
l1t::GtConditionType
GtConditionType
Definition: GlobalDefinitions.h:48
GlobalCondition::setCondChipNr
void setCondChipNr(const int &cChipNr)
Definition: GlobalCondition.h:77
GlobalCondition::wsc
const bool wsc() const
Definition: GlobalCondition.cc:137
GlobalCondition::m_condChipNr
int m_condChipNr
condition is located on condition chip m_condChipNr
Definition: GlobalCondition.h:119
GlobalCondition::m_condCategory
l1t::GtConditionCategory m_condCategory
the category of the condition
Definition: GlobalCondition.h:107
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
GlobalCondition::GlobalCondition
GlobalCondition()
Definition: GlobalCondition.cc:28
GlobalCondition::m_objectType
std::vector< l1t::GlobalObject > m_objectType
the trigger object type(s)
Definition: GlobalCondition.h:113
GlobalCondition::setCondName
void setCondName(const std::string &cName)
Definition: GlobalCondition.h:52
electrons_cff.objType
objType
Definition: electrons_cff.py:514
GlobalCondition::m_condGEq
bool m_condGEq
the operator used for the condition (>=, =): true for >=
Definition: GlobalCondition.h:116
GlobalCondition::condGEq
const bool condGEq() const
get / set condition GEq flag
Definition: GlobalCondition.h:70
GlobalCondition::setCondCategory
void setCondCategory(const l1t::GtConditionCategory &cCategory)
Definition: GlobalCondition.h:57
GlobalCondition::m_condName
std::string m_condName
the name of the condition
Definition: GlobalCondition.h:104
GlobalCondition::condName
const std::string & condName() const
get / set condition name
Definition: GlobalCondition.h:50
GlobalCondition::nrObjects
const int nrObjects() const
get number of trigger objects
Definition: GlobalCondition.cc:64
GlobalCondition::m_condType
l1t::GtConditionType m_condType
the type of the condition (1s, etc)
Definition: GlobalCondition.h:110
GlobalCondition::operator<<
friend std::ostream & operator<<(std::ostream &, const GlobalCondition &)
output stream operator
Definition: GlobalCondition.cc:580
GlobalDefinitions.h
GlobalCondition::setObjectType
void setObjectType(const std::vector< l1t::GlobalObject > &objType)
Definition: GlobalCondition.h:67
l1t::GtConditionCategory
GtConditionCategory
condition categories
Definition: GlobalDefinitions.h:92
GlobalCondition::condChipNr
const int & condChipNr() const
get / set the condition-chip number the condition is located on
Definition: GlobalCondition.h:75
GlobalCondition
Definition: GlobalCondition.h:33
GlobalCondition::setCondGEq
void setCondGEq(const bool &cGEq)
Definition: GlobalCondition.h:72
GlobalCondition::~GlobalCondition
virtual ~GlobalCondition()
destructor
Definition: GlobalCondition.cc:59