diff --git a/CondFormats/JetMETObjects/test/TestCorrections.C b/CondFormats/JetMETObjects/test/TestCorrections.C index 095e5864e6475..14cfba2baa8a4 100644 --- a/CondFormats/JetMETObjects/test/TestCorrections.C +++ b/CondFormats/JetMETObjects/test/TestCorrections.C @@ -1,12 +1,11 @@ -void TestCorrections(double rawPt, double rawEta, double rawPhi, double rawE, double JPTE, int NPV) -{ +void TestCorrections(double rawPt, double rawEta, double rawPhi, double rawE, double JPTE, int NPV) { gROOT->ProcessLine("#include "); gSystem->Load("libFWCoreFWLite.so"); FWLiteEnabler::enable(); ////////////// Construct the JetCorrectorParameters objects /////////////////////// - string L1Tag = "../data/Jec11V0_L1Offset_AK5JPT.txt"; - string L1JPTTag = "../data/Jec11V0_L1JPTOffset_AK5JPT.txt"; - JetCorrectorParameters *L1Par = new JetCorrectorParameters(L1Tag); + string L1Tag = "../data/Jec11V0_L1Offset_AK5JPT.txt"; + string L1JPTTag = "../data/Jec11V0_L1JPTOffset_AK5JPT.txt"; + JetCorrectorParameters *L1Par = new JetCorrectorParameters(L1Tag); JetCorrectorParameters *L1JPTPar = new JetCorrectorParameters(L1JPTTag); vector vPar; vPar.push_back(*L1Par); @@ -14,13 +13,13 @@ void TestCorrections(double rawPt, double rawEta, double rawPhi, double rawE, do ////////////// Construct a FactorizedJetCorrector object ////////////////////// FactorizedJetCorrector *JetCorrector = new FactorizedJetCorrector(vPar); ////////////// Loop over jets ////////////////////// - TLorentzVector rawJetP4(0); - rawJetP4.SetPtEtaPhiE(rawPt,rawEta,rawPhi,rawE); - JetCorrector->setJPTrawP4(rawJetP4); + TLorentzVector rawJetP4; + rawJetP4.SetPtEtaPhiE(rawPt, rawEta, rawPhi, rawE); + JetCorrector->setJPTrawP4(rawJetP4); JetCorrector->setJetE(JPTE); JetCorrector->setNPV(NPV); vector vcor; vcor = JetCorrector->getSubCorrections(); - cout<<"Correction applied to JPT jet after L1Offset = "<