46 fileName(conf.getUntrackedParameter<std::
string>(
"rctTestInputFile")),
48 rct(new
L1RCT(rctLookupTables)),
49 useEcal(conf.getParameter<bool>(
"useEcal")),
50 useHcal(conf.getParameter<bool>(
"useHcal")),
51 ecalDigisLabel(conf.getParameter<edm::InputTag>(
"ecalDigisLabel")),
52 hcalDigisLabel(conf.getParameter<edm::InputTag>(
"hcalDigisLabel")),
53 useDebugTpgScales(conf.getParameter<bool>(
"useDebugTpgScales"))
115 ecalScale->
setBin( irank, ieta, 1, etGeVPos ) ;
137 ecalScale->
setBin( irank, ieta, -1, etGeVNeg ) ;
152 hcalScale->
setBin( irank, ieta, 1, etGeV ) ;
153 hcalScale->
setBin( irank, ieta, -1, etGeV ) ;
194 <<
"Crate = 0-17" << std::endl
195 <<
"Card = 0-7 within the crate" << std::endl
196 <<
"Tower = 0-31 covers 4 x 8 covered by the card" << std::endl
197 <<
"EMAddr(0:8) = EMFGBit(0:0)+CompressedEMET(1:8)" << std::endl
198 <<
"HDAddr(0:8) = HDFGBit(0:0)+CompressedHDET(1:8) - note: HDFGBit(0:0) is not part of the hardware LUT address" << std::endl
199 <<
"LutOut(0:17)= LinearEMET(0:6)+HoEFGVetoBit(7:7)+LinearJetET(8:16)+ActivityBit(17:17)" << std::endl
211 for(
unsigned short iCrate = 0; iCrate < 18; iCrate++)
213 for(
unsigned short iCard = 0; iCard < 7; iCard++)
216 for(
unsigned short iTower = 0; iTower < 32; iTower++)
229 << ecal * 2 + fgbit <<
"\t"
230 << hcal * 2 + mubit <<
"\t"
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
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
void setL1CaloEtScale(const L1CaloEtScale *etScale)
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
T const * product() const
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
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
virtual double hcaletValue(const int &ieta, const int &compET) const =0