Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:02:00

0001 #include "CondFormats/CSCObjects/interface/CSCL1TPLookupTableCCLUT.h"
0002 
0003 CSCL1TPLookupTableCCLUT::CSCL1TPLookupTableCCLUT() {
0004   cclutPosition_.reserve(5);
0005   cclutSlope_.reserve(5);
0006 }
0007 
0008 void CSCL1TPLookupTableCCLUT::set_cclutPosition(t_lut lut) { cclutPosition_ = std::move(lut); }
0009 
0010 void CSCL1TPLookupTableCCLUT::set_cclutSlope(t_lut lut) { cclutSlope_ = std::move(lut); }
0011 
0012 unsigned CSCL1TPLookupTableCCLUT::cclutPosition(unsigned pattern, unsigned code) const {
0013   return cclutPosition_.at(pattern)[code];
0014 }
0015 
0016 unsigned CSCL1TPLookupTableCCLUT::cclutSlope(unsigned pattern, unsigned code) const {
0017   return cclutSlope_.at(pattern)[code];
0018 }