Skip to content

Commit

Permalink
save only seed RecHit
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Beaudette committed Oct 3, 2012
1 parent 633ffd5 commit 1c7a26c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion PhysicsTools/PatAlgos/plugins/BuildFile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
<use name="SimGeneral/HepPDTRecord"/>
<use name="RecoMET/METAlgorithms"/>
<use name="RecoEgamma/EgammaTools"/>
<use name="TrackingTools/IPTools"/>
<use name="TrackingTools/IPTools"/>
<use name="EgammaAnalysis/ElectronTools"/>
<use name="EGamma/EGammaAnalysisTools"/>
<use name="root"/>
</library>
10 changes: 5 additions & 5 deletions PhysicsTools/PatAlgos/plugins/PATElectronProducer.cc
Original file line number Diff line number Diff line change
@@ -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"

Expand Down Expand Up @@ -397,8 +397,8 @@ void PATElectronProducer::produce(edm::Event & iEvent, const edm::EventSetup & i
std::vector<DetId> 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<DetId, float> >::const_iterator it=itElectron->superCluster()->hitsAndFractions().begin();
std::vector< std::pair<DetId, float> >::const_iterator itend=itElectron->superCluster()->hitsAndFractions().end();
std::vector< std::pair<DetId, float> >::const_iterator it=itElectron->superCluster()->seed()->hitsAndFractions().begin();
std::vector< std::pair<DetId, float> >::const_iterator itend=itElectron->superCluster()->seed()->hitsAndFractions().end();
for( ; it!=itend ; ++it) {
DetId id=it->first;
// check if already saved
Expand Down Expand Up @@ -591,8 +591,8 @@ void PATElectronProducer::produce(edm::Event & iEvent, const edm::EventSetup & i
std::vector<DetId> 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<DetId, float> >::const_iterator it=itElectron->superCluster()->hitsAndFractions().begin();
std::vector< std::pair<DetId, float> >::const_iterator itend=itElectron->superCluster()->hitsAndFractions().end();
std::vector< std::pair<DetId, float> >::const_iterator it=itElectron->superCluster()->seed()->hitsAndFractions().begin();
std::vector< std::pair<DetId, float> >::const_iterator itend=itElectron->superCluster()->seed()->hitsAndFractions().end();
for( ; it!=itend ; ++it) {
DetId id=it->first;
// check if already saved
Expand Down

0 comments on commit 1c7a26c

Please sign in to comment.