CMS 3D CMS Logo

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

#include <CSCSectorReceiverLUT.h>

Public Member Functions

 CSCSectorReceiverLUT (int endcap, int sector, int subsector, int station, const edm::ParameterSet &pset, bool TMB07)
 
 CSCSectorReceiverLUT (const CSCSectorReceiverLUT &)
 
std::string encodeFileIndex () const
 Helpers. More...
 
gbletadat globalEtaME (int phi_bend, int phi_local, int wire_group, int cscid, const bool gangedME1a=false) const
 
gbletadat globalEtaME (unsigned address, const bool gangedME1a=false) const
 
gbletadat globalEtaME (gbletaadd address, const bool gangedME1a=false) const
 
gblphidat globalPhiMB (int phi_local, int wire_group, int cscid, const bool gangedME1a=false) const
 
gblphidat globalPhiMB (unsigned address, const bool gangedME1a=false) const
 
gblphidat globalPhiMB (gblphiadd address, const bool gangedME1a=false) const
 
gblphidat globalPhiME (int phi_local, int wire_group, int cscid, const bool gangedME1a=false) const
 
gblphidat globalPhiME (unsigned address, const bool gangedME1a=false) const
 
gblphidat globalPhiME (gblphiadd address, const bool gangedME1a=false) const
 
lclphidat localPhi (int strip, int pattern, int quality, int lr, const bool gangedME1a=false) const
 Geometry Lookup Tables. More...
 
lclphidat localPhi (unsigned address, const bool gangedME1a=false) const
 
lclphidat localPhi (lclphiadd address, const bool gangedME1a=false) const
 
CSCSectorReceiverLUToperator= (const CSCSectorReceiverLUT &)
 
 ~CSCSectorReceiverLUT ()
 

Private Member Functions

gbletadat calcGlobalEtaME (const gbletaadd &address) const
 Global Eta LUT. More...
 
gblphidat calcGlobalPhiMB (const gblphidat &me_gphi_data) const
 
gblphidat calcGlobalPhiME (const gblphiadd &address) const
 Global Phi LUT. More...
 
lclphidat calcLocalPhi (const lclphiadd &address) const
 Local Phi LUT. More...
 
void fillLocalPhiLUT ()
 
double getGlobalEtaValue (const unsigned &cscid, const unsigned &wire_group, const unsigned &phi_local) const
 
double getGlobalPhiValue (const CSCLayer *thelayer, const unsigned &strip, const unsigned &wire_group) const
 
void readLUTsFromFile ()
 

Private Attributes

int _endcap
 
int _sector
 
int _station
 
int _subsector
 
bool isBinary
 
bool isTMB07
 
bool LUTsFromFile
 
edm::FileInPath mb_gbl_phi_file
 
gblphidatmb_global_phi
 
edm::FileInPath me_gbl_eta_file
 
edm::FileInPath me_gbl_phi_file
 
gbletadatme_global_eta
 
gblphidatme_global_phi
 
edm::FileInPath me_lcl_phi_file
 
bool useMiniLUTs
 

Static Private Attributes

static lclphidatme_lcl_phi = NULL
 
static bool me_lcl_phi_loaded = false
 

Detailed Description

Author
Lindsey Gray, Slava Valuev, Jason Mumford

Provides Look Up Table information for use in the SP Core. Partial port from ORCA.

Definition at line 18 of file CSCSectorReceiverLUT.h.

Constructor & Destructor Documentation

CSCSectorReceiverLUT::CSCSectorReceiverLUT ( int  endcap,
int  sector,
int  subsector,
int  station,
const edm::ParameterSet pset,
bool  TMB07 
)

Definition at line 26 of file CSCSectorReceiverLUT.cc.

CSCSectorReceiverLUT::CSCSectorReceiverLUT ( const CSCSectorReceiverLUT lut)

Definition at line 57 of file CSCSectorReceiverLUT.cc.

CSCSectorReceiverLUT::~CSCSectorReceiverLUT ( )

Definition at line 127 of file CSCSectorReceiverLUT.cc.

Member Function Documentation

gbletadat CSCSectorReceiverLUT::calcGlobalEtaME ( const gbletaadd address) const
private

Global Eta LUT.

Definition at line 717 of file CSCSectorReceiverLUT.cc.

gblphidat CSCSectorReceiverLUT::calcGlobalPhiMB ( const gblphidat me_gphi_data) const
private

Definition at line 539 of file CSCSectorReceiverLUT.cc.

gblphidat CSCSectorReceiverLUT::calcGlobalPhiME ( const gblphiadd address) const
private

Global Phi LUT.

Definition at line 273 of file CSCSectorReceiverLUT.cc.

lclphidat CSCSectorReceiverLUT::calcLocalPhi ( const lclphiadd address) const
private

Local Phi LUT.

Local Phi Bend is always zero. Until we start using it.

Definition at line 152 of file CSCSectorReceiverLUT.cc.

std::string CSCSectorReceiverLUT::encodeFileIndex ( ) const

Helpers.

Definition at line 816 of file CSCSectorReceiverLUT.cc.

void CSCSectorReceiverLUT::fillLocalPhiLUT ( )
private

Definition at line 200 of file CSCSectorReceiverLUT.cc.

double CSCSectorReceiverLUT::getGlobalEtaValue ( const unsigned &  cscid,
const unsigned &  wire_group,
const unsigned &  phi_local 
) const
private

Calculate Eta correction

Definition at line 611 of file CSCSectorReceiverLUT.cc.

double CSCSectorReceiverLUT::getGlobalPhiValue ( const CSCLayer thelayer,
const unsigned &  strip,
const unsigned &  wire_group 
) const
private

