From aeab001527140808a9ce24b39898b2df5b86f6cc Mon Sep 17 00:00:00 2001 From: Alberto Sanchez Hernandez Date: Fri, 24 Mar 2017 11:19:13 -0600 Subject: [PATCH] removing Pv from MINIAOSIM, the PVs are actually not stored --- .../PatAlgos/plugins/PATPackedGenParticleProducer.cc | 12 ------------ .../python/slimming/packedGenParticles_cfi.py | 1 - 2 files changed, 13 deletions(-) diff --git a/PhysicsTools/PatAlgos/plugins/PATPackedGenParticleProducer.cc b/PhysicsTools/PatAlgos/plugins/PATPackedGenParticleProducer.cc index 2200ef36e0b5b..e4ca9f36a019a 100644 --- a/PhysicsTools/PatAlgos/plugins/PATPackedGenParticleProducer.cc +++ b/PhysicsTools/PatAlgos/plugins/PATPackedGenParticleProducer.cc @@ -49,7 +49,6 @@ namespace pat { const edm::EDGetTokenT GenOrigs_; const edm::EDGetTokenT > Asso_; const edm::EDGetTokenT > AssoOriginal_; - const edm::EDGetTokenT PVs_; const double maxRapidity_; }; } @@ -59,7 +58,6 @@ pat::PATPackedGenParticleProducer::PATPackedGenParticleProducer(const edm::Param GenOrigs_(consumes(iConfig.getParameter("inputOriginal"))), Asso_(consumes >(iConfig.getParameter("map"))), AssoOriginal_(consumes >(iConfig.getParameter("inputCollection"))), - PVs_(consumes(iConfig.getParameter("inputVertices"))), maxRapidity_(iConfig.getParameter("maxRapidity")) { produces< std::vector > (); @@ -85,16 +83,6 @@ void pat::PATPackedGenParticleProducer::produce(edm::StreamID, edm::Event& iEven iEvent.getByToken( GenOrigs_, genOrigs); std::vector mapping(genOrigs->size(), -1); - - edm::Handle PVs; - iEvent.getByToken( PVs_, PVs ); - reco::VertexRef PV(PVs.id()); - math::XYZPoint PVpos; - if (!PVs->empty()) { - PV = reco::VertexRef(PVs, 0); - PVpos = PV->position(); - } - //invert the value map from Orig2New to New2Orig std::map< edm::Ref , edm::Ref > reverseMap; for(unsigned int ic=0, nc = genOrigs->size(); ic < nc; ++ic) diff --git a/PhysicsTools/PatAlgos/python/slimming/packedGenParticles_cfi.py b/PhysicsTools/PatAlgos/python/slimming/packedGenParticles_cfi.py index dde7ccaac79e9..26c8061dce7dd 100644 --- a/PhysicsTools/PatAlgos/python/slimming/packedGenParticles_cfi.py +++ b/PhysicsTools/PatAlgos/python/slimming/packedGenParticles_cfi.py @@ -3,6 +3,5 @@ inputCollection = cms.InputTag("genParticles"), map = cms.InputTag("genParticles"), inputOriginal = cms.InputTag("genParticles"), - inputVertices = cms.InputTag("offlineSlimmedPrimaryVertices"), maxRapidity = cms.double(6) )