Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tau]: add parameter to isolation module #15707

Merged
merged 1 commit into from Sep 6, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -39,6 +39,12 @@ class PFRecoTauDiscriminationByIsolation : public PFTauDiscriminationProducerBas
calculateWeights_ = pset.exists("ApplyDiscriminationByWeightedECALIsolation") ?
pset.getParameter<bool>("ApplyDiscriminationByWeightedECALIsolation") : false;

// RIC: multiply neutral isolation by a flat factor.
// Useful, for instance, to combine charged and neutral isolations
// with different relative weights
weightGammas_ = pset.exists("WeightECALIsolation") ?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This module really should be switched to use fillDescriptions.

pset.getParameter<double>("WeightECALIsolation") : 1.0;

// RIC: allow to relax the isolation completely beyond a given tau pt
minPtForNoIso_ = pset.exists("minTauPtForNoIso") ?
pset.getParameter<double>("minTauPtForNoIso") : -99.;
Expand Down Expand Up @@ -219,6 +225,7 @@ class PFRecoTauDiscriminationByIsolation : public PFTauDiscriminationProducerBas
bool includeTracks_;
bool includeGammas_;
bool calculateWeights_;
double weightGammas_;
bool applyOccupancyCut_;
uint32_t maximumOccupancy_;
bool applySumPtCut_;
Expand Down Expand Up @@ -559,7 +566,7 @@ PFRecoTauDiscriminationByIsolation::discriminate(const PFTauRef& pfTau) const
neutralPt = 0.;
}

totalPt = chargedPt + neutralPt;
totalPt = chargedPt + weightGammas_ * neutralPt;
LogTrace("discriminate") << "totalPt = " << totalPt << " (cut = " << maximumSumPt_ << ")" ;

failsSumPtCut = (totalPt > maximumSumPt_);
Expand Down
Expand Up @@ -15,6 +15,7 @@
ApplyDiscriminationByECALIsolation = cms.bool(True), # use PFGammas when isolating
ApplyDiscriminationByTrackerIsolation = cms.bool(True), # use PFChargedHadr when isolating
ApplyDiscriminationByWeightedECALIsolation = cms.bool(False), #do not use pileup weighting of neutral deposits by default
WeightECALIsolation = cms.double(1.), # apply a flat, overall weight to ECAL isolation. Useful to combine charged and neutral isolations with different relative weights. Default 1.

applyOccupancyCut = cms.bool(True), # apply a cut on number of isolation objects
maximumOccupancy = cms.uint32(0), # no tracks > 1 GeV or gammas > 1.5 GeV allowed
Expand Down