File indexing completed on 2023-03-17 10:47:09
0001 #ifndef CondFormats_L1TObjects_L1GtCondition_h
0002 #define CondFormats_L1TObjects_L1GtCondition_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021 #include "CondFormats/Serialization/interface/Serializable.h"
0022
0023 #include <string>
0024 #include <vector>
0025
0026 #include <iostream>
0027
0028
0029 #include "CondFormats/L1TObjects/interface/L1GtFwd.h"
0030 #include "DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerReadoutSetupFwd.h"
0031
0032
0033
0034
0035 class L1GtCondition {
0036 public:
0037
0038
0039 L1GtCondition();
0040
0041
0042 L1GtCondition(const std::string&);
0043
0044
0045 L1GtCondition(const std::string&, const L1GtConditionCategory&, const L1GtConditionType&);
0046
0047
0048 virtual ~L1GtCondition();
0049
0050 public:
0051
0052 inline const std::string& condName() const { return m_condName; }
0053
0054 inline void setCondName(const std::string& cName) { m_condName = cName; }
0055
0056
0057 inline const L1GtConditionCategory& condCategory() const { return m_condCategory; }
0058
0059 inline void setCondCategory(const L1GtConditionCategory& cCategory) { m_condCategory = cCategory; }
0060
0061
0062 inline const L1GtConditionType& condType() const { return m_condType; }
0063
0064 inline void setCondType(const L1GtConditionType& cType) { m_condType = cType; }
0065
0066
0067 inline const std::vector<L1GtObject>& objectType() const { return m_objectType; }
0068
0069 inline void setObjectType(const std::vector<L1GtObject>& objType) { m_objectType = objType; }
0070
0071
0072 inline const bool condGEq() const { return m_condGEq; }
0073
0074 inline void setCondGEq(const bool& cGEq) { m_condGEq = cGEq; }
0075
0076
0077 inline const int& condChipNr() const { return m_condChipNr; }
0078
0079 inline void setCondChipNr(const int& cChipNr) { m_condChipNr = cChipNr; }
0080
0081 public:
0082
0083 const int nrObjects() const;
0084
0085
0086
0087 const bool wsc() const;
0088
0089
0090
0091 const bool corr() const;
0092
0093
0094 virtual void print(std::ostream& myCout) const;
0095
0096
0097 friend std::ostream& operator<<(std::ostream&, const L1GtCondition&);
0098
0099 protected:
0100
0101 std::string m_condName;
0102
0103
0104 L1GtConditionCategory m_condCategory;
0105
0106
0107 L1GtConditionType m_condType;
0108
0109
0110 std::vector<L1GtObject> m_objectType;
0111
0112
0113 bool m_condGEq;
0114
0115
0116 int m_condChipNr;
0117
0118 COND_SERIALIZABLE;
0119 };
0120
0121 #endif