17 std::vector<double> jetSF,
18 std::vector<l1t::Jet> *
jets,
19 bool applyJetCalibration,
23 for (std::vector<l1t::Jet>::const_iterator uncalibjet = uncalibjets->begin(); uncalibjet != uncalibjets->end(); ++uncalibjet){
25 if (!applyJetCalibration) {
27 jets->push_back(corrjets);
31 int jetPt = (uncalibjet->hwPt())*jetLSB;
32 int jetPhi = uncalibjet->hwPhi();
33 int jetEta = uncalibjet->hwEta();
34 int jetQual = uncalibjet->hwQual();
37 double alpha = jetSF[2*jetEta + 0];
38 double gamma = ((jetSF[2*jetEta + 1]));
40 jpt = jetPt*alpha+gamma;
41 unsigned int corjetET =(int) (jpt/jetLSB);
43 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > *jetLorentz =
44 new ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> >();
45 l1t::Jet corrjets(*jetLorentz, corjetET, jetEta, jetPhi, jetQual);
47 jets->push_back(corrjets);
53 std::reverse(jets->begin(), jets->end());
bool compareCorrJets(l1t::Jet m, l1t::Jet n)
void JetCalibration1(std::vector< l1t::Jet > *uncalibjets, std::vector< double > jetSF, std::vector< l1t::Jet > *jets, bool applyJetCalibration, double jetLSB)