26 produces<l1t::EGammaBxCollection>();
27 produces<l1t::TauBxCollection>();
28 produces<l1t::JetBxCollection>();
29 produces<l1t::EtSumBxCollection>();
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);
230 const double rgnEtaValues[11] = {
244 return -rgnEtaValues[-(etaIndex - 10)];
246 else if (etaIndex < 22) {
247 return rgnEtaValues[etaIndex - 11];
255 return 2. *
M_PI * phiIndex / 18.;
257 return -
M_PI + 2. *
M_PI * (phiIndex - 9) / 18.;
T getParameter(std::string const &) const
edm::EDGetToken EtSumToken_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
edm::EDGetToken TauToken_
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
PhysicalEtAdder(const edm::ParameterSet &ps)
void addDefault(ParameterSetDescription const &psetDescription)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
virtual void endJob() override
double getPhysicalPhi(int phiIndex)
virtual void beginJob() override
edm::EDGetToken EGammaToken_
edm::EDGetToken JetToken_
virtual void produce(edm::Event &, const edm::EventSetup &) override
double getPhysicalEta(int etaIndex)
std::vector< EGamma >::const_iterator const_iterator