#include <L1RCTLookupTables.h>
Public Member Functions | |
bool | activityBit (float ecal, float hcal) const |
unsigned int | eGammaETCode (float ecal, float hcal, int iAbsEta) const |
unsigned int | emRank (unsigned short energy) const |
bool | hOeFGVetoBit (float ecal, float hcal, bool fgbit) const |
unsigned int | jetMETETCode (float ecal, float hcal, int iAbsEta) const |
L1RCTLookupTables () | |
unsigned int | lookup (unsigned short ecalInput, unsigned short hcalInput, unsigned short fgbit, unsigned short crtNo, unsigned short crdNo, unsigned short twrNo) const |
unsigned int | lookup (unsigned short hfInput, unsigned short crtNo, unsigned short crdNo, unsigned short twrNo) const |
const L1RCTParameters * | rctParameters () const |
void | setChannelMask (const L1RCTChannelMask *channelMask) |
void | setEcalScale (const L1CaloEcalScale *ecalScale) |
void | setHcalScale (const L1CaloHcalScale *hcalScale) |
void | setL1CaloEtScale (const L1CaloEtScale *etScale) |
void | setNoisyChannelMask (const L1RCTNoisyChannelMask *channelMask) |
void | setRCTParameters (const L1RCTParameters *rctParameters) |
Private Member Functions | |
float | convertEcal (unsigned short ecal, unsigned short iAbsEta, short sign) const |
float | convertHcal (unsigned short hcal, unsigned short iAbsEta, short sign) const |
unsigned long | convertToInteger (float et, float lsb, int precision) const |
Private Attributes | |
const L1RCTChannelMask * | channelMask_ |
const L1CaloEcalScale * | ecalScale_ |
const L1CaloEtScale * | etScale_ |
const L1CaloHcalScale * | hcalScale_ |
const L1RCTNoisyChannelMask * | noisyChannelMask_ |
const L1RCTParameters * | rctParameters_ |
Definition at line 11 of file L1RCTLookupTables.h.
|
inline |
Definition at line 15 of file L1RCTLookupTables.h.
bool L1RCTLookupTables::activityBit | ( | float | ecal, |
float | hcal | ||
) | const |
Definition at line 198 of file L1RCTLookupTables.cc.
References L1RCTParameters::eActivityCut(), bsc_activity_cfg::ecal, L1RCTParameters::eMaxForHoECut(), L1RCTParameters::eMinForHoECut(), Exception, L1RCTParameters::hActivityCut(), L1RCTParameters::hOeCut(), and rctParameters_.
Referenced by lookup().
|
private |
Definition at line 230 of file L1RCTLookupTables.cc.
References bsc_activity_cfg::ecal, ecalScale_, L1RCTParameters::eGammaLSB(), L1CaloEcalScale::et(), dqmMemoryStats::float, rctParameters_, and Validation_hcalonly_cfi::sign.
Referenced by lookup().
|
private |
Definition at line 256 of file L1RCTLookupTables.cc.
References L1CaloHcalScale::et(), patCandidatesForDimuonsSequences_cff::hcal, hcalScale_, L1RCTParameters::jetMETLSB(), rctParameters_, and Validation_hcalonly_cfi::sign.
Referenced by lookup().
|
private |
Definition at line 267 of file L1RCTLookupTables.cc.
References EgHLTOffHistBins_cfi::et, hgcalVFEProducer_cfi::lsb, seedmultiplicitymonitor_newtracking_cfi::maxValue, and common_cff::precision.
Referenced by eGammaETCode(), jetMETETCode(), and lookup().
unsigned int L1RCTLookupTables::eGammaETCode | ( | float | ecal, |
float | hcal, | ||
int | iAbsEta | ||
) | const |
Definition at line 276 of file L1RCTLookupTables.cc.
References convertToInteger(), bsc_activity_cfg::ecal, L1RCTParameters::eGammaLSB(), L1RCTParameters::EGammaTPGSum(), Exception, and rctParameters_.
Referenced by lookup().
unsigned int L1RCTLookupTables::emRank | ( | unsigned short | energy | ) | const |
Definition at line 220 of file L1RCTLookupTables.cc.
References HCALHighEnergyHPDFilter_cfi::energy, etScale_, and L1CaloEtScale::rank().
Referenced by L1RCTJetSummaryCard::asicCompare(), L1RCT::getIsolatedEGObjects(), L1RCT::getNonisolatedEGObjects(), and L1RCTLutWriter::writeEicLutFile().
bool L1RCTLookupTables::hOeFGVetoBit | ( | float | ecal, |
float | hcal, | ||
bool | fgbit | ||
) | const |
Definition at line 178 of file L1RCTLookupTables.cc.
References bsc_activity_cfg::ecal, L1RCTParameters::eMaxForFGCut(), L1RCTParameters::eMaxForHoECut(), L1RCTParameters::eMinForFGCut(), caloStage1RCTLuts_cff::eMinForHoECut, L1RCTParameters::eMinForHoECut(), Exception, L1RCTParameters::hMinForHoECut(), L1RCTParameters::hOeCut(), rctParameters_, and PbPb_ZMuSkimMuonDPG_cff::veto.
Referenced by lookup().
unsigned int L1RCTLookupTables::jetMETETCode | ( | float | ecal, |
float | hcal, | ||
int | iAbsEta | ||
) | const |
Definition at line 283 of file L1RCTLookupTables.cc.
References convertToInteger(), bsc_activity_cfg::ecal, Exception, L1RCTParameters::jetMETLSB(), L1RCTParameters::JetMETTPGSum(), and rctParameters_.
Referenced by lookup().
unsigned int L1RCTLookupTables::lookup | ( | unsigned short | ecalInput, |
unsigned short | hcalInput, | ||
unsigned short | fgbit, | ||
unsigned short | crtNo, | ||
unsigned short | crdNo, | ||
unsigned short | twrNo | ||
) | const |
Definition at line 22 of file L1RCTLookupTables.cc.
References funct::abs(), activityBit(), L1RCTParameters::calcIEta(), L1RCTParameters::calcIPhi(), channelMask_, convertEcal(), convertHcal(), bsc_activity_cfg::ecal, L1RCTChannelMask::ecalMask, L1RCTNoisyChannelMask::ecalMask, L1RCTParameters::eGammaECalScaleFactors(), eGammaETCode(), L1RCTParameters::eGammaHCalScaleFactors(), Exception, L1RCTChannelMask::hcalMask, L1RCTNoisyChannelMask::hcalMask, L1RCTNoisyChannelMask::hcalThreshold, hOeFGVetoBit(), L1TowerCalibrationProducer_cfi::iEta, L1RCTParameters::jetMETECalScaleFactors(), jetMETETCode(), L1RCTParameters::jetMETHCalScaleFactors(), L1RCTParameters::noiseVetoHB(), L1RCTParameters::noiseVetoHEminus(), L1RCTParameters::noiseVetoHEplus(), noisyChannelMask_, convertSQLitetoXML_cfg::output, rctParameters_, and Validation_hcalonly_cfi::sign.
Referenced by L1RCTSaveInput::analyze(), L1RCTJetSummaryCard::fillHFRegionSums(), L1RCTReceiverCard::fillInput(), L1RCTInputProducer::produce(), L1RCTLutWriter::writeJscLutFile(), and L1RCTLutWriter::writeRcLutFile().
unsigned int L1RCTLookupTables::lookup | ( | unsigned short | hfInput, |
unsigned short | crtNo, | ||
unsigned short | crdNo, | ||
unsigned short | twrNo | ||
) | const |
Definition at line 130 of file L1RCTLookupTables.cc.
References funct::abs(), L1RCTParameters::calcIEta(), channelMask_, convertHcal(), convertToInteger(), EgHLTOffHistBins_cfi::et, Exception, dqmMemoryStats::float, MonitorHcalDiJetsAlCaReco_cfi::hfInput, L1RCTChannelMask::hfMask, L1RCTNoisyChannelMask::hfMask, L1TowerCalibrationProducer_cfi::iEta, createfilelist::int, L1RCTParameters::jetMETHCalScaleFactors(), L1RCTParameters::jetMETLSB(), noisyChannelMask_, rctParameters_, mps_fire::result, and Validation_hcalonly_cfi::sign.
|
inline |
Definition at line 33 of file L1RCTLookupTables.h.
References rctParameters_.
Referenced by L1RCTElectronIsolationCard::calcElectronCandidates(), L1RCT::digiInput(), L1RCTJetSummaryCard::fillQuietBits(), RctInputTextToDigi::produce(), and setRCTParameters().
|
inline |
Definition at line 23 of file L1RCTLookupTables.h.
References channelMask_.
Referenced by L1RCTSaveInput::analyze(), L1RCTLutWriter::analyze(), and L1RCTInputProducer::produce().
|
inline |
Definition at line 31 of file L1RCTLookupTables.h.
References ecalScale_.
Referenced by L1RCTSaveInput::analyze(), L1RCTLutWriter::analyze(), and L1RCTInputProducer::produce().
|
inline |
Definition at line 27 of file L1RCTLookupTables.h.
References hcalScale_.
Referenced by L1RCTSaveInput::analyze(), L1RCTLutWriter::analyze(), and L1RCTInputProducer::produce().
|
inline |
Definition at line 29 of file L1RCTLookupTables.h.
References photonValidator_cfi::etScale, and etScale_.
Referenced by L1RCTSaveInput::analyze(), L1RCTLutWriter::analyze(), and L1RCTInputProducer::produce().
|
inline |
Definition at line 24 of file L1RCTLookupTables.h.
References noisyChannelMask_.
Referenced by L1RCTLutWriter::analyze().
|
inline |
Definition at line 21 of file L1RCTLookupTables.h.
References rctParameters(), and rctParameters_.
Referenced by L1RCTSaveInput::analyze(), L1RCTLutWriter::analyze(), L1RCTInputProducer::produce(), and RctInputTextToDigi::produce().
|
private |
Definition at line 58 of file L1RCTLookupTables.h.
Referenced by lookup(), and setChannelMask().
|
private |
Definition at line 60 of file L1RCTLookupTables.h.
Referenced by convertEcal(), and setEcalScale().
|
private |
Definition at line 62 of file L1RCTLookupTables.h.
Referenced by emRank(), and setL1CaloEtScale().
|
private |
Definition at line 61 of file L1RCTLookupTables.h.
Referenced by convertHcal(), and setHcalScale().
|
private |
Definition at line 59 of file L1RCTLookupTables.h.
Referenced by lookup(), and setNoisyChannelMask().
|
private |
Definition at line 57 of file L1RCTLookupTables.h.
Referenced by activityBit(), convertEcal(), convertHcal(), eGammaETCode(), hOeFGVetoBit(), jetMETETCode(), lookup(), rctParameters(), and setRCTParameters().