CMS 3D CMS Logo

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

#include <L1TMuonBarrelParamsHelper.h>

Inheritance diagram for L1TMuonBarrelParamsHelper:
L1TMuonBarrelParams

Public Member Functions

std::string AssLUTPath () const
 
void configFromDB (l1t::TrigSystem &trgSys)
 
void configFromPy (std::map< std::string, int > &allInts, std::map< std::string, bool > &allBools, std::map< std::string, std::vector< std::string > > allMasks, unsigned int fwVersion, const std::string &AssLUTpath)
 
etaLUT eta_lut () const
 
std::vector< LUTParams::extLUT > ext_lut () const
 
unsigned fwVersion () const
 
int get_BX_max () const
 
int get_BX_min () const
 
bool get_DisableNewAlgo () const
 
bool get_EtaTrackFinder () const
 
bool get_Extrapolation_21 () const
 
int get_Extrapolation_Filter () const
 
int get_Extrapolation_nbits_Phi () const
 
int get_Extrapolation_nbits_PhiB () const
 
bool get_Open_LUTs () const
 
bool get_OutOfTime_Filter () const
 
int get_OutOfTime_Filter_Window () const
 
int get_PHI_Assignment_nbits_Phi () const
 
int get_PHI_Assignment_nbits_PhiB () const
 
int get_PT_Assignment_nbits_Phi () const
 
int get_PT_Assignment_nbits_PhiB () const
 
 L1TMuonBarrelParamsHelper ()
 
 L1TMuonBarrelParamsHelper (const L1TMuonBarrelParams &barrelParams)
 
std::vector< LUTphi_lut () const
 
void print (std::ostream &) const
 
std::vector< LUTpta_lut () const
 
std::vector< int > pta_threshold () const
 
qpLUT qp_lut () const
 
void set_BX_max (int par1)
 
void set_BX_min (int par1)
 
void set_DisableNewAlgo (bool par1)
 
void set_EtaTrackFinder (bool par1)
 
void set_Extrapolation_21 (bool par1)
 
void set_Extrapolation_Filter (int par1)
 
void set_Extrapolation_nbits_Phi (int par1)
 
void set_Extrapolation_nbits_PhiB (int par1)
 
void set_Open_LUTs (bool par1)
 
void set_OutOfTime_Filter (bool par1)
 
void set_OutOfTime_Filter_Window (int par1)
 
void set_PHI_Assignment_nbits_Phi (int par1)
 
void set_PHI_Assignment_nbits_PhiB (int par1)
 
void set_PT_Assignment_nbits_Phi (int par1)
 
void set_PT_Assignment_nbits_PhiB (int par1)
 
void setAssLUTPath (std::string path)
 
void seteta_lut (etaLUT eta_lut)
 
void setext_lut (std::vector< LUTParams::extLUT > extlut)
 
void setFwVersion (unsigned fwVersion)
 
void setphi_lut (std::vector< LUT > philut)
 
void setpta_lut (std::vector< LUT > ptalut)
 
void setpta_threshold (std::vector< int > ptathresh)
 
void setqp_lut (qpLUT qplut)
 
 ~L1TMuonBarrelParamsHelper ()
 
- Public Member Functions inherited from L1TMuonBarrelParams
 L1TMuonBarrelParams ()
 
 ~L1TMuonBarrelParams ()
 

Public Attributes

L1MuDTEtaPatternLut l1mudttfetaplut
 
L1MuDTQualPatternLut l1mudttfqualplut
 friend std::ostream& operator<<(std::ostream& o, const L1TMuonBarrelParams & p) { p.print(o); return o; } More...
 
- Public Attributes inherited from L1TMuonBarrelParams
unsigned fwVersion_
 
L1MuDTTFMasks l1mudttfmasks
 
std::vector< L1MuDTTFMasksl1mudttfmasks_
 
L1MuDTTFParameters l1mudttfparams
 
std::vector< L1MuDTTFParametersl1mudttfparams_
 
LUTParams lutparams_
 
std::vector< Nodepnodes_
 
unsigned version_
 

Private Member Functions

int load_ext (std::vector< L1TMuonBarrelParams::LUTParams::extLUT > &, unsigned short int, unsigned short int)
 
int load_phi (std::vector< LUT > &, unsigned short int, unsigned short int, std::string)
 
