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 
21 // system include files
22 #include <string>
23 #include <vector>
24 
25 #include <iostream>
26 
27 // user include files
30 
31 // forward declarations
32 
33 // class declaration
35 public:
39 
42 
45 
47  virtual ~GlobalCondition();
48 
49 public:
51  inline const std::string& condName() const { return m_condName; }
52 
53  inline void setCondName(const std::string& cName) { m_condName = cName; }
54 
56  inline const l1t::GtConditionCategory& condCategory() const { return m_condCategory; }
57 
58  inline void setCondCategory(const l1t::GtConditionCategory& cCategory) { m_condCategory = cCategory; }
59 
61  inline const l1t::GtConditionType& condType() const { return m_condType; }
62 
63  inline void setCondType(const l1t::GtConditionType& cType) { m_condType = cType; }
64 
66  inline const std::vector<l1t::GlobalObject>& objectType() const { return m_objectType; }
67 
68  inline void setObjectType(const std::vector<l1t::GlobalObject>& objType) { m_objectType = objType; }
69 
71  inline const bool condGEq() const { return m_condGEq; }
72 
73  inline void setCondGEq(const bool& cGEq) { m_condGEq = cGEq; }
74 
76  inline const int& condChipNr() const { return m_condChipNr; }
77 
78  inline void setCondChipNr(const int& cChipNr) { m_condChipNr = cChipNr; }
79 
81  inline const int& condRelativeBx() const { return m_condRelativeBx; }
82 
83  inline void setCondRelativeBx(const int& cRelativeBx) { m_condRelativeBx = cRelativeBx; }
84 
85 public:
87  const int nrObjects() const;
88 
91  const bool wsc() const;
92 
95  const bool corr() const;
96 
98  const bool corrThree() const;
99 
101  virtual void print(std::ostream& myCout) const;
102 
104  friend std::ostream& operator<<(std::ostream&, const GlobalCondition&);
105 
106 protected:
109 
112 
115 
117  std::vector<l1t::GlobalObject> m_objectType;
118 
120  bool m_condGEq;
121 
124 
125  // Relative bunch crossing offset for input data.
127 };
128 
129 #endif /*L1Trigger_L1TGlobal_GtCondition_h*/
GlobalCondition::condRelativeBx
const int & condRelativeBx() const
get / set the condition relative bx
Definition: GlobalCondition.h:81
GlobalCondition::setCondType
void setCondType(const l1t::GtConditionType &cType)
Definition: GlobalCondition.h:63
GlobalCondition::setCondRelativeBx
void setCondRelativeBx(const int &cRelativeBx)
Definition: GlobalCondition.h:83
GlobalCondition::condType
const l1t::GtConditionType & condType() const
get / set the type of the condition (1s, etc)
Definition: GlobalCondition.h:61
GlobalCondition::print
virtual void print(std::ostream &myCout) const
print condition
Definition: GlobalCondition.cc:166
GlobalCondition::corr
const bool corr() const
Definition: GlobalCondition.cc:148
GlobalObject.h
GlobalCondition::objectType
const std::vector< l1t::GlobalObject > & objectType() const
get / set the trigger object type(s) in the condition
Definition: GlobalCondition.h:66
GlobalCondition::m_condRelativeBx
int m_condRelativeBx
Definition: GlobalCondition.h:126
GlobalCondition::condCategory
const l1t::GtConditionCategory & condCategory() const
get / set the category of the condition
Definition: GlobalCondition.h:56
l1t::GtConditionType
GtConditionType
Definition: GlobalDefinitions.h:49
GlobalCondition::setCondChipNr
void setCondChipNr(const int &cChipNr)
Definition: GlobalCondition.h:78
GlobalCondition::wsc
const bool wsc() const
Definition: GlobalCondition.cc:138
GlobalCondition::m_condChipNr
int m_condChipNr
condition is located on condition chip m_condChipNr
Definition: GlobalCondition.h:123
GlobalCondition::m_condCategory
l1t::GtConditionCategory m_condCategory
the category of the condition
Definition: GlobalCondition.h:111
GlobalCondition::GlobalCondition
GlobalCondition()
Definition: GlobalCondition.cc:29
GlobalCondition::m_objectType
std::vector< l1t::GlobalObject > m_objectType
the trigger object type(s)
Definition: GlobalCondition.h:117
GlobalCondition::setCondName
void setCondName(const std::string &cName)
Definition: GlobalCondition.h:53
electrons_cff.objType
objType
Definition: electrons_cff.py:519
GlobalCondition::m_condGEq
bool m_condGEq
the operator used for the condition (>=, =): true for >=
Definition: GlobalCondition.h:120
GlobalCondition::condGEq
const bool condGEq() const
get / set condition GEq flag
Definition: GlobalCondition.h:71
GlobalCondition::setCondCategory
void setCondCategory(const l1t::GtConditionCategory &cCategory)
Definition: GlobalCondition.h:58
GlobalCondition::m_condName
std::string m_condName
the name of the condition
Definition: GlobalCondition.h:108
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
GlobalCondition::condName
const std::string & condName() const
get / set condition name
Definition: GlobalCondition.h:51
GlobalCondition::nrObjects
const int nrObjects() const
get number of trigger objects
Definition: GlobalCondition.cc:65
GlobalCondition::m_condType
l1t::GtConditionType m_condType
the type of the condition (1s, etc)
Definition: GlobalCondition.h:114
GlobalCondition::operator<<
friend std::ostream & operator<<(std::ostream &, const GlobalCondition &)
output stream operator
Definition: GlobalCondition.cc:596
GlobalDefinitions.h
GlobalCondition::setObjectType
void setObjectType(const std::vector< l1t::GlobalObject > &objType)
Definition: GlobalCondition.h:68
l1t::GtConditionCategory
GtConditionCategory
condition categories
Definition: GlobalDefinitions.h:93
GlobalCondition::condChipNr
const int & condChipNr() const
get / set the condition-chip number the condition is located on
Definition: GlobalCondition.h:76
GlobalCondition
Definition: GlobalCondition.h:34
GlobalCondition::corrThree
const bool corrThree() const
get logic flag for three-body conditions, trigger objects are muons
Definition: GlobalCondition.cc:157
GlobalCondition::setCondGEq
void setCondGEq(const bool &cGEq)
Definition: GlobalCondition.h:73
GlobalCondition::~GlobalCondition
virtual ~GlobalCondition()
destructor
Definition: GlobalCondition.cc:60