CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends
CSCL1TPLookupTableCCLUT Class Reference

#include <CSCL1TPLookupTableCCLUT.h>

Public Types

typedef std::unordered_map
< unsigned, std::vector
< unsigned > > 
t_lut
 

Public Member Functions

unsigned cclutPosition (unsigned pattern, unsigned code) const
 
unsigned cclutSlope (unsigned pattern, unsigned code) const
 
 CSCL1TPLookupTableCCLUT ()
 
void set_cclutPosition (t_lut lut)
 
void set_cclutSlope (t_lut lut)
 
 ~CSCL1TPLookupTableCCLUT ()
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

t_lut cclutPosition_
 
t_lut cclutSlope_
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Definition at line 8 of file CSCL1TPLookupTableCCLUT.h.

Member Typedef Documentation

typedef std::unordered_map<unsigned, std::vector<unsigned> > CSCL1TPLookupTableCCLUT::t_lut

Definition at line 13 of file CSCL1TPLookupTableCCLUT.h.

Constructor & Destructor Documentation

CSCL1TPLookupTableCCLUT::CSCL1TPLookupTableCCLUT ( )

Definition at line 3 of file CSCL1TPLookupTableCCLUT.cc.

References cclutPosition_, and cclutSlope_.

3  {
4  cclutPosition_.reserve(5);
5  cclutSlope_.reserve(5);
6 }
CSCL1TPLookupTableCCLUT::~CSCL1TPLookupTableCCLUT ( )
inline

Definition at line 11 of file CSCL1TPLookupTableCCLUT.h.

11 {}

Member Function Documentation

unsigned CSCL1TPLookupTableCCLUT::cclutPosition ( unsigned  pattern,
unsigned  code 
) const

Definition at line 12 of file CSCL1TPLookupTableCCLUT.cc.

References cclutPosition_.

Referenced by ComparatorCodeLUT::run().

12  {
13  return cclutPosition_.at(pattern)[code];
14 }
unsigned CSCL1TPLookupTableCCLUT::cclutSlope ( unsigned  pattern,
unsigned  code 
) const

Definition at line 16 of file CSCL1TPLookupTableCCLUT.cc.

References cclutSlope_.

Referenced by ComparatorCodeLUT::run().

16  {
17  return cclutSlope_.at(pattern)[code];
18 }
template<class Archive >
void CSCL1TPLookupTableCCLUT::serialize ( Archive &  ar,
const unsigned int  version 
)
private
void CSCL1TPLookupTableCCLUT::set_cclutPosition ( t_lut  lut)

Definition at line 8 of file CSCL1TPLookupTableCCLUT.cc.

References cclutPosition_, and eostools::move().

void CSCL1TPLookupTableCCLUT::set_cclutSlope ( t_lut  lut)

Definition at line 10 of file CSCL1TPLookupTableCCLUT.cc.

References cclutSlope_, and eostools::move().

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 27 of file CSCL1TPLookupTableCCLUT.h.

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 27 of file CSCL1TPLookupTableCCLUT.h.

Member Data Documentation

t_lut CSCL1TPLookupTableCCLUT::cclutPosition_
private
t_lut CSCL1TPLookupTableCCLUT::cclutSlope_
private

Definition at line 25 of file CSCL1TPLookupTableCCLUT.h.

Referenced by cclutSlope(), CSCL1TPLookupTableCCLUT(), and set_cclutSlope().