File indexing completed on 2023-03-17 10:47:09
0001 #ifndef CondFormats_L1TObjects_L1GtJetCountsTemplate_h
0002 #define CondFormats_L1TObjects_L1GtJetCountsTemplate_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 <iosfwd>
0025
0026
0027
0028
0029 #include "CondFormats/L1TObjects/interface/L1GtCondition.h"
0030
0031
0032
0033
0034 class L1GtJetCountsTemplate : public L1GtCondition {
0035 public:
0036
0037 L1GtJetCountsTemplate();
0038
0039
0040 L1GtJetCountsTemplate(const std::string&);
0041
0042
0043 L1GtJetCountsTemplate(const std::string&, const L1GtConditionType&);
0044
0045
0046 L1GtJetCountsTemplate(const L1GtJetCountsTemplate&);
0047
0048
0049 ~L1GtJetCountsTemplate() override;
0050
0051
0052 L1GtJetCountsTemplate& operator=(const L1GtJetCountsTemplate&);
0053
0054 public:
0055
0056 struct ObjectParameter {
0057 ObjectParameter() : countOverflow(false) {}
0058 unsigned int countIndex;
0059 unsigned int countThreshold;
0060
0061 bool countOverflow;
0062
0063 COND_SERIALIZABLE;
0064 };
0065
0066 public:
0067 inline const std::vector<ObjectParameter>* objectParameter() const { return &m_objectParameter; }
0068
0069
0070 void setConditionParameter(const std::vector<ObjectParameter>&);
0071
0072
0073 void print(std::ostream& myCout) const override;
0074
0075
0076 friend std::ostream& operator<<(std::ostream&, const L1GtJetCountsTemplate&);
0077
0078 private:
0079
0080 void copy(const L1GtJetCountsTemplate& cp);
0081
0082 private:
0083
0084 std::vector<ObjectParameter> m_objectParameter;
0085
0086 COND_SERIALIZABLE;
0087 };
0088
0089 #endif