Skip to content

Commit

Permalink
Merge pull request #11283 from bachtis/METZEROFIX_75X
Browse files Browse the repository at this point in the history
Fix in PF reconstruction for the  spike at MET=0.0 - 75X version of #11280
  • Loading branch information
cmsbuild committed Sep 18, 2015
2 parents c4fc9b9 + e91e222 commit c2cdca0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ class PFRecHitQTestHCALThresholdVsDepth : public PFRecHitQTestBase {
if (detid.depth() == depths_[i]) {
if ( energy<thresholds_[i])
{
clean=true;
clean=false;
return false;
}
break;
Expand Down
8 changes: 5 additions & 3 deletions RecoParticleFlow/PFProducer/plugins/PFProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ PFProducer::PFProducer(const edm::ParameterSet& iConfig) {
pfAlgo_->setPFMuonAndFakeParameters(iConfig);

//Post cleaning of the HF
bool postHFCleaning
postHFCleaning_
= iConfig.getParameter<bool>("postHFCleaning");
double minHFCleaningPt
= iConfig.getParameter<double>("minHFCleaningPt");
Expand All @@ -368,7 +368,7 @@ PFProducer::PFProducer(const edm::ParameterSet& iConfig) {
= iConfig.getParameter<double>("minDeltaMet");

// Set post HF cleaning muon parameters
pfAlgo_->setPostHFCleaningParameters(postHFCleaning,
pfAlgo_->setPostHFCleaningParameters(postHFCleaning_,
minHFCleaningPt,
minSignificance,
maxSignificance,
Expand Down Expand Up @@ -617,7 +617,9 @@ PFProducer::produce(Event& iEvent,
hfCopy.push_back( (*hfCleaned)[jhf] );
}
}
pfAlgo_->checkCleaning( hfCopy );

if (postHFCleaning_)
pfAlgo_->checkCleaning( hfCopy );

// Save recovered HF candidates
auto_ptr< reco::PFCandidateCollection >
Expand Down
2 changes: 2 additions & 0 deletions RecoParticleFlow/PFProducer/plugins/PFProducer.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ class PFProducer : public edm::stream::EDProducer<> {
// Take PF cluster calibrations from Global Tag ?
bool useCalibrationsFromDB_;


bool postHFCleaning_;
// Name of the calibration functions to read from the database
// std::vector<std::string> fToRead;

Expand Down

0 comments on commit c2cdca0

Please sign in to comment.