#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 &) |
~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 |
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 = NULL |
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 18 of file CSCSectorReceiverLUT.h.
CSCSectorReceiverLUT::CSCSectorReceiverLUT | ( | int | endcap, |
int | sector, | ||
int | subsector, | ||
int | station, | ||
const edm::ParameterSet & | pset, | ||
bool | TMB07 | ||
) |
Definition at line 26 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, NULL, readLUTsFromFile(), AlCaHLTBitMon_QueryRunRegistry::string, and useMiniLUTs.
CSCSectorReceiverLUT::CSCSectorReceiverLUT | ( | const CSCSectorReceiverLUT & | lut | ) |
Definition at line 57 of file CSCSectorReceiverLUT.cc.
References CSCBitWidths::kGlobalEtaAddressWidth, CSCBitWidths::kGlobalPhiAddressWidth, mb_global_phi, me_global_eta, me_global_phi, and NULL.
CSCSectorReceiverLUT::~CSCSectorReceiverLUT | ( | ) |
Definition at line 127 of file CSCSectorReceiverLUT.cc.
References mb_global_phi, me_global_eta, me_global_phi, me_lcl_phi, me_lcl_phi_loaded, and NULL.
Global Eta LUT.
Definition at line 717 of file CSCSectorReceiverLUT.cc.
References _sector, _station, CSCTFConstants::etaBins, edm::hlt::Exception, getGlobalEtaValue(), CSCTFConstants::maxEta, CSCTriggerNumbering::maxTriggerCscId(), CSCTFConstants::minEta, CSCTriggerNumbering::minTriggerCscId(), query::result, relativeConstraints::ring, and CSCTriggerNumbering::ringFromTriggerLabels().
Referenced by globalEtaME().
Definition at line 539 of file CSCSectorReceiverLUT.cc.
References _subsector.
Referenced by globalPhiMB().
Global Phi LUT.
Definition at line 273 of file CSCSectorReceiverLUT.cc.
References _endcap, _sector, _station, _subsector, CSCTriggerGeomManager::chamber(), constexpr, kinem::delta_phi(), alignCSCRings::e, edm::hlt::Exception, CSCLayer::geometry(), CSCTriggerGeometry::get(), 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(), NULL, CSCLayerGeometry::numberOfStrips(), query::result, CSCTFConstants::SECTOR1_CENT_RAD, CSCTFConstants::SECTOR_DEG, CSCTFConstants::SECTOR_RAD, and cms::Exception::what().
Referenced by globalPhiME().
Local Phi LUT.
Local Phi Bend is always zero. Until we start using it.
Definition at line 152 of file CSCSectorReceiverLUT.cc.
References _endcap, _station, constexpr, data, edm::hlt::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 816 of file CSCSectorReceiverLUT.cc.
References _endcap, _sector, _station, _subsector, convertXMLtoSQLite_cfg::fileName, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by CSCSectorReceiverLUT().
|
private |
Definition at line 200 of file CSCSectorReceiverLUT.cc.
|
private |
Calculate Eta correction
Definition at line 611 of file CSCSectorReceiverLUT.cc.
References _endcap, _sector, _station, _subsector, CSCLayer::centerOfWireGroup(), CSCTriggerGeomManager::chamber(), alignCSCRings::e, PV3DBase< T, PVType, FrameType >::eta(), CSCLayer::geometry(), CSCTriggerGeometry::get(), CSCConstants::KEY_ALCT_LAYER, CSCChamber::layer(), LogDebug, CSCConstants::MAX_NUM_STRIPS, CSCTriggerNumbering::maxTriggerCscId(), CSCTriggerNumbering::minTriggerCscId(), NULL, CSCLayerGeometry::numberOfStrips(), CSCLayerGeometry::numberOfWireGroups(), query::result, CSCTriggerNumbering::ringFromTriggerLabels(), CSCLayerGeometry::stripWireGroupIntersection(), GeomDet::surface(), Surface::toGlobal(), and cms::Exception::what().
Referenced by calcGlobalEtaME().
|
private |
Definition at line 249 of file CSCSectorReceiverLUT.cc.
References CSCLayer::centerOfStrip(), alignCSCRings::e, LogDebug, M_PI, PV3DBase< T, PVType, FrameType >::phi(), query::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 778 of file CSCSectorReceiverLUT.cc.
References _endcap, _sector, _station, _subsector, calcGlobalEtaME(), CSCSectorReceiverMiniLUT::calcGlobalEtaMEMini(), isTMB07, CSCBitWidths::kLocalPhiDataBitWidth, LUTsFromFile, me_global_eta, query::result, and useMiniLUTs.
Referenced by L1TCSCTF::analyze().
gbletadat CSCSectorReceiverLUT::globalEtaME | ( | unsigned | address, |
const bool | gangedME1a = false |
||
) | const |
Definition at line 795 of file CSCSectorReceiverLUT.cc.
References _endcap, _sector, _station, _subsector, calcGlobalEtaME(), CSCSectorReceiverMiniLUT::calcGlobalEtaMEMini(), isTMB07, LUTsFromFile, me_global_eta, query::result, and useMiniLUTs.
gbletadat CSCSectorReceiverLUT::globalEtaME | ( | gbletaadd | address, |
const bool | gangedME1a = false |
||
) | const |
Definition at line 806 of file CSCSectorReceiverLUT.cc.
References _endcap, _sector, _station, _subsector, calcGlobalEtaME(), CSCSectorReceiverMiniLUT::calcGlobalEtaMEMini(), isTMB07, LUTsFromFile, me_global_eta, query::result, and useMiniLUTs.
gblphidat CSCSectorReceiverLUT::globalPhiMB | ( | int | phi_local, |
int | wire_group, | ||
int | cscid, | ||
const bool | gangedME1a = false |
||
) | const |
Definition at line 568 of file CSCSectorReceiverLUT.cc.
References calcGlobalPhiMB(), globalPhiME(), LUTsFromFile, mb_global_phi, and query::result.
gblphidat CSCSectorReceiverLUT::globalPhiMB | ( | unsigned | address, |
const bool | gangedME1a = false |
||
) | const |
Definition at line 586 of file CSCSectorReceiverLUT.cc.
References calcGlobalPhiMB(), globalPhiME(), LUTsFromFile, mb_global_phi, and query::result.
gblphidat CSCSectorReceiverLUT::globalPhiMB | ( | gblphiadd | address, |
const bool | gangedME1a = false |
||
) | const |
Definition at line 599 of file CSCSectorReceiverLUT.cc.
References calcGlobalPhiMB(), globalPhiME(), LUTsFromFile, mb_global_phi, and query::result.
gblphidat CSCSectorReceiverLUT::globalPhiME | ( | int | phi_local, |
int | wire_group, | ||
int | cscid, | ||
const bool | gangedME1a = false |
||
) | const |
Definition at line 502 of file CSCSectorReceiverLUT.cc.
References _endcap, _sector, _station, _subsector, calcGlobalPhiME(), CSCSectorReceiverMiniLUT::calcGlobalPhiMEMini(), isTMB07, LUTsFromFile, me_global_phi, query::result, and useMiniLUTs.
Referenced by L1TCSCTF::analyze(), and globalPhiMB().
gblphidat CSCSectorReceiverLUT::globalPhiME | ( | unsigned | address, |
const bool | gangedME1a = false |
||
) | const |
Definition at line 517 of file CSCSectorReceiverLUT.cc.
References _endcap, _sector, _station, _subsector, calcGlobalPhiME(), CSCSectorReceiverMiniLUT::calcGlobalPhiMEMini(), isTMB07, LUTsFromFile, me_global_phi, query::result, and useMiniLUTs.
gblphidat CSCSectorReceiverLUT::globalPhiME | ( | gblphiadd | address, |
const bool | gangedME1a = false |
||
) | const |
Definition at line 528 of file CSCSectorReceiverLUT.cc.
References _endcap, _sector, _station, _subsector, calcGlobalPhiME(), CSCSectorReceiverMiniLUT::calcGlobalPhiMEMini(), isTMB07, LUTsFromFile, me_global_phi, query::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 205 of file CSCSectorReceiverLUT.cc.
References HLT_25ns14e33_v1_cff::quality.
Referenced by L1TCSCTF::analyze().
lclphidat CSCSectorReceiverLUT::localPhi | ( | unsigned | address, |
const bool | gangedME1a = false |
||
) | const |
Definition at line 220 of file CSCSectorReceiverLUT.cc.
References calcLocalPhi(), CSCSectorReceiverMiniLUT::calcLocalPhiMini(), isTMB07, LUTsFromFile, me_lcl_phi, query::result, and useMiniLUTs.
Definition at line 235 of file CSCSectorReceiverLUT.cc.
References calcLocalPhi(), CSCSectorReceiverMiniLUT::calcLocalPhiMini(), isTMB07, LUTsFromFile, me_lcl_phi, query::result, and useMiniLUTs.
CSCSectorReceiverLUT & CSCSectorReceiverLUT::operator= | ( | const CSCSectorReceiverLUT & | lut | ) |
Definition at line 88 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, me_lcl_phi_file, and NULL.
|
private |
Arrays for holding read in LUT information. MB LUT arrays only initialized in ME1
Definition at line 839 of file CSCSectorReceiverLUT.cc.
References _station, end, MainPageGenerator::fName, edm::FileInPath::fullPath(), 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().
|
private |
Definition at line 52 of file CSCSectorReceiverLUT.h.
Referenced by calcGlobalPhiME(), calcLocalPhi(), encodeFileIndex(), getGlobalEtaValue(), globalEtaME(), globalPhiME(), and operator=().
|
private |
Definition at line 52 of file CSCSectorReceiverLUT.h.
Referenced by calcGlobalEtaME(), calcGlobalPhiME(), encodeFileIndex(), getGlobalEtaValue(), globalEtaME(), globalPhiME(), and operator=().
|
private |
Definition at line 52 of file CSCSectorReceiverLUT.h.
Referenced by calcGlobalEtaME(), calcGlobalPhiME(), calcLocalPhi(), encodeFileIndex(), getGlobalEtaValue(), globalEtaME(), globalPhiME(), operator=(), and readLUTsFromFile().
|
private |
Definition at line 52 of file CSCSectorReceiverLUT.h.
Referenced by calcGlobalPhiMB(), calcGlobalPhiME(), encodeFileIndex(), getGlobalEtaValue(), globalEtaME(), globalPhiME(), and operator=().
|
private |
Definition at line 74 of file CSCSectorReceiverLUT.h.
Referenced by CSCSectorReceiverLUT(), operator=(), and readLUTsFromFile().
|
private |
Definition at line 76 of file CSCSectorReceiverLUT.h.
Referenced by calcGlobalPhiME(), calcLocalPhi(), globalEtaME(), globalPhiME(), and localPhi().
|
private |
Definition at line 72 of file CSCSectorReceiverLUT.h.
Referenced by CSCSectorReceiverLUT(), globalEtaME(), globalPhiMB(), globalPhiME(), localPhi(), and operator=().
|
private |
Definition at line 70 of file CSCSectorReceiverLUT.h.
Referenced by CSCSectorReceiverLUT(), operator=(), and readLUTsFromFile().
|
private |
Definition at line 84 of file CSCSectorReceiverLUT.h.
Referenced by CSCSectorReceiverLUT(), globalPhiMB(), operator=(), readLUTsFromFile(), and ~CSCSectorReceiverLUT().
|
private |
Definition at line 71 of file CSCSectorReceiverLUT.h.
Referenced by CSCSectorReceiverLUT(), operator=(), and readLUTsFromFile().
|
private |
Definition at line 69 of file CSCSectorReceiverLUT.h.
Referenced by CSCSectorReceiverLUT(), operator=(), and readLUTsFromFile().
|
private |
Definition at line 85 of file CSCSectorReceiverLUT.h.
Referenced by CSCSectorReceiverLUT(), globalEtaME(), operator=(), readLUTsFromFile(), and ~CSCSectorReceiverLUT().
|
private |
Definition at line 84 of file CSCSectorReceiverLUT.h.
Referenced by CSCSectorReceiverLUT(), globalPhiME(), operator=(), readLUTsFromFile(), and ~CSCSectorReceiverLUT().
Definition at line 83 of file CSCSectorReceiverLUT.h.
Referenced by localPhi(), readLUTsFromFile(), and ~CSCSectorReceiverLUT().
|
private |
Definition at line 68 of file CSCSectorReceiverLUT.h.
Referenced by CSCSectorReceiverLUT(), operator=(), and readLUTsFromFile().
|
staticprivate |
Definition at line 82 of file CSCSectorReceiverLUT.h.
Referenced by readLUTsFromFile(), and ~CSCSectorReceiverLUT().
|
private |
Definition at line 73 of file CSCSectorReceiverLUT.h.
Referenced by CSCSectorReceiverLUT(), globalEtaME(), globalPhiME(), and localPhi().