#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 243 of file L1RCTLookupTables.cc.
References L1RCTParameters::eActivityCut(), L1RCTParameters::eMaxForHoECut(), L1RCTParameters::eMinForHoECut(), Exception, L1RCTParameters::hActivityCut(), L1RCTParameters::hOeCut(), and rctParameters_.
Referenced by lookup(), and rctParameters().
|
private |
Definition at line 282 of file L1RCTLookupTables.cc.
References digitizers_cfi::ecal, ecalScale_, L1RCTParameters::eGammaLSB(), L1CaloEcalScale::et(), objects.autophobj::float, and rctParameters_.
Referenced by lookup(), and rctParameters().
|
private |
Definition at line 311 of file L1RCTLookupTables.cc.
References L1CaloHcalScale::et(), digitizers_cfi::hcal, hcalScale_, L1RCTParameters::jetMETLSB(), and rctParameters_.
Referenced by lookup(), and rctParameters().
|
private |
Definition at line 326 of file L1RCTLookupTables.cc.
References RecoTauDiscriminantConfiguration::maxValue, and common_cff::precision.
Referenced by eGammaETCode(), jetMETETCode(), lookup(), and rctParameters().
unsigned int L1RCTLookupTables::eGammaETCode | ( | float | ecal, |
float | hcal, | ||
int | iAbsEta | ||
) | const |
Definition at line 338 of file L1RCTLookupTables.cc.
References convertToInteger(), L1RCTParameters::eGammaLSB(), L1RCTParameters::EGammaTPGSum(), Exception, and rctParameters_.
Referenced by lookup(), and rctParameters().
unsigned int L1RCTLookupTables::emRank | ( | unsigned short | energy | ) | const |
Definition at line 269 of file L1RCTLookupTables.cc.
References etScale_, and L1CaloEtScale::rank().
Referenced by L1RCTJetSummaryCard::asicCompare(), L1RCT::getIsolatedEGObjects(), L1RCT::getNonisolatedEGObjects(), rctParameters(), and L1RCTLutWriter::writeEicLutFile().
bool L1RCTLookupTables::hOeFGVetoBit | ( | float | ecal, |
float | hcal, | ||
bool | fgbit | ||
) | const |
Definition at line 219 of file L1RCTLookupTables.cc.
References L1RCTParameters::eMaxForFGCut(), L1RCTParameters::eMaxForHoECut(), L1RCTParameters::eMinForFGCut(), L1RCTParameters::eMinForHoECut(), Exception, L1RCTParameters::hMinForHoECut(), L1RCTParameters::hOeCut(), rctParameters_, and TriggerAnalyzer::veto.
Referenced by lookup(), and rctParameters().
unsigned int L1RCTLookupTables::jetMETETCode | ( | float | ecal, |
float | hcal, | ||
int | iAbsEta | ||
) | const |
Definition at line 347 of file L1RCTLookupTables.cc.
References convertToInteger(), Exception, L1RCTParameters::jetMETLSB(), L1RCTParameters::JetMETTPGSum(), and rctParameters_.
Referenced by lookup(), and rctParameters().
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(), digitizers_cfi::ecal, L1RCTChannelMask::ecalMask, L1RCTNoisyChannelMask::ecalMask, L1RCTParameters::eGammaECalScaleFactors(), eGammaETCode(), L1RCTParameters::eGammaHCalScaleFactors(), Exception, L1RCTChannelMask::hcalMask, L1RCTNoisyChannelMask::hcalMask, L1RCTNoisyChannelMask::hcalThreshold, hOeFGVetoBit(), 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(), rctParameters(), and L1RCTLutWriter::writeJscLutFile().
unsigned int L1RCTLookupTables::lookup | ( | unsigned short | hfInput, |
unsigned short | crtNo, | ||
unsigned short | crdNo, | ||
unsigned short | twrNo | ||
) | const |
Definition at line 164 of file L1RCTLookupTables.cc.
References funct::abs(), L1RCTParameters::calcIEta(), channelMask_, convertHcal(), convertToInteger(), stringResolutionProvider_cfi::et, Exception, objects.autophobj::float, CaloTowerSchemeBnoEE_cfi::hfInput, L1RCTChannelMask::hfMask, L1RCTNoisyChannelMask::hfMask, createfilelist::int, L1RCTParameters::jetMETHCalScaleFactors(), L1RCTParameters::jetMETLSB(), noisyChannelMask_, rctParameters_, mps_fire::result, and Validation_hcalonly_cfi::sign.
|
inline |
Definition at line 52 of file L1RCTLookupTables.h.
References activityBit(), convertEcal(), convertHcal(), convertToInteger(), digitizers_cfi::ecal, eGammaETCode(), emRank(), stringResolutionProvider_cfi::et, CaloTowerSchemeBnoEE_cfi::hfInput, hOeFGVetoBit(), jetMETETCode(), lookup(), common_cff::precision, rctParameters_, and Validation_hcalonly_cfi::sign.
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 photonValidator_cfi::etScale, and 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().