107 ecalScale->
setBin(irank, ieta, 1, etGeVPos);
126 ecalScale->
setBin(irank, ieta, -1, etGeVNeg);
140 hcalScale->
setBin(irank, ieta, 1, etGeV);
141 hcalScale->
setBin(irank, ieta, -1, etGeV);
181 ofs <<
"Crate = 0-17" << std::endl
182 <<
"Card = 0-7 within the crate" << std::endl
183 <<
"Tower = 0-31 covers 4 x 8 covered by the card" << std::endl
184 <<
"EMAddr(0:8) = EMFGBit(0:0)+CompressedEMET(1:8)" << std::endl
185 <<
"HDAddr(0:8) = HDFGBit(0:0)+CompressedHDET(1:8) - note: " 186 "HDFGBit(0:0) is not part of the hardware LUT address" 189 "LinearEMET(0:6)+HoEFGVetoBit(7:7)+LinearJetET(8:16)+ActivityBit(17:" 204 <<
"LUTOut" << std::endl;
207 for (
unsigned short iCrate = 0; iCrate < 18; iCrate++) {
208 for (
unsigned short iCard = 0; iCard < 7; iCard++) {
210 for (
unsigned short iTower = 0; iTower < 32; iTower++) {
215 unsigned long lutOutput =
217 ofs << std::hex << nEvents <<
"\t" << iCrate <<
"\t" << iCard <<
"\t" 218 << iTower <<
"\t" << ecal * 2 + fgbit <<
"\t" << hcal * 2 + mubit
219 <<
"\t" << lutOutput <<
std::dec << std::endl;
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
void setEventSetup(const edm::EventSetup &evtSetup)
unsigned short hcalCompressedET(int crate, int card, int tower)
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
unsigned short hcalFineGrainBit(int crate, int card, int tower)
double getTPGInGeV(const EcalTriggerPrimitiveDigi &tpDigi)
void setHcalScale(const L1CaloHcalScale *hcalScale)
unsigned short ecalFineGrainBit(int crate, int card, int tower)
unsigned short ecalCompressedET(int crate, int card, int tower)
static const unsigned short nBinRank
void setL1CaloEtScale(const L1CaloEtScale *etScale)
void setEcalScale(const L1CaloEcalScale *ecalScale)
void setRCTParameters(const L1RCTParameters *rctParameters)
static const unsigned short nBinRank
void digiInput(const EcalTrigPrimDigiCollection &ecalCollection, const HcalTrigPrimDigiCollection &hcalCollection)
static const unsigned short nBinEta
static const unsigned short nBinEta
virtual double hcaletValue(const int &ieta, const int &iphi, const int &version, const int &compressedValue) const =0
T const * product() const
void setChannelMask(const L1RCTChannelMask *channelMask)
unsigned int lookup(unsigned short ecalInput, unsigned short hcalInput, unsigned short fgbit, unsigned short crtNo, unsigned short crdNo, unsigned short twrNo) const