#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 |
CSCSectorReceiverLUT & | operator= (const CSCSectorReceiverLUT &) |
void | setCSCGeometry (const CSCGeometry *g) |
~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 |
const CSCGeometry * | csc_g |
bool | isBinary |
bool | isTMB07 |
bool | LUTsFromFile |
edm::FileInPath | mb_gbl_phi_file |
gblphidat * | mb_global_phi |
edm::FileInPath | me_gbl_eta_file |
edm::FileInPath | me_gbl_phi_file |
gbletadat * | me_global_eta |
gblphidat * | me_global_phi |
edm::FileInPath | me_lcl_phi_file |
bool | useMiniLUTs |
Static Private Attributes | |
static lclphidat * | me_lcl_phi = 0 |
static bool | me_lcl_phi_loaded = false |
Provides Look Up Table information for use in the SP Core. Partial port from ORCA.
Definition at line 19 of file CSCSectorReceiverLUT.h.
CSCSectorReceiverLUT::CSCSectorReceiverLUT | ( | int | endcap, |
int | sector, | ||
int | subsector, | ||
int | station, | ||
const edm::ParameterSet & | pset, | ||
bool | TMB07 | ||
) |
Definition at line 25 of file CSCSectorReceiverLUT.cc.
References encodeFileIndex(), edm::ParameterSet::getUntrackedParameter(), isBinary, LUTsFromFile, mb_gbl_phi_file, mb_global_phi, me_gbl_eta_file, me_gbl_phi_file, me_global_eta, me_global_phi, me_lcl_phi_file, readLUTsFromFile(), AlCaHLTBitMon_QueryRunRegistry::string, and useMiniLUTs.
CSCSectorReceiverLUT::CSCSectorReceiverLUT | ( | const CSCSectorReceiverLUT & | lut | ) |
Definition at line 56 of file CSCSectorReceiverLUT.cc.
References CSCBitWidths::kGlobalEtaAddressWidth, CSCBitWidths::kGlobalPhiAddressWidth, mb_global_phi, me_global_eta, and me_global_phi.
CSCSectorReceiverLUT::~CSCSectorReceiverLUT | ( | ) |
Definition at line 126 of file CSCSectorReceiverLUT.cc.
References mb_global_phi, me_global_eta, me_global_phi, me_lcl_phi, and me_lcl_phi_loaded.
Global Eta LUT.
Definition at line 720 of file CSCSectorReceiverLUT.cc.
References _sector, _station, CSCTFConstants::etaBins, Exception, getGlobalEtaValue(), CSCTFConstants::maxEta, CSCTriggerNumbering::maxTriggerCscId(), CSCTFConstants::minEta, CSCTriggerNumbering::minTriggerCscId(), mps_fire::result, relativeConstraints::ring, and CSCTriggerNumbering::ringFromTriggerLabels().
Referenced by globalEtaME().
Definition at line 540 of file CSCSectorReceiverLUT.cc.
References _subsector.
Referenced by globalPhiMB().
Global Phi LUT.
Definition at line 272 of file CSCSectorReceiverLUT.cc.
References _endcap, _sector, _station, _subsector, CSCGeometry::chamber(), CSCTriggerNumbering::chamberFromTriggerLabels(), constexpr, csc_g, caloCompatibility_cff::delta_phi, MillePedeFileConverter_cfg::e, Exception, CSCLayer::geometry(), getGlobalPhiValue(), isTMB07, CSCConstants::KEY_CLCT_LAYER, CSCConstants::KEY_CLCT_LAYER_PRE_TMB07, CSCBitWidths::kGlobalPhiDataBitWidth, CSCBitWidths::kLocalPhiDataBitWidth, CSCChamber::layer(), LogDebug, M_PI, CSCConstants::MAX_NUM_STRIPS, CSCTriggerNumbering::maxTriggerCscId(), CSCTriggerNumbering::minTriggerCscId(), CSCLayerGeometry::numberOfStrips(), mps_fire::result, relativeConstraints::ring, CSCTriggerNumbering::ringFromTriggerLabels(), CSCTFConstants::SECTOR1_CENT_RAD, CSCTFConstants::SECTOR_DEG, CSCTFConstants::SECTOR_RAD, digi_MixPreMix_cfi::strip, and cms::Exception::what().
Referenced by globalPhiME().
Local Phi LUT.
Local Phi Bend is always zero. Until we start using it.
Definition at line 151 of file CSCSectorReceiverLUT.cc.
References _endcap, _station, constexpr, data, Exception, CSCPatternLUT::get2007Position(), CSCPatternLUT::getPosition(), isTMB07, CSCBitWidths::kLocalPhiDataBitWidth, LogDebug, and CSCConstants::MAX_NUM_STRIPS.
Referenced by localPhi().
std::string CSCSectorReceiverLUT::encodeFileIndex | ( | ) | const |
Helpers.
Definition at line 819 of file CSCSectorReceiverLUT.cc.
References _endcap, _sector, _station, _subsector, MillePedeFileConverter_cfg::fileName, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by CSCSectorReceiverLUT().
|
private |
Definition at line 199 of file CSCSectorReceiverLUT.cc.
|
private |
Calculate Eta correction
Definition at line 612 of file CSCSectorReceiverLUT.cc.
References _endcap, _sector, _station, _subsector, CSCLayer::centerOfWireGroup(), CSCGeometry::chamber(), CSCTriggerNumbering::chamberFromTriggerLabels(), csc_g, MillePedeFileConverter_cfg::e, PV3DBase< T, PVType, FrameType >::eta(), CSCLayer::geometry(), CSCConstants::KEY_ALCT_LAYER, CSCChamber::layer(), LogDebug, CSCConstants::MAX_NUM_STRIPS, CSCTriggerNumbering::maxTriggerCscId(), CSCTriggerNumbering::minTriggerCscId(), CSCLayerGeometry::numberOfStrips(), CSCLayerGeometry::numberOfWireGroups(), mps_fire::result, relativeConstraints::ring, CSCTriggerNumbering::ringFromTriggerLabels(), CSCLayerGeometry::stripWireGroupIntersection(), GeomDet::surface(), Surface::toGlobal(), and cms::Exception::what().
Referenced by calcGlobalEtaME().
|
private |
Definition at line 248 of file CSCSectorReceiverLUT.cc.
References CSCLayer::centerOfStrip(), MillePedeFileConverter_cfg::e, LogDebug, M_PI, PV3DBase< T, PVType, FrameType >::phi(), mps_fire::result, and cms::Exception::what().
Referenced by calcGlobalPhiME().
gbletadat CSCSectorReceiverLUT::globalEtaME | ( | int | phi_bend, |
int | phi_local, | ||
int | wire_group, | ||
int | cscid, | ||
const bool | gangedME1a = false |
||
) | const |
Definition at line 781 of file CSCSectorReceiverLUT.cc.
References _endcap, _sector, _station, _subsector, calcGlobalEtaME(), CSCSectorReceiverMiniLUT::calcGlobalEtaMEMini(), isTMB07, CSCBitWidths::kLocalPhiDataBitWidth, LUTsFromFile, me_global_eta, mps_fire::result, and useMiniLUTs.
Referenced by L1TCSCTF::analyze().
gbletadat CSCSectorReceiverLUT::globalEtaME | ( | unsigned | address, |
const bool | gangedME1a = false |
||
) | const |
Definition at line 798 of file CSCSectorReceiverLUT.cc.
References _endcap, _sector, _station, _subsector, calcGlobalEtaME(), CSCSectorReceiverMiniLUT::calcGlobalEtaMEMini(), isTMB07, LUTsFromFile, me_global_eta, mps_fire::result, and useMiniLUTs.
gbletadat CSCSectorReceiverLUT::globalEtaME | ( | gbletaadd | address, |
const bool | gangedME1a = false |
||
) | const |
Definition at line 809 of file CSCSectorReceiverLUT.cc.
References _endcap, _sector, _station, _subsector, calcGlobalEtaME(), CSCSectorReceiverMiniLUT::calcGlobalEtaMEMini(), isTMB07, LUTsFromFile, me_global_eta, mps_fire::result, and useMiniLUTs.
gblphidat CSCSectorReceiverLUT::globalPhiMB | ( | int | phi_local, |
int | wire_group, | ||
int | cscid, | ||
const bool | gangedME1a = false |
||
) | const |
Definition at line 569 of file CSCSectorReceiverLUT.cc.
References calcGlobalPhiMB(), globalPhiME(), LUTsFromFile, mb_global_phi, and mps_fire::result.
gblphidat CSCSectorReceiverLUT::globalPhiMB | ( | unsigned | address, |
const bool | gangedME1a = false |
||
) | const |
Definition at line 587 of file CSCSectorReceiverLUT.cc.
References calcGlobalPhiMB(), globalPhiME(), LUTsFromFile, mb_global_phi, and mps_fire::result.
gblphidat CSCSectorReceiverLUT::globalPhiMB | ( | gblphiadd | address, |
const bool | gangedME1a = false |
||
) | const |
Definition at line 600 of file CSCSectorReceiverLUT.cc.
References calcGlobalPhiMB(), globalPhiME(), LUTsFromFile, mb_global_phi, and mps_fire::result.
gblphidat CSCSectorReceiverLUT::globalPhiME | ( | int | phi_local, |
int | wire_group, | ||
int | cscid, | ||
const bool | gangedME1a = false |
||
) | const |
Definition at line 503 of file CSCSectorReceiverLUT.cc.
References _endcap, _sector, _station, _subsector, calcGlobalPhiME(), CSCSectorReceiverMiniLUT::calcGlobalPhiMEMini(), isTMB07, LUTsFromFile, me_global_phi, mps_fire::result, and useMiniLUTs.
Referenced by L1TCSCTF::analyze(), and globalPhiMB().
gblphidat CSCSectorReceiverLUT::globalPhiME | ( | unsigned | address, |
const bool | gangedME1a = false |
||
) | const |
Definition at line 518 of file CSCSectorReceiverLUT.cc.
References _endcap, _sector, _station, _subsector, calcGlobalPhiME(), CSCSectorReceiverMiniLUT::calcGlobalPhiMEMini(), isTMB07, LUTsFromFile, me_global_phi, mps_fire::result, and useMiniLUTs.
gblphidat CSCSectorReceiverLUT::globalPhiME | ( | gblphiadd | address, |
const bool | gangedME1a = false |
||
) | const |
Definition at line 529 of file CSCSectorReceiverLUT.cc.
References _endcap, _sector, _station, _subsector, calcGlobalPhiME(), CSCSectorReceiverMiniLUT::calcGlobalPhiMEMini(), isTMB07, LUTsFromFile, me_global_phi, mps_fire::result, and useMiniLUTs.
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 204 of file CSCSectorReceiverLUT.cc.
References jets_cff::quality, and digi_MixPreMix_cfi::strip.
Referenced by L1TCSCTF::analyze().
lclphidat CSCSectorReceiverLUT::localPhi | ( | unsigned | address, |
const bool | gangedME1a = false |
||
) | const |
Definition at line 219 of file CSCSectorReceiverLUT.cc.
References calcLocalPhi(), CSCSectorReceiverMiniLUT::calcLocalPhiMini(), isTMB07, LUTsFromFile, me_lcl_phi, mps_fire::result, and useMiniLUTs.
Definition at line 234 of file CSCSectorReceiverLUT.cc.
References calcLocalPhi(), CSCSectorReceiverMiniLUT::calcLocalPhiMini(), isTMB07, LUTsFromFile, me_lcl_phi, mps_fire::result, and useMiniLUTs.
CSCSectorReceiverLUT & CSCSectorReceiverLUT::operator= | ( | const CSCSectorReceiverLUT & | lut | ) |
Definition at line 87 of file CSCSectorReceiverLUT.cc.
References _endcap, _sector, _station, _subsector, isBinary, CSCBitWidths::kGlobalEtaAddressWidth, CSCBitWidths::kGlobalPhiAddressWidth, LUTsFromFile, mb_gbl_phi_file, mb_global_phi, me_gbl_eta_file, me_gbl_phi_file, me_global_eta, me_global_phi, and me_lcl_phi_file.
|
private |
Arrays for holding read in LUT information. MB LUT arrays only initialized in ME1
Definition at line 842 of file CSCSectorReceiverLUT.cc.
References _station, end, edm::FileInPath::fullPath(), mps_fire::i, isBinary, CSCBitWidths::kGlobalEtaAddressWidth, CSCBitWidths::kGlobalPhiAddressWidth, CSCBitWidths::kLocalPhiAddressWidth, mb_gbl_phi_file, mb_global_phi, me_gbl_eta_file, me_gbl_phi_file, me_global_eta, me_global_phi, me_lcl_phi, me_lcl_phi_file, me_lcl_phi_loaded, AlCaHLTBitMon_QueryRunRegistry::string, and groupFilesInBlocks::temp.
Referenced by CSCSectorReceiverLUT().
|
inline |
Definition at line 52 of file CSCSectorReceiverLUT.h.
|
private |
Definition at line 55 of file CSCSectorReceiverLUT.h.
Referenced by calcGlobalPhiME(), calcLocalPhi(), encodeFileIndex(), getGlobalEtaValue(), globalEtaME(), globalPhiME(), and operator=().
|
private |
Definition at line 55 of file CSCSectorReceiverLUT.h.
Referenced by calcGlobalEtaME(), calcGlobalPhiME(), encodeFileIndex(), getGlobalEtaValue(), globalEtaME(), globalPhiME(), and operator=().
|
private |
Definition at line 55 of file CSCSectorReceiverLUT.h.
Referenced by calcGlobalEtaME(), calcGlobalPhiME(), calcLocalPhi(), encodeFileIndex(), getGlobalEtaValue(), globalEtaME(), globalPhiME(), operator=(), and readLUTsFromFile().
|
private |
Definition at line 55 of file CSCSectorReceiverLUT.h.
Referenced by calcGlobalPhiMB(), calcGlobalPhiME(), encodeFileIndex(), getGlobalEtaValue(), globalEtaME(), globalPhiME(), and operator=().
|
private |
Definition at line 90 of file CSCSectorReceiverLUT.h.
Referenced by calcGlobalPhiME(), getGlobalEtaValue(), and setCSCGeometry().
|
private |
Definition at line 77 of file CSCSectorReceiverLUT.h.
Referenced by CSCSectorReceiverLUT(), operator=(), and readLUTsFromFile().
|
private |
Definition at line 79 of file CSCSectorReceiverLUT.h.
Referenced by calcGlobalPhiME(), calcLocalPhi(), globalEtaME(), globalPhiME(), and localPhi().
|
private |
Definition at line 75 of file CSCSectorReceiverLUT.h.
Referenced by CSCSectorReceiverLUT(), globalEtaME(), globalPhiMB(), globalPhiME(), localPhi(), and operator=().
|
private |
Definition at line 73 of file CSCSectorReceiverLUT.h.
Referenced by CSCSectorReceiverLUT(), operator=(), and readLUTsFromFile().
|
private |
Definition at line 87 of file CSCSectorReceiverLUT.h.
Referenced by CSCSectorReceiverLUT(), globalPhiMB(), operator=(), readLUTsFromFile(), and ~CSCSectorReceiverLUT().
|
private |
Definition at line 74 of file CSCSectorReceiverLUT.h.
Referenced by CSCSectorReceiverLUT(), operator=(), and readLUTsFromFile().
|
private |
Definition at line 72 of file CSCSectorReceiverLUT.h.
Referenced by CSCSectorReceiverLUT(), operator=(), and readLUTsFromFile().
|
private |
Definition at line 88 of file CSCSectorReceiverLUT.h.
Referenced by CSCSectorReceiverLUT(), globalEtaME(), operator=(), readLUTsFromFile(), and ~CSCSectorReceiverLUT().
|
private |
Definition at line 87 of file CSCSectorReceiverLUT.h.
Referenced by CSCSectorReceiverLUT(), globalPhiME(), operator=(), readLUTsFromFile(), and ~CSCSectorReceiverLUT().
|
staticprivate |
Definition at line 86 of file CSCSectorReceiverLUT.h.
Referenced by localPhi(), readLUTsFromFile(), and ~CSCSectorReceiverLUT().
|
private |
Definition at line 71 of file CSCSectorReceiverLUT.h.
Referenced by CSCSectorReceiverLUT(), operator=(), and readLUTsFromFile().
|
staticprivate |
Definition at line 85 of file CSCSectorReceiverLUT.h.
Referenced by readLUTsFromFile(), and ~CSCSectorReceiverLUT().
|
private |
Definition at line 76 of file CSCSectorReceiverLUT.h.
Referenced by CSCSectorReceiverLUT(), globalEtaME(), globalPhiME(), and localPhi().