int load_pt (std::vector< LUT > &, std::vector< int > &, unsigned short int, std::string)
 if configDB More...
 

Private Attributes

l1t::TrigSystem m_trgSys
 

Additional Inherited Members

- Public Types inherited from L1TMuonBarrelParams
enum  { Version = 1 }
 
enum  { CONFIG = 0, NUM_BMTF_PARAM_NODES =2 }
 
enum  {
  PT_Assignment_nbits_Phi, PT_Assignment_nbits_PhiB, PHI_Assignment_nbits_Phi, PHI_Assignment_nbits_PhiB,
  Extrapolation_nbits_Phi, Extrapolation_nbits_PhiB, BX_min, BX_max,
  Extrapolation_Filter, OutOfTime_Filter_Window, OutOfTime_Filter, Open_LUTs,
  EtaTrackFinder, Extrapolation_21, DisableNewAlgo, NUM_CONFIG_PARAMS
}
 
typedef std::map< short,
L1MuDTEtaPattern, std::less
< short > > 
etaLUT
 Eta Pattern LUT. More...
 
typedef std::map< short, short,
std::less< short > > 
LUT
 L1MuBMPtaLut. More...
 
typedef std::pair< short,
std::vector< short > > 
LUTCONT
 
typedef std::pair< short, short > LUTID
 Qual Pattern LUT. More...
 
typedef std::map< LUTID, LUTCONTqpLUT
 

Detailed Description

Definition at line 32 of file L1TMuonBarrelParamsHelper.h.

Constructor & Destructor Documentation

L1TMuonBarrelParamsHelper::L1TMuonBarrelParamsHelper ( )
inline

Definition at line 35 of file L1TMuonBarrelParamsHelper.h.

L1TMuonBarrelParamsHelper::L1TMuonBarrelParamsHelper ( const L1TMuonBarrelParams barrelParams)

Definition at line 10 of file L1TMuonBarrelParamsHelper.cc.

L1TMuonBarrelParamsHelper::~L1TMuonBarrelParamsHelper ( )
inline

Definition at line 38 of file L1TMuonBarrelParamsHelper.h.

Member Function Documentation

std::string L1TMuonBarrelParamsHelper::AssLUTPath ( ) const
inline

Definition at line 45 of file L1TMuonBarrelParamsHelper.h.

void L1TMuonBarrelParamsHelper::configFromDB ( l1t::TrigSystem trgSys)

Converts the last bit from str to int

All bits must be the same

if register path

for masks

for it tRow

for it procRole

Definition at line 123 of file L1TMuonBarrelParamsHelper.cc.

void L1TMuonBarrelParamsHelper::configFromPy ( std::map< std::string, int > &  allInts,
std::map< std::string, bool > &  allBools,
std::map< std::string, std::vector< std::string > >  allMasks,
unsigned int  fwVersion,
const std::string &  AssLUTpath 
)

Read Pt assignment Luts

Read Phi assignment Luts

Read Extrapolation Luts

Definition at line 17 of file L1TMuonBarrelParamsHelper.cc.

etaLUT L1TMuonBarrelParamsHelper::eta_lut ( ) const
inline

Definition at line 63 of file L1TMuonBarrelParamsHelper.h.

std::vector<LUTParams::extLUT> L1TMuonBarrelParamsHelper::ext_lut ( ) const
inline

Definition at line 57 of file L1TMuonBarrelParamsHelper.h.

unsigned L1TMuonBarrelParamsHelper::fwVersion ( ) const
inline

Definition at line 102 of file L1TMuonBarrelParamsHelper.h.

int L1TMuonBarrelParamsHelper::get_BX_max ( ) const
inline

Definition at line 90 of file L1TMuonBarrelParamsHelper.h.

int L1TMuonBarrelParamsHelper::get_BX_min ( ) const
inline

Definition at line 89 of file L1TMuonBarrelParamsHelper.h.

bool L1TMuonBarrelParamsHelper::get_DisableNewAlgo ( ) const
inline

Definition at line 99 of file L1TMuonBarrelParamsHelper.h.

bool L1TMuonBarrelParamsHelper::get_EtaTrackFinder ( ) const
inline

Definition at line 97 of file L1TMuonBarrelParamsHelper.h.

bool L1TMuonBarrelParamsHelper::get_Extrapolation_21 ( ) const
inline

