File indexing completed on 2024-04-06 12:01:59
0001 #ifndef CondFormats_CSCObjects_CSCL1TPLookupTableCCLUT_h
0002 #define CondFormats_CSCObjects_CSCL1TPLookupTableCCLUT_h
0003
0004 #include "CondFormats/Serialization/interface/Serializable.h"
0005 #include <vector>
0006 #include <unordered_map>
0007
0008 class CSCL1TPLookupTableCCLUT {
0009 public:
0010 CSCL1TPLookupTableCCLUT();
0011 ~CSCL1TPLookupTableCCLUT() {}
0012
0013 typedef std::unordered_map<unsigned, std::vector<unsigned> > t_lut;
0014
0015
0016 void set_cclutPosition(t_lut lut);
0017 void set_cclutSlope(t_lut lut);
0018
0019
0020 unsigned cclutPosition(unsigned pattern, unsigned code) const;
0021 unsigned cclutSlope(unsigned pattern, unsigned code) const;
0022
0023 private:
0024 t_lut cclutPosition_;
0025 t_lut cclutSlope_;
0026
0027 COND_SERIALIZABLE;
0028 };
0029
0030 #endif