64 LogDebug(
"l1t|stage 1 Converter") <<
"L1TCaloUpgradeToGCTConverter::produce function called...\n";
113 int firstBX = EGamma->getFirstBX();
114 int lastBX = EGamma->getLastBX();
116 for(
int itBX=firstBX; itBX!=lastBX+1; ++itBX){
122 itEGamma != EGamma->end(itBX); ++itEGamma){
123 bool iso = itEGamma->hwIso();
125 L1GctEmCand EmCand(itEGamma->hwPt(), itEGamma->hwPhi(), itEGamma->hwEta(),
133 isoEmResult->push_back(EmCand);
140 nonIsoEmResult->push_back(EmCand);
145 isoEmResult->resize(4);
146 nonIsoEmResult->resize(4);
151 itTau != RlxTau->end(itBX); ++itTau){
153 const bool forward=
false;
155 L1GctJetCand TauCand(itTau->hwPt(), itTau->hwPhi(), itTau->hwEta(),
156 true, forward,0, 0, itBX);
160 tauJetResult->push_back(TauCand);
164 tauJetResult->resize(4);
170 itTau != IsoTau->end(itBX); ++itTau){
172 const bool forward=
false;
174 L1GctJetCand TauCand(itTau->hwPt(), itTau->hwPhi(), itTau->hwEta(),
175 true, forward,0, 0, itBX);
178 if(isoTauCount != 4){
179 isoTauJetResult->push_back(TauCand);
183 isoTauJetResult->resize(4);
190 itJet != Jet->end(itBX); ++itJet){
192 const bool forward = ((itJet->hwQual() & 0x2) != 0);
193 L1GctJetCand JetCand(itJet->hwPt(), itJet->hwPhi(), itJet->hwEta(),
194 false, forward,0, 0, itBX);
199 forJetResult->push_back(JetCand);
205 cenJetResult->push_back(JetCand);
210 forJetResult->resize(4);
211 cenJetResult->resize(4);
215 itEtSum != EtSum->end(itBX); ++itEtSum){
217 if (EtSum::EtSumType::kMissingEt == itEtSum->getType()){
218 L1GctEtMiss Cand(itEtSum->hwPt(), itEtSum->hwPhi(), itEtSum->hwQual()&0x1, itBX);
219 etMissResult->push_back(Cand);
220 }
else if (EtSum::EtSumType::kMissingHt == itEtSum->getType()){
221 L1GctHtMiss Cand(itEtSum->hwPt(), itEtSum->hwPhi(), itEtSum->hwQual()&0x1, itBX);
222 htMissResult->push_back(Cand);
223 }
else if (EtSum::EtSumType::kTotalEt == itEtSum->getType()){
224 L1GctEtTotal Cand(itEtSum->hwPt(), itEtSum->hwQual()&0x1, itBX);
225 etTotResult->push_back(Cand);
226 }
else if (EtSum::EtSumType::kTotalHt == itEtSum->getType()){
227 L1GctEtHad Cand(itEtSum->hwPt(), itEtSum->hwQual()&0x1, itBX);
228 etHadResult->push_back(Cand);
230 LogError(
"l1t|stage 1 Converter") <<
" Unknown EtSumType --- EtSum collection will not be saved...\n ";
233 etMissResult->resize(1);
234 htMissResult->resize(1);
235 etTotResult->resize(1);
236 etHadResult->resize(1);
244 itCaloSpare != HfSums->end(itBX); ++itCaloSpare){
258 for(
int i = 0;
i < 4;
i++)
263 hfRingEtSumResult->push_back(sum);
265 hfRingEtSumResult->resize(1);
267 hfBitCountResult->resize(1);
270 e.
put(isoEmResult,
"isoEm");
271 e.
put(nonIsoEmResult,
"nonIsoEm");
272 e.
put(cenJetResult,
"cenJets");
273 e.
put(forJetResult,
"forJets");
274 e.
put(tauJetResult,
"tauJets");
275 e.
put(isoTauJetResult,
"isoTauJets");
280 e.
put(hfBitCountResult);
281 e.
put(hfRingEtSumResult);
283 e.
put(internalJetResult);
284 e.
put(internalEtSumResult);
285 e.
put(internalHtMissResult);
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
std::vector< L1GctEtMiss > L1GctEtMissCollection
bool getByToken(EDGetToken token, Handle< PROD > &result) const
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.
Level-1 Trigger EM candidate at output of GCT.
std::vector< L1GctEtTotal > L1GctEtTotalCollection
std::vector< L1GctHFBitCounts > L1GctHFBitCountsCollection
std::vector< L1GctJetCand > L1GctJetCandCollection
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Persistable copy of total Et measured at Level-1.
void setEtSum(unsigned i, uint16_t et)
set a sum
Persistable copy of total Ht measured at Level-1.
std::vector< L1GctHtMiss > L1GctHtMissCollection
Persistable copy of missing Et measured at Level-1.
std::vector< L1GctInternJetData > L1GctInternJetDataCollection
std::vector< L1GctInternEtSum > L1GctInternEtSumCollection
EDGetToken HfCountsToken_
std::vector< EGamma >::const_iterator const_iterator
std::vector< L1GctEmCand > L1GctEmCandCollection