Go to the documentation of this file.
30 rct(new
L1RCT(rctLookupTables)),
150 if (
ecal.isValid()) {
153 if (
hcal.isValid()) {
159 ofs <<
"Crate = 0-17" << std::endl
160 <<
"Card = 0-7 within the crate" << std::endl
161 <<
"Tower = 0-31 covers 4 x 8 covered by the card" << std::endl
162 <<
"EMAddr(0:8) = EMFGBit(0:0)+CompressedEMET(1:8)" << std::endl
163 <<
"HDAddr(0:8) = HDFGBit(0:0)+CompressedHDET(1:8) - note: "
164 "HDFGBit(0:0) is not part of the hardware LUT address"
167 "LinearEMET(0:6)+HoEFGVetoBit(7:7)+LinearJetET(8:16)+ActivityBit(17:"
182 <<
"LUTOut" << std::endl;
185 for (
unsigned short iCrate = 0; iCrate < 18; iCrate++) {
186 for (
unsigned short iCard = 0; iCard < 7; iCard++) {
188 for (
unsigned short iTower = 0; iTower < 32; iTower++) {
194 ofs << std::hex <<
nEvents <<
"\t" << iCrate <<
"\t" << iCard <<
"\t" << iTower <<
"\t" <<
ecal * 2 + fgbit
195 <<
"\t" <<
hcal * 2 + mubit <<
"\t" << lutOutput <<
std::dec << std::endl;
T const * product() const
unsigned int lookup(unsigned short ecalInput, unsigned short hcalInput, unsigned short fgbit, unsigned short crtNo, unsigned short crdNo, unsigned short twrNo) const
static const unsigned short nBinRank
unsigned short hcalFineGrainBit(int crate, int card, int tower)
static const unsigned short nBinRank
unsigned short ecalCompressedET(int crate, int card, int tower)
void setHcalScale(const L1CaloHcalScale *hcalScale)
std::vector< edm::EDGetTokenT< int > > tokens_
unsigned short ecalFineGrainBit(int crate, int card, int tower)
static const unsigned short nBinEta
double getTPGInGeV(const EcalTriggerPrimitiveDigi &tpDigi) const
void setL1CaloEtScale(const L1CaloEtScale *etScale)
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
void setBin(unsigned short rank, unsigned short eta, short etaSign, double et)
set scale element; use this to create non-linear scales
void setBin(unsigned short rank, unsigned short eta, short etaSign, double et)
set scale element; use this to create non-linear scales
void setEcalScale(const L1CaloEcalScale *ecalScale)
void setRCTParameters(const L1RCTParameters *rctParameters)
virtual double hcaletValue(const int &ieta, const int &iphi, const int &version, const int &compressedValue) const =0
void setChannelMask(const L1RCTChannelMask *channelMask)
static const unsigned short nBinEta
void digiInput(const EcalTrigPrimDigiCollection &ecalCollection, const HcalTrigPrimDigiCollection &hcalCollection)
unsigned short hcalCompressedET(int crate, int card, int tower)