Skip to content

Commit

Permalink
Fixed naming
Browse files Browse the repository at this point in the history
  • Loading branch information
quark2 committed Nov 20, 2018
1 parent eef611d commit 43d20eb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions nanoAOD/plugins/JetUncertaintyEvaluator.cc
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#include "JetMetUncertainty.h"
#include "JetUncertaintyEvaluator.h"


//#define debugMode
using namespace edm;
using namespace std;


JetMetUncertainty::JetMetUncertainty(const edm::ParameterSet &iConfig) :
JetUncertaintyEvaluator::JetUncertaintyEvaluator(const edm::ParameterSet &iConfig) :
src_(consumes<std::vector<pat::Jet>>(iConfig.getParameter<edm::InputTag>("src"))),
rhoToken_(consumes<double>(iConfig.getParameter<edm::InputTag>("rho"))),
payloadName_(iConfig.getParameter<std::string>("payloadName")),
Expand All @@ -17,20 +17,20 @@ JetMetUncertainty::JetMetUncertainty(const edm::ParameterSet &iConfig) :
}


void JetMetUncertainty::fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
void JetUncertaintyEvaluator::fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
edm::ParameterSetDescription desc;
desc.setUnknown();
descriptions.addDefault(desc);
}


void JetMetUncertainty::beginLuminosityBlock(const edm::LuminosityBlock& lumi, const edm::EventSetup&) {
void JetUncertaintyEvaluator::beginLuminosityBlock(const edm::LuminosityBlock& lumi, const edm::EventSetup&) {
edm::Service<edm::RandomNumberGenerator> rng;
rng_ = &rng->getEngine(lumi.index());
}


void JetMetUncertainty::produce(edm::Event &iEvent, const edm::EventSetup &iSetup) {
void JetUncertaintyEvaluator::produce(edm::Event &iEvent, const edm::EventSetup &iSetup) {
runOnMC_ = !iEvent.isRealData();

Handle<pat::JetCollection> jets;
Expand Down Expand Up @@ -137,6 +137,6 @@ void JetMetUncertainty::produce(edm::Event &iEvent, const edm::EventSetup &iSetu
iEvent.put(move(outJetCor));
}

DEFINE_FWK_MODULE(JetMetUncertainty);
DEFINE_FWK_MODULE(JetUncertaintyEvaluator);


10 changes: 5 additions & 5 deletions nanoAOD/plugins/JetUncertaintyEvaluator.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef JetMetUncertainty_H
#define JetMetUncertainty_H
#ifndef JetUncertaintyEvaluator_H
#define JetUncertaintyEvaluator_H

#include<memory>

Expand Down Expand Up @@ -41,9 +41,9 @@ using namespace edm;
using namespace std;


class JetMetUncertainty: public edm::stream::EDProducer<> {
class JetUncertaintyEvaluator: public edm::stream::EDProducer<> {
public:
explicit JetMetUncertainty(const edm::ParameterSet &iConfig);
explicit JetUncertaintyEvaluator(const edm::ParameterSet &iConfig);
static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);

private:
Expand All @@ -62,6 +62,6 @@ class JetMetUncertainty: public edm::stream::EDProducer<> {
CLHEP::HepRandomEngine* rng_;
};

#endif // JetMetUncertainty_H
#endif // JetUncertaintyEvaluater_H


2 changes: 1 addition & 1 deletion nanoAOD/python/JetMetUncertainty_cff.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import FWCore.ParameterSet.Config as cms
from PhysicsTools.NanoAOD.common_cff import *

jetUncEvaluatorTable = cms.EDProducer("JetMetUncertainty",
jetUncEvaluatorTable = cms.EDProducer("JetUncertaintyEvaluator",
src = cms.InputTag("linkedObjects","jets"),
rho = cms.InputTag('fixedGridRhoFastjetAll'),
payloadName = cms.string('AK4PFchs'),
Expand Down

0 comments on commit 43d20eb

Please sign in to comment.