14 std::vector<l1t::Jet>*
jets,
17 for (std::vector<l1t::Jet>::const_iterator uncalibjet = uncalibjets->begin(); uncalibjet != uncalibjets->end();
19 if (jetCalibrationType ==
"None") {
21 jets->push_back(corrjets);
25 if (jetCalibrationType ==
"Stage1JEC") {
26 int jetPt = (uncalibjet->hwPt()) * jetLSB;
27 int jetPhi = uncalibjet->hwPhi();
28 int jetEta = uncalibjet->hwEta();
29 int jetQual = uncalibjet->hwQual();
32 double alpha = jetCalibrationParams[2 * jetEta + 0];
33 double gamma = ((jetCalibrationParams[2 * jetEta + 1]));
35 jpt = jetPt * alpha +
gamma;
36 unsigned int corjetET = (
int)(jpt / jetLSB);
38 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > jetLorentz(0, 0, 0, 0);
39 l1t::Jet corrjets(*&jetLorentz, corjetET, jetEta, jetPhi, jetQual);
41 jets->push_back(corrjets);
void JetCalibration(std::vector< l1t::Jet > *uncalibjets, std::vector< double > jetCalibrationParams, std::vector< l1t::Jet > *jets, std::string jetCalibrationType, double jetLSB)
alpha
zGenParticlesMatch = cms.InputTag(""),