#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 = nullptr |
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 23 of file CSCSectorReceiverLUT.cc.
References encodeFileIndex(), 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, muonDTDigis_cfi::pset, readLUTsFromFile(), relativeConstraints::station, AlCaHLTBitMon_QueryRunRegistry::string, and useMiniLUTs.
CSCSectorReceiverLUT::CSCSectorReceiverLUT | ( | const CSCSectorReceiverLUT & | lut | ) |
Definition at line 55 of file CSCSectorReceiverLUT.cc.
References CSCBitWidths::kGlobalEtaAddressWidth, CSCBitWidths::kGlobalPhiAddressWidth, mb_global_phi, me_global_eta, and me_global_phi.
CSCSectorReceiverLUT::~CSCSectorReceiverLUT | ( | ) |
Definition at line 117 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 654 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 489 of file CSCSectorReceiverLUT.cc.
References _subsector.
Referenced by globalPhiMB().
Global Phi LUT.
Definition at line 243 of file CSCSectorReceiverLUT.cc.
References _endcap, _sector, _station, _subsector, CSCGeometry::chamber(), CSCTriggerNumbering::chamberFromTriggerLabels(), csc_g, HLT_2023v12_cff::delta_phi, MillePedeFileConverter_cfg::e, Exception, CSCLayer::geometry(), getGlobalPhiValue(), CSCConstants::KEY_CLCT_LAYER, CSCBitWidths::kGlobalPhiDataBitWidth, CSCBitWidths::kLocalPhiDataBitWidth, CSCChamber::layer(), LogDebug, M_PI, CSCConstants::MAX_NUM_STRIPS_RUN1, CSCTriggerNumbering::maxTriggerCscId(), CSCTriggerNumbering::minTriggerCscId(), me0TriggerPseudoDigis_cff::nStrips, CSCLayerGeometry::numberOfStrips(), mps_fire::result, relativeConstraints::ring, CSCTriggerNumbering::ringFromTriggerLabels(), CSCTFConstants::SECTOR1_CENT_RAD, CSCTFConstants::SECTOR_DEG, CSCTFConstants::SECTOR_RAD, and nano_mu_digi_cff::strip.
Referenced by globalPhiME().
Local Phi LUT.
Local Phi Bend is always zero. Until we start using it.
Definition at line 137 of file CSCSectorReceiverLUT.cc.
References _endcap, _station, data, Exception, CSCPatternBank::getLegacyPosition(), isTMB07, CSCBitWidths::kLocalPhiDataBitWidth, LogDebug, and CSCConstants::MAX_NUM_STRIPS_RUN1.
Referenced by localPhi().
std::string CSCSectorReceiverLUT::encodeFileIndex | ( | ) | const |
Helpers.
Definition at line 751 of file CSCSectorReceiverLUT.cc.
References _endcap, _sector, _station, _subsector, MillePedeFileConverter_cfg::fileName, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by CSCSectorReceiverLUT().
|
private |
Definition at line 175 of file CSCSectorReceiverLUT.cc.
|
private |
Calculate Eta correction
Definition at line 561 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_RUN1, CSCTriggerNumbering::maxTriggerCscId(), CSCTriggerNumbering::minTriggerCscId(), me0TriggerPseudoDigis_cff::nStrips, CSCLayerGeometry::numberOfStrips(), CSCLayerGeometry::numberOfWireGroups(), mps_fire::result, relativeConstraints::ring, CSCTriggerNumbering::ringFromTriggerLabels(), CSCLayerGeometry::stripWireGroupIntersection(), GeomDet::surface(), and Surface::toGlobal().
Referenced by calcGlobalEtaME().
|
private |
Definition at line 220 of file CSCSectorReceiverLUT.cc.
References CSCLayer::centerOfStrip(), MillePedeFileConverter_cfg::e, LogDebug, M_PI, PV3DBase< T, PVType, FrameType >::phi(), mps_fire::result, and nano_mu_digi_cff::strip.
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 705 of file CSCSectorReceiverLUT.cc.
References _endcap, _sector, _station, _subsector, calcGlobalEtaME(), CSCSectorReceiverMiniLUT::calcGlobalEtaMEMini(), l1temulator_dqm_sourceclient-live_cfg::gangedME1a, isTMB07, CSCBitWidths::kLocalPhiDataBitWidth, LUTsFromFile, me_global_eta, mps_fire::result, and useMiniLUTs.
Referenced by L1TCSCTF::analyze(), L1Analysis::L1AnalysisCSCTF::SetLCTs(), and L1Analysis::L1AnalysisCSCTF::SetTracks().
gbletadat CSCSectorReceiverLUT::globalEtaME | ( | unsigned | address, |
const bool | gangedME1a = false |
||
) | const |
Definition at line 725 of file CSCSectorReceiverLUT.cc.
References _endcap, _sector, _station, _subsector, calcGlobalEtaME(), CSCSectorReceiverMiniLUT::calcGlobalEtaMEMini(), l1temulator_dqm_sourceclient-live_cfg::gangedME1a, isTMB07, LUTsFromFile, me_global_eta, mps_fire::result, and useMiniLUTs.
gbletadat CSCSectorReceiverLUT::globalEtaME | ( | gbletaadd | address, |
const bool | gangedME1a = false |
||
) | const |
Definition at line 738 of file CSCSectorReceiverLUT.cc.
References _endcap, _sector, _station, _subsector, calcGlobalEtaME(), CSCSectorReceiverMiniLUT::calcGlobalEtaMEMini(), l1temulator_dqm_sourceclient-live_cfg::gangedME1a, 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 515 of file CSCSectorReceiverLUT.cc.
References calcGlobalPhiMB(), l1temulator_dqm_sourceclient-live_cfg::gangedME1a, globalPhiME(), LUTsFromFile, mb_global_phi, and mps_fire::result.
gblphidat CSCSectorReceiverLUT::globalPhiMB | ( | unsigned | address, |
const bool | gangedME1a = false |
||
) | const |
Definition at line 534 of file CSCSectorReceiverLUT.cc.
References calcGlobalPhiMB(), l1temulator_dqm_sourceclient-live_cfg::gangedME1a, globalPhiME(), LUTsFromFile, mb_global_phi, and mps_fire::result.
gblphidat CSCSectorReceiverLUT::globalPhiMB | ( | gblphiadd | address, |
const bool | gangedME1a = false |
||
) | const |
Definition at line 548 of file CSCSectorReceiverLUT.cc.
References calcGlobalPhiMB(), l1temulator_dqm_sourceclient-live_cfg::gangedME1a, 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 444 of file CSCSectorReceiverLUT.cc.
References _endcap, _sector, _station, _subsector, calcGlobalPhiME(), CSCSectorReceiverMiniLUT::calcGlobalPhiMEMini(), l1temulator_dqm_sourceclient-live_cfg::gangedME1a, isTMB07, LUTsFromFile, me_global_phi, mps_fire::result, and useMiniLUTs.
Referenced by L1TCSCTF::analyze(), globalPhiMB(), L1Analysis::L1AnalysisCSCTF::SetLCTs(), and L1Analysis::L1AnalysisCSCTF::SetTracks().
gblphidat CSCSectorReceiverLUT::globalPhiME | ( | unsigned | address, |
const bool | gangedME1a = false |
||
) | const |
Definition at line 462 of file CSCSectorReceiverLUT.cc.
References _endcap, _sector, _station, _subsector, calcGlobalPhiME(), CSCSectorReceiverMiniLUT::calcGlobalPhiMEMini(), l1temulator_dqm_sourceclient-live_cfg::gangedME1a, isTMB07, LUTsFromFile, me_global_phi, mps_fire::result, and useMiniLUTs.
gblphidat CSCSectorReceiverLUT::globalPhiME | ( | gblphiadd | address, |
const bool | gangedME1a = false |
||
) | const |
Definition at line 475 of file CSCSectorReceiverLUT.cc.
References _endcap, _sector, _station, _subsector, calcGlobalPhiME(), CSCSectorReceiverMiniLUT::calcGlobalPhiMEMini(), l1temulator_dqm_sourceclient-live_cfg::gangedME1a, 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 179 of file CSCSectorReceiverLUT.cc.
References l1temulator_dqm_sourceclient-live_cfg::gangedME1a, topSingleLeptonDQM_PU_cfi::pattern, quality, and nano_mu_digi_cff::strip.
Referenced by L1TCSCTF::analyze(), L1Analysis::L1AnalysisCSCTF::SetLCTs(), and L1Analysis::L1AnalysisCSCTF::SetTracks().
lclphidat CSCSectorReceiverLUT::localPhi | ( | unsigned | address, |
const bool | gangedME1a = false |
||
) | const |
Definition at line 193 of file CSCSectorReceiverLUT.cc.
References calcLocalPhi(), CSCSectorReceiverMiniLUT::calcLocalPhiMini(), l1temulator_dqm_sourceclient-live_cfg::gangedME1a, isTMB07, LUTsFromFile, me_lcl_phi, mps_fire::result, and useMiniLUTs.
Definition at line 207 of file CSCSectorReceiverLUT.cc.
References calcLocalPhi(), CSCSectorReceiverMiniLUT::calcLocalPhiMini(), l1temulator_dqm_sourceclient-live_cfg::gangedME1a, isTMB07, LUTsFromFile, me_lcl_phi, mps_fire::result, and useMiniLUTs.
CSCSectorReceiverLUT & CSCSectorReceiverLUT::operator= | ( | const CSCSectorReceiverLUT & | lut | ) |
Definition at line 83 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 786 of file CSCSectorReceiverLUT.cc.
References _station, mps_fire::end, fileCollector2::fName, 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 50 of file CSCSectorReceiverLUT.h.
|
private |
Definition at line 53 of file CSCSectorReceiverLUT.h.
Referenced by calcGlobalPhiME(), calcLocalPhi(), encodeFileIndex(), getGlobalEtaValue(), globalEtaME(), globalPhiME(), and operator=().
|
private |
Definition at line 53 of file CSCSectorReceiverLUT.h.
Referenced by calcGlobalEtaME(), calcGlobalPhiME(), encodeFileIndex(), getGlobalEtaValue(), globalEtaME(), globalPhiME(), and operator=().
|
private |
Definition at line 53 of file CSCSectorReceiverLUT.h.
Referenced by calcGlobalEtaME(), calcGlobalPhiME(), calcLocalPhi(), encodeFileIndex(), getGlobalEtaValue(), globalEtaME(), globalPhiME(), operator=(), and readLUTsFromFile().
|
private |
Definition at line 53 of file CSCSectorReceiverLUT.h.
Referenced by calcGlobalPhiMB(), calcGlobalPhiME(), encodeFileIndex(), getGlobalEtaValue(), globalEtaME(), globalPhiME(), and operator=().
|
private |
Definition at line 88 of file CSCSectorReceiverLUT.h.
Referenced by calcGlobalPhiME(), getGlobalEtaValue(), and setCSCGeometry().
|
private |
Definition at line 75 of file CSCSectorReceiverLUT.h.
Referenced by CSCSectorReceiverLUT(), operator=(), and readLUTsFromFile().
|
private |
Definition at line 77 of file CSCSectorReceiverLUT.h.
Referenced by calcLocalPhi(), globalEtaME(), globalPhiME(), and localPhi().
|
private |
Definition at line 73 of file CSCSectorReceiverLUT.h.
Referenced by CSCSectorReceiverLUT(), globalEtaME(), globalPhiMB(), globalPhiME(), localPhi(), and operator=().
|
private |
Definition at line 71 of file CSCSectorReceiverLUT.h.
Referenced by CSCSectorReceiverLUT(), operator=(), and readLUTsFromFile().
|
private |
Definition at line 85 of file CSCSectorReceiverLUT.h.
Referenced by CSCSectorReceiverLUT(), globalPhiMB(), operator=(), readLUTsFromFile(), and ~CSCSectorReceiverLUT().
|
private |
Definition at line 72 of file CSCSectorReceiverLUT.h.
Referenced by CSCSectorReceiverLUT(), operator=(), and readLUTsFromFile().
|
private |
Definition at line 70 of file CSCSectorReceiverLUT.h.
Referenced by CSCSectorReceiverLUT(), operator=(), and readLUTsFromFile().
|
private |
Definition at line 86 of file CSCSectorReceiverLUT.h.
Referenced by CSCSectorReceiverLUT(), globalEtaME(), operator=(), readLUTsFromFile(), and ~CSCSectorReceiverLUT().
|
private |
Definition at line 85 of file CSCSectorReceiverLUT.h.
Referenced by CSCSectorReceiverLUT(), globalPhiME(), operator=(), readLUTsFromFile(), and ~CSCSectorReceiverLUT().
|
staticprivate |
Definition at line 84 of file CSCSectorReceiverLUT.h.
Referenced by localPhi(), readLUTsFromFile(), and ~CSCSectorReceiverLUT().
|
private |
Definition at line 69 of file CSCSectorReceiverLUT.h.
Referenced by CSCSectorReceiverLUT(), operator=(), and readLUTsFromFile().
|
staticprivate |
Definition at line 83 of file CSCSectorReceiverLUT.h.
Referenced by readLUTsFromFile(), and ~CSCSectorReceiverLUT().
|
private |
Definition at line 74 of file CSCSectorReceiverLUT.h.
Referenced by CSCSectorReceiverLUT(), globalEtaME(), globalPhiME(), and localPhi().