Definition at line 98 of file L1TMuonBarrelParamsHelper.h.

int L1TMuonBarrelParamsHelper::get_Extrapolation_Filter ( ) const
inline

Definition at line 91 of file L1TMuonBarrelParamsHelper.h.

int L1TMuonBarrelParamsHelper::get_Extrapolation_nbits_Phi ( ) const
inline

Definition at line 87 of file L1TMuonBarrelParamsHelper.h.

int L1TMuonBarrelParamsHelper::get_Extrapolation_nbits_PhiB ( ) const
inline

Definition at line 88 of file L1TMuonBarrelParamsHelper.h.

bool L1TMuonBarrelParamsHelper::get_Open_LUTs ( ) const
inline

Definition at line 96 of file L1TMuonBarrelParamsHelper.h.

bool L1TMuonBarrelParamsHelper::get_OutOfTime_Filter ( ) const
inline

Definition at line 95 of file L1TMuonBarrelParamsHelper.h.

int L1TMuonBarrelParamsHelper::get_OutOfTime_Filter_Window ( ) const
inline

Definition at line 92 of file L1TMuonBarrelParamsHelper.h.

int L1TMuonBarrelParamsHelper::get_PHI_Assignment_nbits_Phi ( ) const
inline

Definition at line 85 of file L1TMuonBarrelParamsHelper.h.

int L1TMuonBarrelParamsHelper::get_PHI_Assignment_nbits_PhiB ( ) const
inline

Definition at line 86 of file L1TMuonBarrelParamsHelper.h.

int L1TMuonBarrelParamsHelper::get_PT_Assignment_nbits_Phi ( ) const
inline

Definition at line 83 of file L1TMuonBarrelParamsHelper.h.

int L1TMuonBarrelParamsHelper::get_PT_Assignment_nbits_PhiB ( ) const
inline

Definition at line 84 of file L1TMuonBarrelParamsHelper.h.

int L1TMuonBarrelParamsHelper::load_ext ( std::vector< L1TMuonBarrelParams::LUTParams::extLUT > &  ext_lut,
unsigned short int  nbit_phi,
unsigned short int  nbit_phib 
)
private

Definition at line 474 of file L1TMuonBarrelParamsHelper.cc.

int L1TMuonBarrelParamsHelper::load_phi ( std::vector< LUT > &  phi_lut,
unsigned short int  nbit_phi,
unsigned short int  nbit_phib,
std::string  AssLUTpath 
)
private

Definition at line 388 of file L1TMuonBarrelParamsHelper.cc.

int L1TMuonBarrelParamsHelper::load_pt ( std::vector< LUT > &  pta_lut,
std::vector< int > &  pta_threshold,
unsigned short int  nbitphi,
std::string  AssLUTpath 
)
private

if configDB

Definition at line 281 of file L1TMuonBarrelParamsHelper.cc.

std::vector<LUT> L1TMuonBarrelParamsHelper::phi_lut ( ) const
inline

Definition at line 54 of file L1TMuonBarrelParamsHelper.h.

void L1TMuonBarrelParamsHelper::print ( std::ostream &  out) const

Definition at line 3 of file L1TMuonBarrelParamsHelper.cc.

std::vector<LUT> L1TMuonBarrelParamsHelper::pta_lut ( ) const
inline

Definition at line 49 of file L1TMuonBarrelParamsHelper.h.

std::vector<int> L1TMuonBarrelParamsHelper::pta_threshold ( ) const
inline

Definition at line 51 of file L1TMuonBarrelParamsHelper.h.

qpLUT L1TMuonBarrelParamsHelper::qp_lut ( ) const
inline

Definition at line 60 of file L1TMuonBarrelParamsHelper.h.

void L1TMuonBarrelParamsHelper::set_BX_max ( int  par1)
inline

Definition at line 73 of file L1TMuonBarrelParamsHelper.h.

void L1TMuonBarrelParamsHelper::set_BX_min ( int  par1)
inline

Definition at line 72 of file L1TMuonBarrelParamsHelper.h.

void L1TMuonBarrelParamsHelper::set_DisableNewAlgo ( bool  par1)
inline

Definition at line 80 of file L1TMuonBarrelParamsHelper.h.

void L1TMuonBarrelParamsHelper::set_EtaTrackFinder ( bool  par1)
inline

