73 std::vector< bool > htMissMatched ;
76 int firstBX = old_egammas->getFirstBX();
77 int lastBX = old_egammas->getLastBX();
79 new_egammas->setBXRange(firstBX, lastBX);
80 new_taus->setBXRange(firstBX, lastBX);
81 new_jets->setBXRange(firstBX, lastBX);
82 new_taus->setBXRange(firstBX, lastBX);
84 for(
int bx = firstBX; bx <= lastBX; ++bx)
87 itEGamma != old_egammas->end(bx); ++itEGamma)
89 const double pt = itEGamma->hwPt() * emScale->linearLsb();
95 itEGamma->hwEta(), itEGamma->hwPhi(),
96 itEGamma->hwQual(), itEGamma->hwIso());
97 new_egammas->push_back(bx, *eg);
103 itTau != old_taus->end(bx); ++itTau)
110 const double et = itTau->
hwPt() * emScale->linearLsb();
117 itTau->hwEta(), itTau->hwPhi(),
119 new_taus->push_back(bx, *tau);
124 itJet != old_jets->end(bx); ++itJet)
131 const double et = itJet->hwPt() * emScale->linearLsb();
138 itJet->hwEta(), itJet->hwPhi(),
140 new_jets->push_back(bx, *jet);
145 itEtSum != old_etsums->end(bx); ++itEtSum)
147 const double pt = itEtSum->
hwPt() * emScale->linearLsb();
155 itEtSum->hwEta(), itEtSum->hwPhi(),
157 new_etsums->push_back(bx, *eg);
162 iEvent.
put(new_egammas);
163 iEvent.
put(new_taus);
164 iEvent.
put(new_jets);
165 iEvent.
put(new_etsums);
edm::EDGetToken EtSumToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetToken TauToken_
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
double getPhysicalPhi(int phiIndex)
edm::EDGetToken EGammaToken_
edm::EDGetToken JetToken_
double getPhysicalEta(int etaIndex)
std::vector< EGamma >::const_iterator const_iterator