From 1c7a26cc6ae73ec8addf86f184928532e2a5860f Mon Sep 17 00:00:00 2001 From: Florian Beaudette Date: Wed, 3 Oct 2012 14:53:49 +0000 Subject: [PATCH] save only seed RecHit --- PhysicsTools/PatAlgos/plugins/BuildFile.xml | 4 +++- PhysicsTools/PatAlgos/plugins/PATElectronProducer.cc | 10 +++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/PhysicsTools/PatAlgos/plugins/BuildFile.xml b/PhysicsTools/PatAlgos/plugins/BuildFile.xml index e4383a6981db4..32904e3ad2eb9 100644 --- a/PhysicsTools/PatAlgos/plugins/BuildFile.xml +++ b/PhysicsTools/PatAlgos/plugins/BuildFile.xml @@ -23,6 +23,8 @@ - + + + diff --git a/PhysicsTools/PatAlgos/plugins/PATElectronProducer.cc b/PhysicsTools/PatAlgos/plugins/PATElectronProducer.cc index 4b5f452a8fc7e..cdb67b01bca28 100755 --- a/PhysicsTools/PatAlgos/plugins/PATElectronProducer.cc +++ b/PhysicsTools/PatAlgos/plugins/PATElectronProducer.cc @@ -1,5 +1,5 @@ // -// $Id: PATElectronProducer.cc,v 1.66 2012/09/30 23:23:05 tjkim Exp $ +// $Id: PATElectronProducer.cc,v 1.67 2012/10/02 22:19:13 beaudett Exp $ // #include "PhysicsTools/PatAlgos/plugins/PATElectronProducer.h" @@ -397,8 +397,8 @@ void PATElectronProducer::produce(edm::Event & iEvent, const edm::EventSetup & i std::vector selectedCells = (barrel) ? ecalTopology_->getSubdetectorTopology(DetId::Ecal,EcalBarrel)->getWindow(seed,5,5): ecalTopology_->getSubdetectorTopology(DetId::Ecal,EcalEndcap)->getWindow(seed,5,5); // add the DetId of the SC - std::vector< std::pair >::const_iterator it=itElectron->superCluster()->hitsAndFractions().begin(); - std::vector< std::pair >::const_iterator itend=itElectron->superCluster()->hitsAndFractions().end(); + std::vector< std::pair >::const_iterator it=itElectron->superCluster()->seed()->hitsAndFractions().begin(); + std::vector< std::pair >::const_iterator itend=itElectron->superCluster()->seed()->hitsAndFractions().end(); for( ; it!=itend ; ++it) { DetId id=it->first; // check if already saved @@ -591,8 +591,8 @@ void PATElectronProducer::produce(edm::Event & iEvent, const edm::EventSetup & i std::vector selectedCells = (barrel) ? ecalTopology_->getSubdetectorTopology(DetId::Ecal,EcalBarrel)->getWindow(seed,5,5): ecalTopology_->getSubdetectorTopology(DetId::Ecal,EcalEndcap)->getWindow(seed,5,5); // add the DetId of the SC - std::vector< std::pair >::const_iterator it=itElectron->superCluster()->hitsAndFractions().begin(); - std::vector< std::pair >::const_iterator itend=itElectron->superCluster()->hitsAndFractions().end(); + std::vector< std::pair >::const_iterator it=itElectron->superCluster()->seed()->hitsAndFractions().begin(); + std::vector< std::pair >::const_iterator itend=itElectron->superCluster()->seed()->hitsAndFractions().end(); for( ; it!=itend ; ++it) { DetId id=it->first; // check if already saved