#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 17 of file L1RCTLookupTables.h.
bool L1RCTLookupTables::activityBit | ( | float | ecal, |
float | hcal | ||
) | const |
Definition at line 242 of file L1RCTLookupTables.cc.
References L1RCTParameters::eActivityCut(), L1RCTParameters::eMaxForHoECut(), L1RCTParameters::eMinForHoECut(), edm::hlt::Exception, L1RCTParameters::hActivityCut(), L1RCTParameters::hOeCut(), and rctParameters_.
Referenced by lookup().
|
private |
Definition at line 281 of file L1RCTLookupTables.cc.
References patCandidatesForDimuonsSequences_cff::ecal, ecalScale_, L1RCTParameters::eGammaLSB(), L1CaloEcalScale::et(), and rctParameters_.
Referenced by lookup().
|
private |
Definition at line 310 of file L1RCTLookupTables.cc.
References L1CaloHcalScale::et(), patCandidatesForDimuonsSequences_cff::hcal, hcalScale_, L1RCTParameters::jetMETLSB(), and rctParameters_.
Referenced by lookup().
|
private |
Definition at line 325 of file L1RCTLookupTables.cc.
Referenced by eGammaETCode(), jetMETETCode(), and lookup().
unsigned int L1RCTLookupTables::eGammaETCode | ( | float | ecal, |
float | hcal, | ||
int | iAbsEta | ||
) | const |
Definition at line 337 of file L1RCTLookupTables.cc.
References convertToInteger(), L1RCTParameters::eGammaLSB(), L1RCTParameters::EGammaTPGSum(), edm::hlt::Exception, and rctParameters_.
Referenced by lookup().
unsigned int L1RCTLookupTables::emRank | ( | unsigned short | energy | ) | const |
Definition at line 268 of file L1RCTLookupTables.cc.
References relval_parameters_module::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 218 of file L1RCTLookupTables.cc.
References L1RCTParameters::eMaxForFGCut(), L1RCTParameters::eMaxForHoECut(), L1RCTParameters::eMinForFGCut(), L1RCTParameters::eMinForHoECut(), edm::hlt::Exception, L1RCTParameters::hMinForHoECut(), L1RCTParameters::hOeCut(), rctParameters_, and TriggerAnalyzer::veto.
Referenced by lookup().
unsigned int L1RCTLookupTables::jetMETETCode | ( | float | ecal, |
float | hcal, | ||
int | iAbsEta | ||
) | const |
Definition at line 346 of file L1RCTLookupTables.cc.
References convertToInteger(), edm::hlt::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 21 of file L1RCTLookupTables.cc.
References funct::abs(), activityBit(), L1RCTParameters::calcIEta(), L1RCTParameters::calcIPhi(), channelMask_, convertEcal(), convertHcal(), patCandidatesForDimuonsSequences_cff::ecal, L1RCTChannelMask::ecalMask, L1RCTNoisyChannelMask::ecalMask, L1RCTParameters::eGammaECalScaleFactors(), eGammaETCode(), L1RCTParameters::eGammaHCalScaleFactors(), edm::hlt::Exception, patCandidatesForDimuonsSequences_cff::hcal, L1RCTChannelMask::hcalMask, L1RCTNoisyChannelMask::hcalMask, L1RCTNoisyChannelMask::hcalThreshold, hOeFGVetoBit(), L1RCTParameters::jetMETECalScaleFactors(), jetMETETCode(), L1RCTParameters::jetMETHCalScaleFactors(), L1RCTParameters::noiseVetoHB(), L1RCTParameters::noiseVetoHEminus(), L1RCTParameters::noiseVetoHEplus(), noisyChannelMask_, convertSQLitetoXML_cfg::output, rctParameters_, and jetcorrextractor::sign().
Referenced by L1RCTSaveInput::analyze(), L1RCTJetSummaryCard::fillHFRegionSums(), L1RCTReceiverCard::fillInput(), L1RCTInputProducer::produce(), and L1RCTLutWriter::writeJscLutFile().
unsigned int L1RCTLookupTables::lookup | ( | unsigned short | hfInput, |
unsigned short | crtNo, | ||
unsigned short | crdNo, | ||
unsigned short | twrNo | ||
) | const |
Definition at line 163 of file L1RCTLookupTables.cc.
References funct::abs(), L1RCTParameters::calcIEta(), channelMask_, convertHcal(), convertToInteger(), edm::hlt::Exception, HLT_25ns14e33_v1_cff::hfInput, L1RCTChannelMask::hfMask, L1RCTNoisyChannelMask::hfMask, L1RCTParameters::jetMETHCalScaleFactors(), L1RCTParameters::jetMETLSB(), noisyChannelMask_, rctParameters_, query::result, and jetcorrextractor::sign().
|
inline |
Definition at line 52 of file L1RCTLookupTables.h.
References rctParameters_.
Referenced by L1RCTElectronIsolationCard::calcElectronCandidates(), L1RCT::digiInput(), L1RCTJetSummaryCard::fillQuietBits(), RctInputTextToDigi::produce(), and setRCTParameters().
|
inline |
Definition at line 27 of file L1RCTLookupTables.h.
References channelMask_.
Referenced by L1RCTSaveInput::analyze(), L1RCTLutWriter::analyze(), L1RCTInputProducer::produce(), and L1RCTProducer::updateFedVector().
|
inline |
Definition at line 47 of file L1RCTLookupTables.h.
References ecalScale_.
Referenced by L1RCTSaveInput::analyze(), L1RCTLutWriter::analyze(), L1RCTInputProducer::produce(), and L1RCTProducer::updateConfiguration().
|
inline |
Definition at line 37 of file L1RCTLookupTables.h.
References hcalScale_.
Referenced by L1RCTSaveInput::analyze(), L1RCTLutWriter::analyze(), L1RCTInputProducer::produce(), and L1RCTProducer::updateConfiguration().
|
inline |
Definition at line 42 of file L1RCTLookupTables.h.
References etScale_.
Referenced by L1RCTSaveInput::analyze(), L1RCTLutWriter::analyze(), L1RCTInputProducer::produce(), and L1RCTProducer::updateConfiguration().
|
inline |
Definition at line 31 of file L1RCTLookupTables.h.
References noisyChannelMask_.
Referenced by L1RCTLutWriter::analyze(), and L1RCTProducer::updateFedVector().
|
inline |
Definition at line 22 of file L1RCTLookupTables.h.
References rctParameters(), and rctParameters_.
Referenced by L1RCTSaveInput::analyze(), L1RCTLutWriter::analyze(), L1RCTInputProducer::produce(), RctInputTextToDigi::produce(), and L1RCTProducer::updateConfiguration().
|
private |
Definition at line 83 of file L1RCTLookupTables.h.
Referenced by lookup(), and setChannelMask().
|
private |
Definition at line 85 of file L1RCTLookupTables.h.
Referenced by convertEcal(), and setEcalScale().
|
private |
Definition at line 87 of file L1RCTLookupTables.h.
Referenced by emRank(), and setL1CaloEtScale().
|
private |
Definition at line 86 of file L1RCTLookupTables.h.
Referenced by convertHcal(), and setHcalScale().
|
private |
Definition at line 84 of file L1RCTLookupTables.h.
Referenced by lookup(), and setNoisyChannelMask().
|
private |
Definition at line 82 of file L1RCTLookupTables.h.
Referenced by activityBit(), convertEcal(), convertHcal(), eGammaETCode(), hOeFGVetoBit(), jetMETETCode(), lookup(), rctParameters(), and setRCTParameters().