Definition at line 249 of file CSCSectorReceiverLUT.cc.

gbletadat CSCSectorReceiverLUT::globalEtaME ( int  phi_bend,
int  phi_local,
int  wire_group,
int  cscid,
const bool  gangedME1a = false 
) const

Definition at line 778 of file CSCSectorReceiverLUT.cc.

gbletadat CSCSectorReceiverLUT::globalEtaME ( unsigned  address,
const bool  gangedME1a = false 
) const

Definition at line 795 of file CSCSectorReceiverLUT.cc.

gbletadat CSCSectorReceiverLUT::globalEtaME ( gbletaadd  address,
const bool  gangedME1a = false 
) const

Definition at line 806 of file CSCSectorReceiverLUT.cc.

gblphidat CSCSectorReceiverLUT::globalPhiMB ( int  phi_local,
int  wire_group,
int  cscid,
const bool  gangedME1a = false 
) const

Definition at line 568 of file CSCSectorReceiverLUT.cc.

gblphidat CSCSectorReceiverLUT::globalPhiMB ( unsigned  address,
const bool  gangedME1a = false 
) const

Definition at line 586 of file CSCSectorReceiverLUT.cc.

gblphidat CSCSectorReceiverLUT::globalPhiMB ( gblphiadd  address,
const bool  gangedME1a = false 
) const

Definition at line 599 of file CSCSectorReceiverLUT.cc.

gblphidat CSCSectorReceiverLUT::globalPhiME ( int  phi_local,
int  wire_group,
int  cscid,
const bool  gangedME1a = false 
) const

Definition at line 502 of file CSCSectorReceiverLUT.cc.

gblphidat CSCSectorReceiverLUT::globalPhiME ( unsigned  address,
const bool  gangedME1a = false 
) const

Definition at line 517 of file CSCSectorReceiverLUT.cc.

gblphidat CSCSectorReceiverLUT::globalPhiME ( gblphiadd  address,
const bool  gangedME1a = false 
) const

Definition at line 528 of file CSCSectorReceiverLUT.cc.

lclphidat CSCSectorReceiverLUT::localPhi ( int  strip,
int  pattern,
int  quality,
int  lr,
const bool  gangedME1a = false 
) const

Geometry Lookup Tables.

Please note, the pattern used below is the 4 bit pattern. ex) digi->getPattern(), NOT digi->getCLCTPattern()

Definition at line 205 of file CSCSectorReceiverLUT.cc.

lclphidat CSCSectorReceiverLUT::localPhi ( unsigned  address,
const bool  gangedME1a = false 
) const

Definition at line 220 of file CSCSectorReceiverLUT.cc.

lclphidat CSCSectorReceiverLUT::localPhi ( lclphiadd  address,
const bool  gangedME1a = false 
) const

Definition at line 235 of file CSCSectorReceiverLUT.cc.

CSCSectorReceiverLUT & CSCSectorReceiverLUT::operator= ( const CSCSectorReceiverLUT lut)

Definition at line 88 of file CSCSectorReceiverLUT.cc.

void CSCSectorReceiverLUT::readLUTsFromFile ( )
private

Arrays for holding read in LUT information. MB LUT arrays only initialized in ME1

Definition at line 839 of file CSCSectorReceiverLUT.cc.

Member Data Documentation

int CSCSectorReceiverLUT::_endcap
private

Definition at line 52 of file CSCSectorReceiverLUT.h.

int CSCSectorReceiverLUT::_sector
private

Definition at line 52 of file CSCSectorReceiverLUT.h.

int CSCSectorReceiverLUT::_station
private

Definition at line 52 of file CSCSectorReceiverLUT.h.

int CSCSectorReceiverLUT::_subsector
private

Definition at line 52 of file CSCSectorReceiverLUT.h.

bool CSCSectorReceiverLUT::isBinary
private

Definition at line 74 of file CSCSectorReceiverLUT.h.

bool CSCSectorReceiverLUT::isTMB07
private

Definition at line 76 of file CSCSectorReceiverLUT.h.

bool CSCSectorReceiverLUT::LUTsFromFile
private

Definition at line 72 of file CSCSectorReceiverLUT.h.

edm::FileInPath CSCSectorReceiverLUT::mb_gbl_phi_file
private

Definition at line 70 of file CSCSectorReceiverLUT.h.

gblphidat * CSCSectorReceiverLUT::mb_global_phi
private

Definition at line 84 of file CSCSectorReceiverLUT.h.

edm::FileInPath CSCSectorReceiverLUT::me_gbl_eta_file
private

Definition at line 71 of file CSCSectorReceiverLUT.h.

edm::FileInPath CSCSectorReceiverLUT::me_gbl_phi_file
private

Definition at line 69 of file CSCSectorReceiverLUT.h.

gbletadat* CSCSectorReceiverLUT::me_global_eta
private

Definition at line 85 of file CSCSectorReceiverLUT.h.

gblphidat* CSCSectorReceiverLUT::me_global_phi
private

Definition at line 84 of file CSCSectorReceiverLUT.h.

lclphidat * CSCSectorReceiverLUT::me_lcl_phi = NULL
staticprivate

Definition at line 83 of file CSCSectorReceiverLUT.h.

edm::FileInPath CSCSectorReceiverLUT::me_lcl_phi_file
private

Definition at line 68 of file CSCSectorReceiverLUT.h.

bool CSCSectorReceiverLUT::me_lcl_phi_loaded = false
staticprivate

Definition at line 82 of file CSCSectorReceiverLUT.h.

bool CSCSectorReceiverLUT::useMiniLUTs
private

Definition at line 73 of file CSCSectorReceiverLUT.h.