Skip to content

Commit

Permalink
Merge pull request #10317 from lgray/remove_useless_bdts_75X
Browse files Browse the repository at this point in the history
Remove vestigial (and huge) GBRForest when running with PFEGAlgo (75X)
  • Loading branch information
cmsbuild committed Jul 28, 2015
2 parents 2acfe5e + 3a675d0 commit bbbaeda
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
8 changes: 5 additions & 3 deletions RecoParticleFlow/PFProducer/plugins/PFEGammaProducer.cc
Expand Up @@ -207,7 +207,9 @@ PFEGammaProducer::beginRun(const edm::Run & run,
const edm::EventSetup & es)
{

/* // kept for historical reasons
if(useRegressionFromDB_) {
edm::ESHandle<GBRForest> readerPFLCEB;
edm::ESHandle<GBRForest> readerPFLCEE;
edm::ESHandle<GBRForest> readerPFGCEB;
Expand All @@ -227,11 +229,11 @@ PFEGammaProducer::beginRun(const edm::Run & run,
es.get<GBRWrapperRcd>().get("PFEcalResolution",readerPFRes);
ReaderEcalRes_=readerPFRes.product();
/*
LogDebug("PFEGammaProducer")<<"setting regressions from DB "<<std::endl;
*/
}

*/

//pfAlgo_->setPFPhotonRegWeights(ReaderLC_, ReaderGC_, ReaderRes_);

Expand Down
12 changes: 6 additions & 6 deletions RecoParticleFlow/PFProducer/plugins/PFEGammaProducer.h
Expand Up @@ -81,12 +81,12 @@ class PFEGammaProducer : public edm::stream::EDProducer<> {
const GBRForest* ReaderGC_;
const GBRForest* ReaderLC_;
const GBRForest* ReaderRes_;
const GBRForest* ReaderLCEB_;
const GBRForest* ReaderLCEE_;
const GBRForest* ReaderGCBarrel_;
const GBRForest* ReaderGCEndCapHighr9_;
const GBRForest* ReaderGCEndCapLowr9_;
const GBRForest* ReaderEcalRes_;
//const GBRForest* ReaderLCEB_;
//const GBRForest* ReaderLCEE_;
//const GBRForest* ReaderGCBarrel_;
//const GBRForest* ReaderGCEndCapHighr9_;
//const GBRForest* ReaderGCEndCapLowr9_;
//const GBRForest* ReaderEcalRes_;
// what about e/g electrons ?
bool useEGammaElectrons_;

Expand Down
2 changes: 1 addition & 1 deletion RecoParticleFlow/PFProducer/plugins/PFProducer.cc
Expand Up @@ -454,7 +454,7 @@ PFProducer::beginRun(const edm::Run & run,
}
*/

if(useRegressionFromDB_) {
if(usePFPhotons_ && useRegressionFromDB_) {
edm::ESHandle<GBRForest> readerPFLCEB;
edm::ESHandle<GBRForest> readerPFLCEE;
edm::ESHandle<GBRForest> readerPFGCEB;
Expand Down

0 comments on commit bbbaeda

Please sign in to comment.