Skip to content

Commit

Permalink
validated miniAOD embedded IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
lgray committed Aug 20, 2014
1 parent 2224192 commit 4a66c29
Show file tree
Hide file tree
Showing 12 changed files with 528 additions and 47 deletions.
12 changes: 2 additions & 10 deletions EgammaAnalysis/ElectronTools/plugins/ElectronIDValueMapProducer.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/EDProducer.h"
#include "FWCore/Framework/interface/stream/EDProducer.h"

#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
Expand All @@ -18,7 +18,7 @@
#include <memory>
#include <vector>

class ElectronIDValueMapProducer : public edm::EDProducer {
class ElectronIDValueMapProducer : public edm::stream::EDProducer<> {

public:

Expand All @@ -29,9 +29,7 @@ class ElectronIDValueMapProducer : public edm::EDProducer {

private:

virtual void beginJob() override;
virtual void produce(edm::Event&, const edm::EventSetup&) override;
virtual void endJob() override;

void writeValueMap(edm::Event &iEvent,
const edm::Handle<reco::GsfElectronCollection> & handle,
Expand Down Expand Up @@ -199,12 +197,6 @@ void ElectronIDValueMapProducer::writeValueMap(edm::Event &iEvent,
iEvent.put(valMap, label);
}

void ElectronIDValueMapProducer::beginJob() {
}

void ElectronIDValueMapProducer::endJob() {
}

void ElectronIDValueMapProducer::fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
//The following says we do not know what parameters are allowed so do no validation
// Please change this to state exactly what you do use, even if it is no parameters
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import FWCore.ParameterSet.Config as cms

maxEvents = cms.untracked.PSet( input = cms.untracked.int32(10000) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [ 'file:/afs/cern.ch/user/l/lgray/work/public/CMSSW_7_2_0_pre4/src/miniAOD-prod_PAT.root'
] );


secFiles.extend( [
] )

Loading

0 comments on commit 4a66c29

Please sign in to comment.