CMS 3D CMS Logo

Classes | Typedefs | Functions
tkMSParameterization Namespace Reference

Classes

struct  Elem
 
class  Elems
 
class  FromToData
 

Typedefs

using AllData = std::unordered_map< unsigned short, FromToData >
 

Functions

float lmBin ()
 
float lmBinInv ()
 
unsigned int nLmBins ()
 
unsigned short packLID (unsigned int id, unsigned int od)
 
std::tuple< unsigned short, unsigned short > unpackLID (unsigned short lid)
 

Typedef Documentation

using tkMSParameterization::AllData = typedef std::unordered_map<unsigned short, FromToData>

Definition at line 63 of file TkMSParameterization.h.

Function Documentation

float tkMSParameterization::lmBin ( )

Definition at line 23 of file TkMSParameterization.h.

Referenced by lmBinInv(), and TkMSParameterizationBuilder::produce().

23 { return 0.1f; }
float tkMSParameterization::lmBinInv ( )

Definition at line 24 of file TkMSParameterization.h.

References lmBin().

Referenced by tkMSParameterization::FromToData::get().

24 { return 1.f / lmBin(); }
unsigned int tkMSParameterization::nLmBins ( )

Definition at line 22 of file TkMSParameterization.h.

Referenced by tkMSParameterization::FromToData::get(), and TkMSParameterizationBuilder::produce().

22 { return 12 * 10; }
unsigned short tkMSParameterization::packLID ( unsigned int  id,
unsigned int  od 
)

Definition at line 17 of file TkMSParameterization.h.

Referenced by TkMSParameterization::fromTo(), and TkMSParameterizationBuilder::produce().

17 { return (id << 8) | od; }
std::tuple<unsigned short, unsigned short> tkMSParameterization::unpackLID ( unsigned short  lid)

Definition at line 18 of file TkMSParameterization.h.

18  {
19  return std::make_tuple(lid >> 8, lid & 255);
20  }