Definition at line 78 of file L1TMuonBarrelParamsHelper.h.

void L1TMuonBarrelParamsHelper::set_Extrapolation_21 ( bool  par1)
inline

Definition at line 79 of file L1TMuonBarrelParamsHelper.h.

void L1TMuonBarrelParamsHelper::set_Extrapolation_Filter ( int  par1)
inline

Definition at line 74 of file L1TMuonBarrelParamsHelper.h.

void L1TMuonBarrelParamsHelper::set_Extrapolation_nbits_Phi ( int  par1)
inline

Definition at line 70 of file L1TMuonBarrelParamsHelper.h.

void L1TMuonBarrelParamsHelper::set_Extrapolation_nbits_PhiB ( int  par1)
inline

Definition at line 71 of file L1TMuonBarrelParamsHelper.h.

void L1TMuonBarrelParamsHelper::set_Open_LUTs ( bool  par1)
inline

Definition at line 77 of file L1TMuonBarrelParamsHelper.h.

void L1TMuonBarrelParamsHelper::set_OutOfTime_Filter ( bool  par1)
inline

Definition at line 76 of file L1TMuonBarrelParamsHelper.h.

void L1TMuonBarrelParamsHelper::set_OutOfTime_Filter_Window ( int  par1)
inline

Definition at line 75 of file L1TMuonBarrelParamsHelper.h.

void L1TMuonBarrelParamsHelper::set_PHI_Assignment_nbits_Phi ( int  par1)
inline

Definition at line 68 of file L1TMuonBarrelParamsHelper.h.

void L1TMuonBarrelParamsHelper::set_PHI_Assignment_nbits_PhiB ( int  par1)
inline

Definition at line 69 of file L1TMuonBarrelParamsHelper.h.

void L1TMuonBarrelParamsHelper::set_PT_Assignment_nbits_Phi ( int  par1)
inline

Definition at line 66 of file L1TMuonBarrelParamsHelper.h.

void L1TMuonBarrelParamsHelper::set_PT_Assignment_nbits_PhiB ( int  par1)
inline

Definition at line 67 of file L1TMuonBarrelParamsHelper.h.

void L1TMuonBarrelParamsHelper::setAssLUTPath ( std::string  path)
inline

Definition at line 46 of file L1TMuonBarrelParamsHelper.h.

void L1TMuonBarrelParamsHelper::seteta_lut ( etaLUT  eta_lut)
inline

Definition at line 62 of file L1TMuonBarrelParamsHelper.h.

void L1TMuonBarrelParamsHelper::setext_lut ( std::vector< LUTParams::extLUT >  extlut)
inline

Definition at line 56 of file L1TMuonBarrelParamsHelper.h.

void L1TMuonBarrelParamsHelper::setFwVersion ( unsigned  fwVersion)
inline

Definition at line 103 of file L1TMuonBarrelParamsHelper.h.

void L1TMuonBarrelParamsHelper::setphi_lut ( std::vector< LUT philut)
inline

Definition at line 53 of file L1TMuonBarrelParamsHelper.h.

void L1TMuonBarrelParamsHelper::setpta_lut ( std::vector< LUT ptalut)
inline

Definition at line 48 of file L1TMuonBarrelParamsHelper.h.

void L1TMuonBarrelParamsHelper::setpta_threshold ( std::vector< int >  ptathresh)
inline

Definition at line 50 of file L1TMuonBarrelParamsHelper.h.

void L1TMuonBarrelParamsHelper::setqp_lut ( qpLUT  qplut)
inline

Definition at line 59 of file L1TMuonBarrelParamsHelper.h.

Member Data Documentation

L1MuDTEtaPatternLut L1TMuonBarrelParamsHelper::l1mudttfetaplut

Definition at line 111 of file L1TMuonBarrelParamsHelper.h.

L1MuDTQualPatternLut L1TMuonBarrelParamsHelper::l1mudttfqualplut

friend std::ostream& operator<<(std::ostream& o, const L1TMuonBarrelParams & p) { p.print(o); return o; }

Definition at line 110 of file L1TMuonBarrelParamsHelper.h.

l1t::TrigSystem L1TMuonBarrelParamsHelper::m_trgSys
private

Definition at line 114 of file L1TMuonBarrelParamsHelper.h.