Skip to content

Commit 323efe4

Browse files
committed
Merge pull request cms-sw#1644 from lgray/fixes_for_pre10
Reco fixes -- Cleanup of Old MVA assignment / kill dead code / bugfixes
2 parents a4b6ffa + 4261d3f commit 323efe4

File tree

4 files changed

+133
-620
lines changed

4 files changed

+133
-620
lines changed

RecoParticleFlow/PFProducer/interface/PFEGammaAlgo.h

+2-47
Original file line numberDiff line numberDiff line change
@@ -132,32 +132,6 @@ class PFEGammaAlgo {
132132
eetops_ = eetops;
133133
}
134134

135-
void setGBRForest(const GBRForest *LCorrForest,
136-
const GBRForest *GCorrForest,
137-
const GBRForest *ResForest
138-
)
139-
{
140-
ReaderLC_=LCorrForest;
141-
ReaderGC_=GCorrForest;
142-
ReaderRes_=ResForest;
143-
}
144-
145-
void setGBRForest(
146-
const GBRForest *LCorrForestEB,
147-
const GBRForest *LCorrForestEE,
148-
const GBRForest *GCorrForestBarrel,
149-
const GBRForest *GCorrForestEndcapHr9,
150-
const GBRForest *GCorrForestEndcapLr9,
151-
const GBRForest *PFEcalResolution
152-
)
153-
{
154-
ReaderLCEB_=LCorrForestEB;
155-
ReaderLCEE_=LCorrForestEE;
156-
ReaderGCEB_=GCorrForestBarrel;
157-
ReaderGCEEhR9_=GCorrForestEndcapHr9;
158-
ReaderGCEElR9_=GCorrForestEndcapLr9;
159-
ReaderRes_=PFEcalResolution;
160-
}
161135
void setnPU(int nVtx){
162136
nVtx_=nVtx;
163137
}
@@ -171,9 +145,7 @@ class PFEGammaAlgo {
171145

172146
//check candidate validity
173147
bool isEGValidCandidate(const reco::PFBlockRef& blockRef,
174-
std::vector< bool >& active
175-
// std::auto_ptr< reco::PFCandidateCollection > &pfElectronCandidates_
176-
){
148+
std::vector< bool >& active){
177149
RunPFEG(blockRef,active);
178150
return (egCandidate_.size()>0);
179151
};
@@ -271,8 +243,7 @@ class PFEGammaAlgo {
271243
void linkRefinableObjectConvSecondaryKFsToSecondaryKFs(ProtoEGObject&);
272244
void linkRefinableObjectSecondaryKFsToECAL(ProtoEGObject&);
273245
// helper function for above
274-
const PFClusterElement*
275-
linkKFTrackToECAL(const PFKFFlaggedElement&, ProtoEGObject&);
246+
void linkKFTrackToECAL(const PFKFFlaggedElement&, ProtoEGObject&);
276247

277248
// refining steps doing the ECAL -> track piece
278249
// this is the factorization of the old PF photon algo stuff
@@ -417,22 +388,6 @@ class PFEGammaAlgo {
417388
bool EvaluateSingleLegMVA(const reco::PFBlockRef& blockref,
418389
const reco::Vertex& primaryvtx,
419390
unsigned int track_index);
420-
421-
double ClustersPhiRMS(const std::vector<reco::CaloCluster>& PFClusters,
422-
float PFPhoPhi) const ;
423-
float EvaluateLCorrMVA(const reco::PFClusterRef& clusterRef );
424-
float EvaluateGCorrMVA(const reco::PFCandidate&,
425-
const std::vector<reco::CaloCluster>& PFClusters) ;
426-
float EvaluateResMVA(const reco::PFCandidate& ,
427-
const std::vector<reco::CaloCluster>& PFClusters ) ;
428-
429-
void EarlyConversion(
430-
//std::auto_ptr< reco::PFCandidateCollection >
431-
//&pfElectronCandidates_,
432-
const std::vector<reco::PFCandidate>&
433-
tempElectronCandidates,
434-
const reco::PFBlockElementSuperCluster* sc
435-
);
436391
};
437392

438393
#endif

RecoParticleFlow/PFProducer/plugins/PFEGammaProducer.cc

-18
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,6 @@ PFEGammaProducer::beginRun(const edm::Run & run,
228228

229229

230230
//pfAlgo_->setPFPhotonRegWeights(ReaderLC_, ReaderGC_, ReaderRes_);
231-
setPFPhotonRegWeights(ReaderLCEB_,
232-
ReaderLCEE_,
233-
ReaderGCBarrel_,
234-
ReaderGCEndCapHighr9_,
235-
ReaderGCEndCapLowr9_,
236-
ReaderEcalRes_ );
237231

238232
}
239233

@@ -486,18 +480,6 @@ void PFAlgo::setPFPhotonRegWeights(
486480
pfpho_->setGBRForest(LCorrForest, GCorrForest, ResForest);
487481
}
488482
*/
489-
void PFEGammaProducer::setPFPhotonRegWeights(
490-
const GBRForest *LCorrForestEB,
491-
const GBRForest *LCorrForestEE,
492-
const GBRForest *GCorrForestBarrel,
493-
const GBRForest *GCorrForestEndcapHr9,
494-
const GBRForest *GCorrForestEndcapLr9,
495-
const GBRForest *PFEcalResolution
496-
){
497-
pfeg_->setGBRForest(LCorrForestEB,LCorrForestEE,
498-
GCorrForestBarrel, GCorrForestEndcapHr9,
499-
GCorrForestEndcapLr9, PFEcalResolution);
500-
}
501483

502484
void
503485
PFEGammaProducer::setPFVertexParameters(bool useVertex,

RecoParticleFlow/PFProducer/plugins/PFEGammaProducer.h

-9
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,6 @@ class PFEGammaProducer : public edm::EDProducer {
6363
void setPFVertexParameters(bool useVertex,
6464
const reco::VertexCollection* primaryVertices);
6565

66-
void setPFPhotonRegWeights(
67-
const GBRForest *LCorrForestEB,
68-
const GBRForest *LCorrForestEE,
69-
const GBRForest *GCorrForestBarrel,
70-
const GBRForest *GCorrForestEndcapHr9,
71-
const GBRForest *GCorrForestEndcapLr9,
72-
const GBRForest *PFEcalResolution
73-
);
74-
7566
edm::EDGetTokenT<reco::PFBlockCollection> inputTagBlocks_;
7667
edm::EDGetTokenT<reco::PFCluster::EEtoPSAssociation> eetopsSrc_;
7768
edm::EDGetTokenT<reco::VertexCollection> vertices_;

0 commit comments

Comments
 (0)