Skip to content

Commit

Permalink
fix filldescription in CorrPFMETProducer for HLT
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieu committed Jun 9, 2016
1 parent a7cbb03 commit 5b98263
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion JetMETCorrections/Type1MET/plugins/CorrectedPFMETProducer.cc
Expand Up @@ -7,14 +7,18 @@
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "DataFormats/Candidate/interface/Candidate.h"
#include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
#include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
#include "FWCore/Utilities/interface/InputTag.h"

#include "DataFormats/Candidate/interface/Candidate.h"
#include "DataFormats/METReco/interface/PFMET.h"
#include "DataFormats/METReco/interface/CorrMETData.h"

#include "JetMETCorrections/Type1MET/interface/AddCorrectionsToGenericMET.h"

#include "HLTrigger/HLTcore/interface/defaultModuleLabel.h"

#include <vector>

//____________________________________________________________________________||
Expand All @@ -40,6 +44,15 @@ class CorrectedPFMETProducer : public edm::stream::EDProducer<>

~CorrectedPFMETProducer() { }

static void fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
edm::ParameterSetDescription desc;
desc.add<edm::InputTag>("src",edm::InputTag("pfMet", ""));
std::vector<edm::InputTag> tmpv;
tmpv.push_back( edm::InputTag("corrPfMetType1", "type1") );
desc.add<std::vector<edm::InputTag> >("srcCorrections",tmpv);
descriptions.add(defaultModuleLabel<CorrectedPFMETProducer>(),desc);
}

private:

AddCorrectionsToGenericMET corrector;
Expand Down

0 comments on commit 5b98263

Please sign in to comment.