13 std::vector<double> jetCalibrationParams,
14 std::vector<l1t::Jet> *
jets,
19 for (std::vector<l1t::Jet>::const_iterator uncalibjet = uncalibjets->begin(); uncalibjet != uncalibjets->end(); ++uncalibjet){
21 if (jetCalibrationType ==
"None") {
23 jets->push_back(corrjets);
27 if (jetCalibrationType ==
"Stage1JEC") {
28 int jetPt = (uncalibjet->hwPt())*jetLSB;
29 int jetPhi = uncalibjet->hwPhi();
30 int jetEta = uncalibjet->hwEta();
31 int jetQual = uncalibjet->hwQual();
34 double alpha = jetCalibrationParams[2*jetEta + 0];
35 double gamma = ((jetCalibrationParams[2*jetEta + 1]));
37 jpt = jetPt*alpha+gamma;
38 unsigned int corjetET =(int) (jpt/jetLSB);
40 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > jetLorentz(0,0,0,0);
41 l1t::Jet corrjets(*&jetLorentz, corjetET, jetEta, jetPhi, jetQual);
43 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)