File indexing completed on 2024-04-06 12:02:19
0001 #ifndef CondFormats_L1TObjects_L1GtCaloTemplate_h
0002 #define CondFormats_L1TObjects_L1GtCaloTemplate_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 L1GtCaloTemplate : public L1GtCondition {
0035 public:
0036
0037 L1GtCaloTemplate();
0038
0039
0040 L1GtCaloTemplate(const std::string&);
0041
0042
0043 L1GtCaloTemplate(const std::string&, const L1GtConditionType&);
0044
0045
0046 L1GtCaloTemplate(const L1GtCaloTemplate&);
0047
0048
0049 ~L1GtCaloTemplate() override;
0050
0051
0052 L1GtCaloTemplate& operator=(const L1GtCaloTemplate&);
0053
0054 public:
0055
0056 struct ObjectParameter {
0057 unsigned int etThreshold;
0058 unsigned int etaRange;
0059 unsigned int phiRange;
0060
0061 COND_SERIALIZABLE;
0062 };
0063
0064
0065 struct CorrelationParameter {
0066 unsigned long long deltaEtaRange;
0067
0068 unsigned long long deltaPhiRange;
0069 unsigned int deltaPhiMaxbits;
0070
0071 COND_SERIALIZABLE;
0072 };
0073
0074 public:
0075 inline const std::vector<ObjectParameter>* objectParameter() const { return &m_objectParameter; }
0076
0077 inline const CorrelationParameter* correlationParameter() const { return &m_correlationParameter; }
0078
0079
0080 void setConditionParameter(const std::vector<ObjectParameter>& objParameter,
0081 const CorrelationParameter& corrParameter);
0082
0083
0084 void print(std::ostream& myCout) const override;
0085
0086
0087 friend std::ostream& operator<<(std::ostream&, const L1GtCaloTemplate&);
0088
0089 protected:
0090
0091 void copy(const L1GtCaloTemplate& cp);
0092
0093 protected:
0094
0095 std::vector<ObjectParameter> m_objectParameter;
0096 CorrelationParameter m_correlationParameter;
0097
0098 COND_SERIALIZABLE;
0099 };
0100
0101 #endif