File indexing completed on 2024-04-06 12:02:19
0001 #ifndef L1TObjects_L1CaloEcalScale_h
0002 #define L1TObjects_L1CaloEcalScale_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022 #include "CondFormats/Serialization/interface/Serializable.h"
0023
0024 #include <vector>
0025 #include <ostream>
0026 #include <cstdint>
0027
0028 class L1CaloEcalScale {
0029 public:
0030
0031 static const unsigned short nBinRank = 1 << 8;
0032 static const unsigned short nBinEta = 28;
0033
0034
0035 L1CaloEcalScale(double lsb = 1.0);
0036
0037
0038 ~L1CaloEcalScale();
0039
0040
0041
0042
0043
0044 void setBin(unsigned short rank,
0045 unsigned short eta,
0046 short etaSign,
0047 double et);
0048
0049
0050 uint16_t rank(double et,
0051 unsigned short eta,
0052 short etaSign) const;
0053
0054
0055 double et(unsigned short rank,
0056 unsigned short eta,
0057 short etaSign) const;
0058
0059 void print(std::ostream& s) const;
0060
0061 private:
0062
0063
0064 double m_scale[nBinRank][2 * nBinEta];
0065
0066 COND_SERIALIZABLE;
0067 };
0068
0069 #endif