Skip to content

Commit

Permalink
get rid of dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
lgray committed Nov 22, 2013
1 parent 288ffb8 commit 761de18
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 544 deletions.
46 changes: 1 addition & 45 deletions RecoParticleFlow/PFProducer/interface/PFEGammaAlgo.h
Expand Up @@ -132,32 +132,6 @@ class PFEGammaAlgo {
eetops_ = eetops;
}

void setGBRForest(const GBRForest *LCorrForest,
const GBRForest *GCorrForest,
const GBRForest *ResForest
)
{
ReaderLC_=LCorrForest;
ReaderGC_=GCorrForest;
ReaderRes_=ResForest;
}

void setGBRForest(
const GBRForest *LCorrForestEB,
const GBRForest *LCorrForestEE,
const GBRForest *GCorrForestBarrel,
const GBRForest *GCorrForestEndcapHr9,
const GBRForest *GCorrForestEndcapLr9,
const GBRForest *PFEcalResolution
)
{
ReaderLCEB_=LCorrForestEB;
ReaderLCEE_=LCorrForestEE;
ReaderGCEB_=GCorrForestBarrel;
ReaderGCEEhR9_=GCorrForestEndcapHr9;
ReaderGCEElR9_=GCorrForestEndcapLr9;
ReaderRes_=PFEcalResolution;
}
void setnPU(int nVtx){
nVtx_=nVtx;
}
Expand All @@ -171,9 +145,7 @@ class PFEGammaAlgo {

//check candidate validity
bool isEGValidCandidate(const reco::PFBlockRef& blockRef,
std::vector< bool >& active
// std::auto_ptr< reco::PFCandidateCollection > &pfElectronCandidates_
){
std::vector< bool >& active){
RunPFEG(blockRef,active);
return (egCandidate_.size()>0);
};
Expand Down Expand Up @@ -416,22 +388,6 @@ class PFEGammaAlgo {
bool EvaluateSingleLegMVA(const reco::PFBlockRef& blockref,
const reco::Vertex& primaryvtx,
unsigned int track_index);

double ClustersPhiRMS(const std::vector<reco::CaloCluster>& PFClusters,
float PFPhoPhi) const ;
float EvaluateLCorrMVA(const reco::PFClusterRef& clusterRef );
float EvaluateGCorrMVA(const reco::PFCandidate&,
const std::vector<reco::CaloCluster>& PFClusters) ;
float EvaluateResMVA(const reco::PFCandidate& ,
const std::vector<reco::CaloCluster>& PFClusters ) ;

void EarlyConversion(
//std::auto_ptr< reco::PFCandidateCollection >
//&pfElectronCandidates_,
const std::vector<reco::PFCandidate>&
tempElectronCandidates,
const reco::PFBlockElementSuperCluster* sc
);
};

#endif
18 changes: 0 additions & 18 deletions RecoParticleFlow/PFProducer/plugins/PFEGammaProducer.cc
Expand Up @@ -228,12 +228,6 @@ PFEGammaProducer::beginRun(const edm::Run & run,


//pfAlgo_->setPFPhotonRegWeights(ReaderLC_, ReaderGC_, ReaderRes_);
setPFPhotonRegWeights(ReaderLCEB_,
ReaderLCEE_,
ReaderGCBarrel_,
ReaderGCEndCapHighr9_,
ReaderGCEndCapLowr9_,
ReaderEcalRes_ );

}

Expand Down Expand Up @@ -486,18 +480,6 @@ void PFAlgo::setPFPhotonRegWeights(
pfpho_->setGBRForest(LCorrForest, GCorrForest, ResForest);
}
*/
void PFEGammaProducer::setPFPhotonRegWeights(
const GBRForest *LCorrForestEB,
const GBRForest *LCorrForestEE,
const GBRForest *GCorrForestBarrel,
const GBRForest *GCorrForestEndcapHr9,
const GBRForest *GCorrForestEndcapLr9,
const GBRForest *PFEcalResolution
){
pfeg_->setGBRForest(LCorrForestEB,LCorrForestEE,
GCorrForestBarrel, GCorrForestEndcapHr9,
GCorrForestEndcapLr9, PFEcalResolution);
}

void
PFEGammaProducer::setPFVertexParameters(bool useVertex,
Expand Down
9 changes: 0 additions & 9 deletions RecoParticleFlow/PFProducer/plugins/PFEGammaProducer.h
Expand Up @@ -63,15 +63,6 @@ class PFEGammaProducer : public edm::EDProducer {
void setPFVertexParameters(bool useVertex,
const reco::VertexCollection* primaryVertices);

void setPFPhotonRegWeights(
const GBRForest *LCorrForestEB,
const GBRForest *LCorrForestEE,
const GBRForest *GCorrForestBarrel,
const GBRForest *GCorrForestEndcapHr9,
const GBRForest *GCorrForestEndcapLr9,
const GBRForest *PFEcalResolution
);

edm::EDGetTokenT<reco::PFBlockCollection> inputTagBlocks_;
edm::EDGetTokenT<reco::PFCluster::EEtoPSAssociation> eetopsSrc_;
edm::EDGetTokenT<reco::VertexCollection> vertices_;
Expand Down

0 comments on commit 761de18

Please sign in to comment.