54 LogDebug(
"l1t|stage 1 Converter") <<
"L1TCaloUpgradeToGCTConverter::produce function called...\n";
103 for (
int itBX =
EGamma->getFirstBX(); itBX <=
EGamma->getLastBX(); ++itBX) {
115 bool iso = itEGamma->hwIso();
117 L1GctEmCand EmCand(itEGamma->hwPt(), itEGamma->hwPhi(), itEGamma->hwEta(),
iso, 0, 0, itBX);
123 isoEmResult->push_back(EmCand);
127 if (nonIsoCount != 4) {
128 nonIsoEmResult->push_back(EmCand);
133 isoEmResult->resize(4 * bxCounter);
134 nonIsoEmResult->resize(4 * bxCounter);
149 const bool forward =
false;
151 L1GctJetCand TauCand(itTau->hwPt(), itTau->hwPhi(), itTau->hwEta(),
true, forward, 0, 0, itBX);
155 tauJetResult->push_back(TauCand);
159 tauJetResult->resize(4 * bxCounter);
163 for (
int itBX =
IsoTau->getFirstBX(); itBX <=
IsoTau->getLastBX(); ++itBX) {
174 const bool forward =
false;
176 L1GctJetCand TauCand(itTau->hwPt(), itTau->hwPhi(), itTau->hwEta(),
true, forward, 0, 0, itBX);
179 if (isoTauCount != 4) {
180 isoTauJetResult->push_back(TauCand);
184 isoTauJetResult->resize(4 * bxCounter);
188 for (
int itBX =
Jet->getFirstBX(); itBX <=
Jet->getLastBX(); ++itBX) {
200 const bool forward = ((itJet->hwQual() & 0x2) != 0);
201 L1GctJetCand JetCand(itJet->hwPt(), itJet->hwPhi(), itJet->hwEta(),
false, forward, 0, 0, itBX);
206 forJetResult->push_back(JetCand);
211 cenJetResult->push_back(JetCand);
216 forJetResult->resize(4 * bxCounter);
217 cenJetResult->resize(4 * bxCounter);
221 for (
int itBX =
EtSum->getFirstBX(); itBX <=
EtSum->getLastBX(); ++itBX) {
231 L1GctEtMiss Cand(itEtSum->hwPt(), itEtSum->hwPhi(), itEtSum->hwQual() & 0x1, itBX);
232 etMissResult->push_back(Cand);
234 L1GctHtMiss Cand(itEtSum->hwPt(), itEtSum->hwPhi(), itEtSum->hwQual() & 0x1, itBX);
235 htMissResult->push_back(Cand);
237 L1GctEtTotal Cand(itEtSum->hwPt(), itEtSum->hwQual() & 0x1, itBX);
238 etTotResult->push_back(Cand);
240 L1GctEtHad Cand(itEtSum->hwPt(), itEtSum->hwQual() & 0x1, itBX);
241 etHadResult->push_back(Cand);
243 LogError(
"l1t|stage 1 Converter") <<
" Unknown EtSumType --- EtSum collection will not be saved...\n ";
246 etMissResult->resize(1 * bxCounter);
247 htMissResult->resize(1 * bxCounter);
248 etTotResult->resize(1 * bxCounter);
249 etHadResult->resize(1 * bxCounter);
276 for (
int i = 0;
i < 4;
i++) {
280 hfRingEtSumResult->push_back(sum);
282 hfRingEtSumResult->resize(1 * bxCounter);
296 for (
int i = 0;
i < 4;
i++) {
297 count.setBitCount(
i, itCaloSpare->GetRing(
i));
300 hfBitCountResult->push_back(
count);
301 hfBitCountResult->resize(1 * bxCounter);
309 e.put(
std::move(isoTauJetResult),
"isoTauJets");
static L1GctHFRingEtSums fromGctEmulator(const int16_t bx, const uint16_t etSumPosEtaRing1, const uint16_t etSumNegEtaRing1, const uint16_t etSumPosEtaRing2, const uint16_t etSumNegEtaRing2)
named ctor for GCT emulator
const edm::EDGetToken EGammaToken_
const edm::EDGetToken EtSumToken_
const edm::EDGetToken RlxTauToken_
std::vector< L1GctEtMiss > L1GctEtMissCollection
std::vector< L1GctHFRingEtSums > L1GctHFRingEtSumsCollection
std::vector< L1GctEtHad > L1GctEtHadCollection
Level-1 Trigger jet candidate.
std::vector< L1GctInternHtMiss > L1GctInternHtMissCollection
Persistable copy of missing Et measured at Level-1.
Log< level::Error, false > LogError
const edm::EDGetToken HfSumsToken_
Level-1 Trigger EM candidate at output of GCT.
std::vector< L1GctEtTotal > L1GctEtTotalCollection
const_iterator begin(int bx) const
std::vector< L1GctHFBitCounts > L1GctHFBitCountsCollection
std::vector< L1GctJetCand > L1GctJetCandCollection
const edm::EDGetToken JetToken_
std::vector< T >::const_iterator const_iterator
Persistable copy of total Et measured at Level-1.
void setEtSum(unsigned i, uint16_t et)
set a sum
const_iterator end() const
last daughter const_iterator
Persistable copy of total Ht measured at Level-1.
const edm::EDGetToken HfCountsToken_
std::vector< L1GctHtMiss > L1GctHtMissCollection
Persistable copy of missing Et measured at Level-1.
std::vector< L1GctInternJetData > L1GctInternJetDataCollection
const_iterator end(int bx) const
std::vector< L1GctInternEtSum > L1GctInternEtSumCollection
const edm::EDGetToken IsoTauToken_
static L1GctHFBitCounts fromGctEmulator(const int16_t bx, const uint16_t bitCountPosEtaRing1, const uint16_t bitCountNegEtaRing1, const uint16_t bitCountPosEtaRing2, const uint16_t bitCountNegEtaRing2)
named ctor for GCT emulator
std::vector< L1GctEmCand > L1GctEmCandCollection
const_iterator begin() const
first daughter const_iterator