CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Static Public Member Functions | Private Attributes
PFRecoTauDiscriminationByIsolation Class Reference
Inheritance diagram for PFRecoTauDiscriminationByIsolation:
TauDiscriminationProducerBase< TauType, TauDiscriminator, TauDiscriminatorDataType, ConsumeType > edm::stream::EDProducer<>

Classes

struct  FootprintCorrection
 

Public Member Functions

void beginEvent (const edm::Event &evt, const edm::EventSetup &evtSetup) override
 
double discriminate (const PFTauRef &pfTau) const override
 
 PFRecoTauDiscriminationByIsolation (const edm::ParameterSet &pset)
 
double weightedSum (const std::vector< CandidatePtr > &inColl_, double eta, double phi) const
 
 ~PFRecoTauDiscriminationByIsolation () override
 
- Public Member Functions inherited from TauDiscriminationProducerBase< TauType, TauDiscriminator, TauDiscriminatorDataType, ConsumeType >
virtual TauDiscriminatorDataType discriminate (const TauRef &tau) const =0
 
virtual void endEvent (edm::Event &)
 
void produce (edm::Event &, const edm::EventSetup &) override
 
 TauDiscriminationProducerBase ()
 
 TauDiscriminationProducerBase (const edm::ParameterSet &iConfig)
 
 ~TauDiscriminationProducerBase () override
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndRuns () const final
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from TauDiscriminationProducerBase< TauType, TauDiscriminator, TauDiscriminatorDataType, ConsumeType >
static void fillProducerDescriptions (edm::ParameterSetDescription &desc)
 
static std::string getTauTypeString ()
 helper method to retrieve tau type name, e.g. to build correct cfi getter More...
 

Private Attributes

bool applyDeltaBeta_
 
bool applyFootprintCorrection_
 
bool applyOccupancyCut_
 
bool applyPhotonPtSumOutsideSignalConeCut_
 
bool applyRelativeSumPtCut_
 
bool applyRhoCorrection_
 
bool applySumPtCut_
 
bool calculateWeights_
 
std::vector< reco::CandidatePtrchargedPFCandidatesInEvent_
 
double customIsoCone_
 
double deltaBetaCollectionCone_
 
double deltaBetaFactorThisEvent_
 
std::unique_ptr< TFormula > deltaBetaFormula_
 
std::vector< std::unique_ptr< FootprintCorrection > > footprintCorrections_
 
bool includeGammas_
 
bool includeTracks_
 
double maxAbsPhotonSumPt_outsideSignalCone_
 
uint32_t maximumOccupancy_
 
double maximumRelativeSumPt_
 
double maximumSumPt_
 
double maxRelPhotonSumPt_outsideSignalCone_
 
double minPtForNoIso_
 
std::string moduleLabel_
 
double offsetRelativeSumPt_
 
edm::EDGetTokenT< edm::View< reco::Candidate > > pfCand_token
 
edm::InputTag pfCandSrc_
 
std::unique_ptr< tau::RecoTauQualityCutspileupQcutsGeneralQCuts_
 
std::unique_ptr< tau::RecoTauQualityCutspileupQcutsPUTrackSelection_
 
std::unique_ptr< tau::RecoTauQualityCutsqcuts_
 
edm::ParameterSet qualityCutsPSet_
 
edm::EDGetTokenT< double > rho_token
 
double rhoConeSize_
 
double rhoCorrectionThisEvent_
 
edm::InputTag rhoProducer_
 
double rhoThisEvent_
 
double rhoUEOffsetCorrection_
 
bool storeRawFootprintCorrection_
 
bool storeRawOccupancy_
 
bool storeRawPhotonSumPt_outsideSignalCone_
 
bool storeRawPUsumPt_
 
bool storeRawSumPt_
 
bool useAllPFCands_
 
int verbosity_
 
edm::EDGetTokenT< reco::VertexCollectionvertex_token
 
std::unique_ptr< tau::RecoTauVertexAssociatorvertexAssociator_
 
edm::InputTag vertexSrc_
 
double weightGammas_
 

Additional Inherited Members

- Public Types inherited from TauDiscriminationProducerBase< TauType, TauDiscriminator, TauDiscriminatorDataType, ConsumeType >
typedef std::vector< TauType > TauCollection
 
typedef edm::Ref< TauCollectionTauRef
 
typedef edm::RefProd< TauCollectionTauRefProd
 
- Public Types inherited from edm::stream::EDProducer<>
typedef CacheContexts< T... > CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T... > HasAbility
 
typedef CacheTypes::LuminosityBlockCache LuminosityBlockCache
 
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Protected Attributes inherited from TauDiscriminationProducerBase< TauType, TauDiscriminator, TauDiscriminatorDataType, ConsumeType >
std::string moduleLabel_
 
double prediscriminantFailValue_
 
edm::EDGetTokenT< TauCollectionTau_token
 
size_t tauIndex_
 
edm::InputTag TauProducer_
 

Detailed Description

Definition at line 28 of file PFRecoTauDiscriminationByIsolation.cc.

Constructor & Destructor Documentation

◆ PFRecoTauDiscriminationByIsolation()

PFRecoTauDiscriminationByIsolation::PFRecoTauDiscriminationByIsolation ( const edm::ParameterSet pset)
inlineexplicit

Definition at line 30 of file PFRecoTauDiscriminationByIsolation.cc.

32  moduleLabel_(pset.getParameter<std::string>("@module_label")),
33  qualityCutsPSet_(pset.getParameter<edm::ParameterSet>("qualityCuts")) {
34  includeTracks_ = pset.getParameter<bool>("ApplyDiscriminationByTrackerIsolation");
35  includeGammas_ = pset.getParameter<bool>("ApplyDiscriminationByECALIsolation");
36 
37  calculateWeights_ = pset.getParameter<bool>("ApplyDiscriminationByWeightedECALIsolation");
38 
39  // RIC: multiply neutral isolation by a flat factor.
40  // Useful, for instance, to combine charged and neutral isolations
41  // with different relative weights
42  weightGammas_ = pset.getParameter<double>("WeightECALIsolation");
43 
44  // RIC: allow to relax the isolation completely beyond a given tau pt
45  minPtForNoIso_ = pset.getParameter<double>("minTauPtForNoIso");
46 
47  applyOccupancyCut_ = pset.getParameter<bool>("applyOccupancyCut");
48  maximumOccupancy_ = pset.getParameter<uint32_t>("maximumOccupancy");
49 
50  applySumPtCut_ = pset.getParameter<bool>("applySumPtCut");
51  maximumSumPt_ = pset.getParameter<double>("maximumSumPtCut");
52 
53  applyRelativeSumPtCut_ = pset.getParameter<bool>("applyRelativeSumPtCut");
54  maximumRelativeSumPt_ = pset.getParameter<double>("relativeSumPtCut");
55  offsetRelativeSumPt_ = pset.getParameter<double>("relativeSumPtOffset");
56 
57  storeRawOccupancy_ = pset.getParameter<bool>("storeRawOccupancy");
58  storeRawSumPt_ = pset.getParameter<bool>("storeRawSumPt");
59  storeRawPUsumPt_ = pset.getParameter<bool>("storeRawPUsumPt");
60  storeRawFootprintCorrection_ = pset.getParameter<bool>("storeRawFootprintCorrection");
61  storeRawPhotonSumPt_outsideSignalCone_ = pset.getParameter<bool>("storeRawPhotonSumPt_outsideSignalCone");
62 
63  // Sanity check on requested options. We can't apply cuts and store the
64  // raw output at the same time
67  throw cms::Exception("BadIsoConfig") << "A 'store raw' and a 'apply cut' option have been set to true "
68  << "simultaneously. These options are mutually exclusive.";
69  }
70  }
71 
72  // sanity check2 - can't use weighted and unweighted iso at the same time
74  throw cms::Exception("BasIsoConfig")
75  << "Both 'ApplyDiscriminationByECALIsolation' and 'ApplyDiscriminationByWeightedECALIsolation' "
76  << "have been set to true. These options are mutually exclusive.";
77  }
78 
79  // Can only store one type
80  int numStoreOptions = 0;
81  if (storeRawSumPt_)
82  ++numStoreOptions;
84  ++numStoreOptions;
85  if (storeRawPUsumPt_)
86  ++numStoreOptions;
88  ++numStoreOptions;
90  ++numStoreOptions;
91  if (numStoreOptions > 1) {
92  throw cms::Exception("BadIsoConfig") << "Multiple 'store sum pt' and/or 'store occupancy' options are set."
93  << " These options are mutually exclusive.";
94  }
95 
96  customIsoCone_ = pset.getParameter<double>("customOuterCone");
97 
98  applyPhotonPtSumOutsideSignalConeCut_ = pset.getParameter<bool>("applyPhotonPtSumOutsideSignalConeCut");
100  maxAbsPhotonSumPt_outsideSignalCone_ = pset.getParameter<double>("maxAbsPhotonSumPt_outsideSignalCone");
101  maxRelPhotonSumPt_outsideSignalCone_ = pset.getParameter<double>("maxRelPhotonSumPt_outsideSignalCone");
102  }
103 
104  applyFootprintCorrection_ = pset.getParameter<bool>("applyFootprintCorrection");
106  edm::VParameterSet cfgFootprintCorrections = pset.getParameter<edm::VParameterSet>("footprintCorrections");
107  for (edm::VParameterSet::const_iterator cfgFootprintCorrection = cfgFootprintCorrections.begin();
108  cfgFootprintCorrection != cfgFootprintCorrections.end();
109  ++cfgFootprintCorrection) {
110  std::string selection = cfgFootprintCorrection->getParameter<std::string>("selection");
111  std::string offset = cfgFootprintCorrection->getParameter<std::string>("offset");
112  std::unique_ptr<FootprintCorrection> footprintCorrection(new FootprintCorrection(selection, offset));
113  footprintCorrections_.push_back(std::move(footprintCorrection));
114  }
115  }
116 
117  // Get the quality cuts specific to the isolation region
118  edm::ParameterSet isolationQCuts = qualityCutsPSet_.getParameterSet("isolationQualityCuts");
119 
120  qcuts_.reset(new tau::RecoTauQualityCuts(isolationQCuts));
121 
122  vertexAssociator_.reset(new tau::RecoTauVertexAssociator(qualityCutsPSet_, consumesCollector()));
123 
124  applyDeltaBeta_ = pset.getParameter<bool>("applyDeltaBetaCorrection");
125 
127  // Factorize the isolation QCuts into those that are used to
128  // select PU and those that are not.
129  std::pair<edm::ParameterSet, edm::ParameterSet> puFactorizedIsoQCuts =
130  reco::tau::factorizePUQCuts(isolationQCuts);
131 
132  // Determine the pt threshold for the PU tracks
133  // First check if the user specifies explicitly the cut.
134  // For that the user has to provide a >= 0 value for the PtCutOverride.
135  bool deltaBetaPUTrackPtCutOverride = pset.getParameter<bool>("deltaBetaPUTrackPtCutOverride");
137  double deltaBetaPUTrackPtCutOverride_val = pset.getParameter<double>("deltaBetaPUTrackPtCutOverride_val");
138  puFactorizedIsoQCuts.second.addParameter<double>("minTrackPt", deltaBetaPUTrackPtCutOverride_val);
139  } else {
140  // Secondly take it from the minGammaEt
141  puFactorizedIsoQCuts.second.addParameter<double>("minTrackPt",
142  isolationQCuts.getParameter<double>("minGammaEt"));
143  }
144 
145  pileupQcutsPUTrackSelection_.reset(new tau::RecoTauQualityCuts(puFactorizedIsoQCuts.first));
146 
147  pileupQcutsGeneralQCuts_.reset(new tau::RecoTauQualityCuts(puFactorizedIsoQCuts.second));
148 
149  pfCandSrc_ = pset.getParameter<edm::InputTag>("particleFlowSrc");
150  pfCand_token = consumes<edm::View<reco::Candidate> >(pfCandSrc_);
151  vertexSrc_ = pset.getParameter<edm::InputTag>("vertexSrc");
152  vertex_token = consumes<reco::VertexCollection>(vertexSrc_);
153  deltaBetaCollectionCone_ = pset.getParameter<double>("isoConeSizeForDeltaBeta");
154  std::string deltaBetaFactorFormula = pset.getParameter<string>("deltaBetaFactor");
155  deltaBetaFormula_.reset(new TFormula("DB_corr", deltaBetaFactorFormula.c_str()));
156  }
157 
158  applyRhoCorrection_ = pset.getParameter<bool>("applyRhoCorrection");
159  if (applyRhoCorrection_) {
160  rhoProducer_ = pset.getParameter<edm::InputTag>("rhoProducer");
161  rho_token = consumes<double>(rhoProducer_);
162  rhoConeSize_ = pset.getParameter<double>("rhoConeSize");
163  rhoUEOffsetCorrection_ = pset.getParameter<double>("rhoUEOffsetCorrection");
164  }
165  useAllPFCands_ = pset.getParameter<bool>("UseAllPFCandsForWeights");
166 
167  verbosity_ = pset.getParameter<int>("verbosity");
168  }

References HLT_2018_cff::deltaBetaPUTrackPtCutOverride, HLT_2018_cff::deltaBetaPUTrackPtCutOverride_val, Exception, reco::tau::factorizePUQCuts(), edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterSet(), eostools::move(), hltrates_dqm_sourceclient-live_cfg::offset, muonDTDigis_cfi::pset, corrVsCorr::selection, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ ~PFRecoTauDiscriminationByIsolation()

PFRecoTauDiscriminationByIsolation::~PFRecoTauDiscriminationByIsolation ( )
inlineoverride

Definition at line 170 of file PFRecoTauDiscriminationByIsolation.cc.

170 {}

Member Function Documentation

◆ beginEvent()

void PFRecoTauDiscriminationByIsolation::beginEvent ( const edm::Event evt,
const edm::EventSetup evtSetup 
)
overridevirtual

Reimplemented from TauDiscriminationProducerBase< TauType, TauDiscriminator, TauDiscriminatorDataType, ConsumeType >.

Definition at line 266 of file PFRecoTauDiscriminationByIsolation.cc.

266  {
267  // NB: The use of the PV in this context is necessitated by its use in
268  // applying quality cuts to the different objects in the isolation cone
269  // The vertex associator contains the logic to select the appropriate vertex
270  // We need to pass it the event so it can load the vertices.
271  vertexAssociator_->setEvent(event);
272 
273  // If we are applying the delta beta correction, we need to get the PF
274  // candidates from the event so we can find the PU tracks.
276  // Collect all the PF pile up tracks
278  event.getByToken(pfCand_token, pfCandidates);
280  chargedPFCandidatesInEvent_.reserve(pfCandidates->size());
281  size_t numPFCandidates = pfCandidates->size();
282  for (size_t i = 0; i < numPFCandidates; ++i) {
283  reco::CandidatePtr pfCandidate(pfCandidates, i);
284  if (pfCandidate->charge() != 0) {
285  chargedPFCandidatesInEvent_.push_back(pfCandidate);
286  }
287  }
288  // Count all the vertices in the event, to parameterize the DB
289  // correction factor
291  event.getByToken(vertex_token, vertices);
292  size_t nVtxThisEvent = vertices->size();
293  deltaBetaFactorThisEvent_ = deltaBetaFormula_->Eval(nVtxThisEvent);
294  }
295 
296  if (applyRhoCorrection_) {
297  edm::Handle<double> rhoHandle_;
298  event.getByToken(rho_token, rhoHandle_);
299  rhoThisEvent_ = (*rhoHandle_ - rhoUEOffsetCorrection_) * (3.14159) * rhoConeSize_ * rhoConeSize_;
300  }
301 }

References reco::Candidate::charge(), mps_fire::i, zmumugammaAnalyzer_cfi::pfCandidates, and pwdgSkimBPark_cfi::vertices.

◆ discriminate()

double PFRecoTauDiscriminationByIsolation::discriminate ( const PFTauRef pfTau) const
override

Definition at line 303 of file PFRecoTauDiscriminationByIsolation.cc.

303  {
304  LogDebug("discriminate") << " tau: Pt = " << pfTau->pt() << ", eta = " << pfTau->eta() << ", phi = " << pfTau->phi();
305  LogDebug("discriminate") << *pfTau;
306 
307  // collect the objects we are working with (ie tracks, tracks+gammas, etc)
308  std::vector<CandidatePtr> isoCharged_;
309  std::vector<CandidatePtr> isoNeutral_;
310  std::vector<CandidatePtr> isoPU_;
311  CandidateCollection isoNeutralWeight_;
312  std::vector<CandidatePtr> chPV_;
313  isoCharged_.reserve(pfTau->isolationChargedHadrCands().size());
314  isoNeutral_.reserve(pfTau->isolationGammaCands().size());
315  isoPU_.reserve(std::min(100UL, chargedPFCandidatesInEvent_.size()));
316  isoNeutralWeight_.reserve(pfTau->isolationGammaCands().size());
317 
318  chPV_.reserve(std::min(50UL, chargedPFCandidatesInEvent_.size()));
319 
320  // Get the primary vertex associated to this tau
321  reco::VertexRef pv = vertexAssociator_->associatedVertex(*pfTau);
322  // Let the quality cuts know which the vertex to use when applying selections
323  // on dz, etc.
324  if (verbosity_) {
325  if (pv.isNonnull()) {
326  LogTrace("discriminate") << "pv: x = " << pv->position().x() << ", y = " << pv->position().y()
327  << ", z = " << pv->position().z();
328  } else {
329  LogTrace("discriminate") << "pv: N/A";
330  }
331  if (pfTau->leadChargedHadrCand().isNonnull()) {
332  LogTrace("discriminate") << "leadPFChargedHadron:"
333  << " Pt = " << pfTau->leadChargedHadrCand()->pt() << ","
334  << " eta = " << pfTau->leadChargedHadrCand()->eta() << ","
335  << " phi = " << pfTau->leadChargedHadrCand()->phi();
336  } else {
337  LogTrace("discriminate") << "leadPFChargedHadron: N/A";
338  }
339  }
340 
341  // CV: isolation is not well defined in case primary vertex or leading charged hadron do not exist
342  if (!(pv.isNonnull() && pfTau->leadChargedHadrCand().isNonnull()))
343  return 0.;
344 
345  qcuts_->setPV(pv);
346  qcuts_->setLeadTrack(*pfTau->leadChargedHadrCand());
347 
350  pileupQcutsGeneralQCuts_->setLeadTrack(*pfTau->leadChargedHadrCand());
352  pileupQcutsPUTrackSelection_->setLeadTrack(*pfTau->leadChargedHadrCand());
353  }
354 
355  // Load the tracks if they are being used.
356  if (includeTracks_) {
357  for (auto const& cand : pfTau->isolationChargedHadrCands()) {
358  if (qcuts_->filterCandRef(cand)) {
359  LogTrace("discriminate") << "adding charged iso cand with pt " << cand->pt();
360  isoCharged_.push_back(cand);
361  }
362  }
363  }
365  for (auto const& cand : pfTau->isolationGammaCands()) {
366  if (qcuts_->filterCandRef(cand)) {
367  LogTrace("discriminate") << "adding neutral iso cand with pt " << cand->pt();
368  isoNeutral_.push_back(cand);
369  }
370  }
371  }
372 
375 
376  // If desired, get PU tracks.
378  // First select by inverted the DZ/track weight cuts. True = invert
379  if (verbosity_) {
380  std::cout << "Initial PFCands: " << chargedPFCandidatesInEvent_.size() << std::endl;
381  }
382 
383  std::vector<CandidatePtr> allPU = pileupQcutsPUTrackSelection_->filterCandRefs(chargedPFCandidatesInEvent_, true);
384 
385  std::vector<CandidatePtr> allNPU = pileupQcutsPUTrackSelection_->filterCandRefs(chargedPFCandidatesInEvent_);
386  LogTrace("discriminate") << "After track cuts: " << allPU.size();
387 
388  // Now apply the rest of the cuts, like pt, and TIP, tracker hits, etc
389  if (!useAllPFCands_) {
390  std::vector<CandidatePtr> cleanPU = pileupQcutsGeneralQCuts_->filterCandRefs(allPU);
391 
392  std::vector<CandidatePtr> cleanNPU = pileupQcutsGeneralQCuts_->filterCandRefs(allNPU);
393 
394  LogTrace("discriminate") << "After cleaning cuts: " << cleanPU.size();
395 
396  // Only select PU tracks inside the isolation cone.
397  DRFilter deltaBetaFilter(pfTau->p4(), 0, deltaBetaCollectionCone_);
398  for (auto const& cand : cleanPU) {
399  if (deltaBetaFilter(cand))
400  isoPU_.push_back(cand);
401  }
402 
403  for (auto const& cand : cleanNPU) {
404  if (deltaBetaFilter(cand))
405  chPV_.push_back(cand);
406  }
407  LogTrace("discriminate") << "After cone cuts: " << isoPU_.size() << " " << chPV_.size();
408  } else {
409  isoPU_ = std::move(allPU);
410  chPV_ = std::move(allNPU);
411  }
412  }
413 
414  if (calculateWeights_) {
415  for (auto const& isoObject : isoNeutral_) {
416  if (isoObject->charge() != 0) {
417  // weight only neutral objects
418  isoNeutralWeight_.push_back(*isoObject);
419  continue;
420  }
421 
422  double eta = isoObject->eta();
423  double phi = isoObject->phi();
424  double sumNPU = 0.5 * log(weightedSum(chPV_, eta, phi));
425 
426  double sumPU = 0.5 * log(weightedSum(isoPU_, eta, phi));
427  LeafCandidate neutral(*isoObject);
428  if ((sumNPU + sumPU) > 0)
429  neutral.setP4(((sumNPU) / (sumNPU + sumPU)) * neutral.p4());
430 
431  isoNeutralWeight_.push_back(neutral);
432  }
433  }
434 
435  // Check if we want a custom iso cone
436  if (customIsoCone_ >= 0.) {
437  DRFilter filter(pfTau->p4(), 0, customIsoCone_);
438  DRFilter2 filter2(pfTau->p4(), 0, customIsoCone_);
439  std::vector<CandidatePtr> isoCharged_filter;
440  std::vector<CandidatePtr> isoNeutral_filter;
441  CandidateCollection isoNeutralWeight_filter;
442  // Remove all the objects not in our iso cone
443  for (auto const& isoObject : isoCharged_) {
444  if (filter(isoObject))
445  isoCharged_filter.push_back(isoObject);
446  }
447  if (!calculateWeights_) {
448  for (auto const& isoObject : isoNeutral_) {
449  if (filter(isoObject))
450  isoNeutral_filter.push_back(isoObject);
451  }
452  isoNeutral_ = isoNeutral_filter;
453  } else {
454  for (auto const& isoObject : isoNeutralWeight_) {
455  if (filter2(isoObject))
456  isoNeutralWeight_filter.push_back(isoObject);
457  }
458  isoNeutralWeight_ = isoNeutralWeight_filter;
459  }
460  isoCharged_ = isoCharged_filter;
461  }
462 
463  bool failsOccupancyCut = false;
464  bool failsSumPtCut = false;
465  bool failsRelativeSumPtCut = false;
466 
467  //--- nObjects requirement
468  int neutrals = isoNeutral_.size();
469 
470  if (applyDeltaBeta_) {
471  neutrals -= TMath::Nint(deltaBetaFactorThisEvent_ * isoPU_.size());
472  }
473  if (neutrals < 0) {
474  neutrals = 0;
475  }
476 
477  size_t nOccupants = isoCharged_.size() + neutrals;
478 
479  failsOccupancyCut = (nOccupants > maximumOccupancy_);
480 
481  double footprintCorrection_value = 0.;
483  for (std::vector<std::unique_ptr<FootprintCorrection> >::const_iterator footprintCorrection =
484  footprintCorrections_.begin();
485  footprintCorrection != footprintCorrections_.end();
486  ++footprintCorrection) {
487  if ((*footprintCorrection)->selection_(*pfTau)) {
488  footprintCorrection_value = (*footprintCorrection)->offset_(*pfTau);
489  }
490  }
491  }
492 
493  double totalPt = 0.;
494  double puPt = 0.;
495  //--- Sum PT requirement
497  double chargedPt = 0.;
498  double neutralPt = 0.;
499  double weightedNeutralPt = 0.;
500  for (auto const& isoObject : isoCharged_) {
501  chargedPt += isoObject->pt();
502  }
503  if (!calculateWeights_) {
504  for (auto const& isoObject : isoNeutral_) {
505  neutralPt += isoObject->pt();
506  }
507  } else {
508  for (auto const& isoObject : isoNeutralWeight_) {
509  weightedNeutralPt += isoObject.pt();
510  }
511  }
512  for (auto const& isoObject : isoPU_) {
513  puPt += isoObject->pt();
514  }
515  LogTrace("discriminate") << "chargedPt = " << chargedPt;
516  LogTrace("discriminate") << "neutralPt = " << neutralPt;
517  LogTrace("discriminate") << "weighted neutral Pt = " << weightedNeutralPt;
518  LogTrace("discriminate") << "puPt = " << puPt << " (delta-beta corr. = " << (deltaBetaFactorThisEvent_ * puPt)
519  << ")";
520 
521  if (calculateWeights_) {
522  neutralPt = weightedNeutralPt;
523  }
524 
525  if (applyDeltaBeta_) {
526  neutralPt -= (deltaBetaFactorThisEvent_ * puPt);
527  }
528 
530  neutralPt -= footprintCorrection_value;
531  }
532 
533  if (applyRhoCorrection_) {
534  neutralPt -= rhoThisEvent_;
535  }
536 
537  if (neutralPt < 0.) {
538  neutralPt = 0.;
539  }
540 
541  totalPt = chargedPt + weightGammas_ * neutralPt;
542  LogTrace("discriminate") << "totalPt = " << totalPt << " (cut = " << maximumSumPt_ << ")";
543 
544  failsSumPtCut = (totalPt > maximumSumPt_);
545 
546  //--- Relative Sum PT requirement
547  failsRelativeSumPtCut = (totalPt > ((pfTau->pt() - offsetRelativeSumPt_) * maximumRelativeSumPt_));
548  }
549 
550  bool failsPhotonPtSumOutsideSignalConeCut = false;
551  double photonSumPt_outsideSignalCone = 0.;
553  const std::vector<reco::CandidatePtr>& signalGammas = pfTau->signalGammaCands();
554  for (std::vector<reco::CandidatePtr>::const_iterator signalGamma = signalGammas.begin();
555  signalGamma != signalGammas.end();
556  ++signalGamma) {
557  double dR = deltaR(pfTau->eta(), pfTau->phi(), (*signalGamma)->eta(), (*signalGamma)->phi());
558  if (dR > pfTau->signalConeSize())
559  photonSumPt_outsideSignalCone += (*signalGamma)->pt();
560  }
561  if (photonSumPt_outsideSignalCone > maxAbsPhotonSumPt_outsideSignalCone_ ||
562  photonSumPt_outsideSignalCone > (maxRelPhotonSumPt_outsideSignalCone_ * pfTau->pt())) {
563  failsPhotonPtSumOutsideSignalConeCut = true;
564  }
565  }
566 
567  bool fails = (applyOccupancyCut_ && failsOccupancyCut) || (applySumPtCut_ && failsSumPtCut) ||
568  (applyRelativeSumPtCut_ && failsRelativeSumPtCut) ||
569  (applyPhotonPtSumOutsideSignalConeCut_ && failsPhotonPtSumOutsideSignalConeCut);
570 
571  if (pfTau->pt() > minPtForNoIso_ && minPtForNoIso_ > 0.) {
572  return 1.;
573  LogDebug("discriminate") << "tau pt = " << pfTau->pt() << "\t min cutoff pt = " << minPtForNoIso_;
574  }
575 
576  // We did error checking in the constructor, so this is safe.
577  if (storeRawSumPt_) {
578  return totalPt;
579  } else if (storeRawPUsumPt_) {
580  if (applyDeltaBeta_)
581  return puPt;
582  else if (applyRhoCorrection_)
583  return rhoThisEvent_;
584  else
585  return 0.;
586  } else if (storeRawOccupancy_) {
587  return nOccupants;
588  } else if (storeRawFootprintCorrection_) {
589  return footprintCorrection_value;
591  return photonSumPt_outsideSignalCone;
592  } else {
593  return (fails ? 0. : 1.);
594  }
595 }

References gather_cfg::cout, reco::deltaR(), HGC3DClusterGenMatchSelector_cfi::dR, PVValHelper::eta, ALCARECOTkAlBeamHalo_cff::filter, edm::Ref< C, T, F >::isNonnull(), dqm-mbProfile::log, LogDebug, LogTrace, min(), eostools::move(), reco::LeafCandidate::p4(), edm::OwnVector< T, P >::push_back(), MetAnalyzer::pv(), edm::OwnVector< T, P >::reserve(), reco::LeafCandidate::setP4(), and edm::OwnVector< T, P >::size().

◆ fillDescriptions()

void PFRecoTauDiscriminationByIsolation::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 597 of file PFRecoTauDiscriminationByIsolation.cc.

597  {
598  // pfRecoTauDiscriminationByIsolation
600  desc.add<bool>("storeRawFootprintCorrection", false);
601  desc.add<edm::InputTag>("PFTauProducer", edm::InputTag("pfRecoTauProducer"));
602  desc.add<bool>("storeRawOccupancy", false);
603  desc.add<double>("maximumSumPtCut", 6.0);
604 
605  {
606  edm::ParameterSetDescription pset_signalQualityCuts;
607  pset_signalQualityCuts.add<double>("maxDeltaZ", 0.4);
608  pset_signalQualityCuts.add<double>("minTrackPt", 0.5);
609  pset_signalQualityCuts.add<double>("minTrackVertexWeight", -1.0);
610  pset_signalQualityCuts.add<double>("maxTrackChi2", 100.0);
611  pset_signalQualityCuts.add<unsigned int>("minTrackPixelHits", 0);
612  pset_signalQualityCuts.add<double>("minGammaEt", 1.0);
613  pset_signalQualityCuts.add<unsigned int>("minTrackHits", 3);
614  pset_signalQualityCuts.add<double>("minNeutralHadronEt", 30.0);
615  pset_signalQualityCuts.add<double>("maxTransverseImpactParameter", 0.1);
616  pset_signalQualityCuts.addOptional<bool>("useTracksInsteadOfPFHadrons");
617 
618  edm::ParameterSetDescription pset_vxAssocQualityCuts;
619  pset_vxAssocQualityCuts.add<double>("minTrackPt", 0.5);
620  pset_vxAssocQualityCuts.add<double>("minTrackVertexWeight", -1.0);
621  pset_vxAssocQualityCuts.add<double>("maxTrackChi2", 100.0);
622  pset_vxAssocQualityCuts.add<unsigned int>("minTrackPixelHits", 0);
623  pset_vxAssocQualityCuts.add<double>("minGammaEt", 1.0);
624  pset_vxAssocQualityCuts.add<unsigned int>("minTrackHits", 3);
625  pset_vxAssocQualityCuts.add<double>("maxTransverseImpactParameter", 0.1);
626  pset_vxAssocQualityCuts.addOptional<bool>("useTracksInsteadOfPFHadrons");
627 
628  edm::ParameterSetDescription pset_isolationQualityCuts;
629  pset_isolationQualityCuts.add<double>("maxDeltaZ", 0.2);
630  pset_isolationQualityCuts.add<double>("minTrackPt", 1.0);
631  pset_isolationQualityCuts.add<double>("minTrackVertexWeight", -1.0);
632  pset_isolationQualityCuts.add<double>("maxTrackChi2", 100.0);
633  pset_isolationQualityCuts.add<unsigned int>("minTrackPixelHits", 0);
634  pset_isolationQualityCuts.add<double>("minGammaEt", 1.5);
635  pset_isolationQualityCuts.add<unsigned int>("minTrackHits", 8);
636  pset_isolationQualityCuts.add<double>("maxTransverseImpactParameter", 0.03);
637  pset_isolationQualityCuts.addOptional<bool>("useTracksInsteadOfPFHadrons");
638 
639  edm::ParameterSetDescription pset_qualityCuts;
640  pset_qualityCuts.add<edm::ParameterSetDescription>("signalQualityCuts", pset_signalQualityCuts);
641  pset_qualityCuts.add<edm::ParameterSetDescription>("vxAssocQualityCuts", pset_vxAssocQualityCuts);
642  pset_qualityCuts.add<edm::ParameterSetDescription>("isolationQualityCuts", pset_isolationQualityCuts);
643  pset_qualityCuts.add<std::string>("leadingTrkOrPFCandOption", "leadPFCand");
644  pset_qualityCuts.add<std::string>("pvFindingAlgo", "closestInDeltaZ");
645  pset_qualityCuts.add<edm::InputTag>("primaryVertexSrc", edm::InputTag("offlinePrimaryVertices"));
646  pset_qualityCuts.add<bool>("vertexTrackFiltering", false);
647  pset_qualityCuts.add<bool>("recoverLeadingTrk", false);
648 
649  desc.add<edm::ParameterSetDescription>("qualityCuts", pset_qualityCuts);
650  }
651 
652  desc.add<double>("minTauPtForNoIso", -99.0);
653  desc.add<double>("maxAbsPhotonSumPt_outsideSignalCone", 1000000000.0);
654  desc.add<edm::InputTag>("vertexSrc", edm::InputTag("offlinePrimaryVertices"));
655  desc.add<bool>("applySumPtCut", false);
656  desc.add<double>("rhoConeSize", 0.5);
657  desc.add<bool>("ApplyDiscriminationByTrackerIsolation", true);
658  desc.add<bool>("storeRawPhotonSumPt_outsideSignalCone", false);
659  desc.add<edm::InputTag>("rhoProducer", edm::InputTag("fixedGridRhoFastjetAll"));
660 
661  {
663  vpsd1.add<std::string>("selection");
664  vpsd1.add<std::string>("offset");
665  desc.addVPSet("footprintCorrections", vpsd1, {});
666  }
667 
668  desc.add<std::string>("deltaBetaFactor", "0.38");
669  desc.add<bool>("applyFootprintCorrection", false);
670  desc.add<bool>("UseAllPFCandsForWeights", false);
671  desc.add<double>("relativeSumPtCut", 0.0);
672  {
673  edm::ParameterSetDescription pset_Prediscriminants;
674  pset_Prediscriminants.add<std::string>("BooleanOperator", "and");
675  {
677  psd1.add<double>("cut");
678  psd1.add<edm::InputTag>("Producer");
679  pset_Prediscriminants.addOptional<edm::ParameterSetDescription>("leadTrack", psd1);
680  }
681  {
682  // encountered this at
683  // RecoTauTag/Configuration/python/HPSPFTaus_cff.py
684  // Prediscriminants = requireDecayMode.clone(),
685  // requireDecayMode = cms.PSet(
686  // BooleanOperator = cms.string("and"),
687  // decayMode = cms.PSet(
688  // Producer = cms.InputTag('hpsPFTauDiscriminationByDecayModeFindingNewDMs'),
689  // cut = cms.double(0.5)
690  // )
691  // )
693  psd1.add<double>("cut");
694  psd1.add<edm::InputTag>("Producer");
695  pset_Prediscriminants.addOptional<edm::ParameterSetDescription>("decayMode", psd1);
696  }
697  {
698  // encountered this at
699  // RecoTauTag/Configuration/python/HPSPFTaus_cff.py
700  // Prediscriminants = requireDecayMode.clone(),
701  // hpsPFTauDiscriminationByLooseIsolation.Prediscriminants.preIso = cms.PSet(
702  // Producer = cms.InputTag("hpsPFTauDiscriminationByLooseChargedIsolation"),
703  // cut = cms.double(0.5)
704  // )
706  psd1.add<double>("cut");
707  psd1.add<edm::InputTag>("Producer");
708  pset_Prediscriminants.addOptional<edm::ParameterSetDescription>("preIso", psd1);
709  }
710  desc.add<edm::ParameterSetDescription>("Prediscriminants", pset_Prediscriminants);
711  }
712 
713  desc.add<unsigned int>("maximumOccupancy", 0);
714  desc.add<int>("verbosity", 0);
715 
716  desc.add<bool>("applyOccupancyCut", true);
717  desc.add<bool>("applyDeltaBetaCorrection", false);
718  desc.add<bool>("applyRelativeSumPtCut", false);
719  desc.add<bool>("storeRawPUsumPt", false);
720  desc.add<bool>("applyPhotonPtSumOutsideSignalConeCut", false);
721  desc.add<bool>("deltaBetaPUTrackPtCutOverride", false);
722  desc.add<bool>("ApplyDiscriminationByWeightedECALIsolation", false);
723  desc.add<bool>("storeRawSumPt", false);
724  desc.add<bool>("ApplyDiscriminationByECALIsolation", true);
725  desc.add<bool>("applyRhoCorrection", false);
726 
727  desc.add<double>("WeightECALIsolation", 1.0);
728  desc.add<double>("rhoUEOffsetCorrection", 1.0);
729  desc.add<double>("maxRelPhotonSumPt_outsideSignalCone", 0.1);
730  desc.add<double>("deltaBetaPUTrackPtCutOverride_val", -1.5);
731  desc.add<double>("isoConeSizeForDeltaBeta", 0.5);
732  desc.add<double>("relativeSumPtOffset", 0.0);
733  desc.add<double>("customOuterCone", -1.0);
734  desc.add<edm::InputTag>("particleFlowSrc", edm::InputTag("particleFlow"));
735 
736  descriptions.add("pfRecoTauDiscriminationByIsolation", desc);
737 }

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addOptional(), edm::ParameterSetDescription::addVPSet(), HLT_2018_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ weightedSum()

double PFRecoTauDiscriminationByIsolation::weightedSum ( const std::vector< CandidatePtr > &  inColl_,
double  eta,
double  phi 
) const
inline

Definition at line 175 of file PFRecoTauDiscriminationByIsolation.cc.

175  {
176  double out = 1.0;
177  for (auto const& inObj_ : inColl_) {
178  double sum = (inObj_->pt() * inObj_->pt()) / (deltaR2(eta, phi, inObj_->eta(), inObj_->phi()));
179  if (sum > 1.0)
180  out *= sum;
181  }
182  return out;
183  }

References reco::deltaR2(), PVValHelper::eta, and MillePedeFileConverter_cfg::out.

Member Data Documentation

◆ applyDeltaBeta_

bool PFRecoTauDiscriminationByIsolation::applyDeltaBeta_
private

Definition at line 240 of file PFRecoTauDiscriminationByIsolation.cc.

◆ applyFootprintCorrection_

bool PFRecoTauDiscriminationByIsolation::applyFootprintCorrection_
private

Definition at line 218 of file PFRecoTauDiscriminationByIsolation.cc.

◆ applyOccupancyCut_

bool PFRecoTauDiscriminationByIsolation::applyOccupancyCut_
private

Definition at line 203 of file PFRecoTauDiscriminationByIsolation.cc.

◆ applyPhotonPtSumOutsideSignalConeCut_

bool PFRecoTauDiscriminationByIsolation::applyPhotonPtSumOutsideSignalConeCut_
private

Definition at line 214 of file PFRecoTauDiscriminationByIsolation.cc.

◆ applyRelativeSumPtCut_

bool PFRecoTauDiscriminationByIsolation::applyRelativeSumPtCut_
private

Definition at line 207 of file PFRecoTauDiscriminationByIsolation.cc.

◆ applyRhoCorrection_

bool PFRecoTauDiscriminationByIsolation::applyRhoCorrection_
private

Definition at line 253 of file PFRecoTauDiscriminationByIsolation.cc.

◆ applySumPtCut_

bool PFRecoTauDiscriminationByIsolation::applySumPtCut_
private

Definition at line 205 of file PFRecoTauDiscriminationByIsolation.cc.

◆ calculateWeights_

bool PFRecoTauDiscriminationByIsolation::calculateWeights_
private

Definition at line 201 of file PFRecoTauDiscriminationByIsolation.cc.

◆ chargedPFCandidatesInEvent_

std::vector<reco::CandidatePtr> PFRecoTauDiscriminationByIsolation::chargedPFCandidatesInEvent_
private

Definition at line 246 of file PFRecoTauDiscriminationByIsolation.cc.

◆ customIsoCone_

double PFRecoTauDiscriminationByIsolation::customIsoCone_
private

Definition at line 210 of file PFRecoTauDiscriminationByIsolation.cc.

◆ deltaBetaCollectionCone_

double PFRecoTauDiscriminationByIsolation::deltaBetaCollectionCone_
private

Definition at line 248 of file PFRecoTauDiscriminationByIsolation.cc.

◆ deltaBetaFactorThisEvent_

double PFRecoTauDiscriminationByIsolation::deltaBetaFactorThisEvent_
private

Definition at line 250 of file PFRecoTauDiscriminationByIsolation.cc.

◆ deltaBetaFormula_

std::unique_ptr<TFormula> PFRecoTauDiscriminationByIsolation::deltaBetaFormula_
private

Definition at line 249 of file PFRecoTauDiscriminationByIsolation.cc.

◆ footprintCorrections_

std::vector<std::unique_ptr<FootprintCorrection> > PFRecoTauDiscriminationByIsolation::footprintCorrections_
private

Definition at line 226 of file PFRecoTauDiscriminationByIsolation.cc.

◆ includeGammas_

bool PFRecoTauDiscriminationByIsolation::includeGammas_
private

Definition at line 200 of file PFRecoTauDiscriminationByIsolation.cc.

◆ includeTracks_

bool PFRecoTauDiscriminationByIsolation::includeTracks_
private

Definition at line 199 of file PFRecoTauDiscriminationByIsolation.cc.

◆ maxAbsPhotonSumPt_outsideSignalCone_

double PFRecoTauDiscriminationByIsolation::maxAbsPhotonSumPt_outsideSignalCone_
private

Definition at line 215 of file PFRecoTauDiscriminationByIsolation.cc.

◆ maximumOccupancy_

uint32_t PFRecoTauDiscriminationByIsolation::maximumOccupancy_
private

Definition at line 204 of file PFRecoTauDiscriminationByIsolation.cc.

◆ maximumRelativeSumPt_

double PFRecoTauDiscriminationByIsolation::maximumRelativeSumPt_
private

Definition at line 208 of file PFRecoTauDiscriminationByIsolation.cc.

◆ maximumSumPt_

double PFRecoTauDiscriminationByIsolation::maximumSumPt_
private

Definition at line 206 of file PFRecoTauDiscriminationByIsolation.cc.

◆ maxRelPhotonSumPt_outsideSignalCone_

double PFRecoTauDiscriminationByIsolation::maxRelPhotonSumPt_outsideSignalCone_
private

Definition at line 216 of file PFRecoTauDiscriminationByIsolation.cc.

◆ minPtForNoIso_

double PFRecoTauDiscriminationByIsolation::minPtForNoIso_
private

Definition at line 212 of file PFRecoTauDiscriminationByIsolation.cc.

◆ moduleLabel_

std::string PFRecoTauDiscriminationByIsolation::moduleLabel_
private

◆ offsetRelativeSumPt_

double PFRecoTauDiscriminationByIsolation::offsetRelativeSumPt_
private

Definition at line 209 of file PFRecoTauDiscriminationByIsolation.cc.

◆ pfCand_token

edm::EDGetTokenT<edm::View<reco::Candidate> > PFRecoTauDiscriminationByIsolation::pfCand_token
private

Definition at line 242 of file PFRecoTauDiscriminationByIsolation.cc.

◆ pfCandSrc_

edm::InputTag PFRecoTauDiscriminationByIsolation::pfCandSrc_
private

Definition at line 241 of file PFRecoTauDiscriminationByIsolation.cc.

◆ pileupQcutsGeneralQCuts_

std::unique_ptr<tau::RecoTauQualityCuts> PFRecoTauDiscriminationByIsolation::pileupQcutsGeneralQCuts_
private

Definition at line 195 of file PFRecoTauDiscriminationByIsolation.cc.

◆ pileupQcutsPUTrackSelection_

std::unique_ptr<tau::RecoTauQualityCuts> PFRecoTauDiscriminationByIsolation::pileupQcutsPUTrackSelection_
private

Definition at line 194 of file PFRecoTauDiscriminationByIsolation.cc.

◆ qcuts_

std::unique_ptr<tau::RecoTauQualityCuts> PFRecoTauDiscriminationByIsolation::qcuts_
private

Definition at line 191 of file PFRecoTauDiscriminationByIsolation.cc.

◆ qualityCutsPSet_

edm::ParameterSet PFRecoTauDiscriminationByIsolation::qualityCutsPSet_
private

Definition at line 190 of file PFRecoTauDiscriminationByIsolation.cc.

◆ rho_token

edm::EDGetTokenT<double> PFRecoTauDiscriminationByIsolation::rho_token
private

Definition at line 256 of file PFRecoTauDiscriminationByIsolation.cc.

◆ rhoConeSize_

double PFRecoTauDiscriminationByIsolation::rhoConeSize_
private

Definition at line 257 of file PFRecoTauDiscriminationByIsolation.cc.

◆ rhoCorrectionThisEvent_

double PFRecoTauDiscriminationByIsolation::rhoCorrectionThisEvent_
private

Definition at line 259 of file PFRecoTauDiscriminationByIsolation.cc.

◆ rhoProducer_

edm::InputTag PFRecoTauDiscriminationByIsolation::rhoProducer_
private

Definition at line 255 of file PFRecoTauDiscriminationByIsolation.cc.

◆ rhoThisEvent_

double PFRecoTauDiscriminationByIsolation::rhoThisEvent_
private

Definition at line 260 of file PFRecoTauDiscriminationByIsolation.cc.

◆ rhoUEOffsetCorrection_

double PFRecoTauDiscriminationByIsolation::rhoUEOffsetCorrection_
private

Definition at line 258 of file PFRecoTauDiscriminationByIsolation.cc.

◆ storeRawFootprintCorrection_

bool PFRecoTauDiscriminationByIsolation::storeRawFootprintCorrection_
private

Definition at line 232 of file PFRecoTauDiscriminationByIsolation.cc.

◆ storeRawOccupancy_

bool PFRecoTauDiscriminationByIsolation::storeRawOccupancy_
private

Definition at line 229 of file PFRecoTauDiscriminationByIsolation.cc.

◆ storeRawPhotonSumPt_outsideSignalCone_

bool PFRecoTauDiscriminationByIsolation::storeRawPhotonSumPt_outsideSignalCone_
private

Definition at line 233 of file PFRecoTauDiscriminationByIsolation.cc.

◆ storeRawPUsumPt_

bool PFRecoTauDiscriminationByIsolation::storeRawPUsumPt_
private

Definition at line 231 of file PFRecoTauDiscriminationByIsolation.cc.

◆ storeRawSumPt_

bool PFRecoTauDiscriminationByIsolation::storeRawSumPt_
private

Definition at line 230 of file PFRecoTauDiscriminationByIsolation.cc.

◆ useAllPFCands_

bool PFRecoTauDiscriminationByIsolation::useAllPFCands_
private

Definition at line 254 of file PFRecoTauDiscriminationByIsolation.cc.

◆ verbosity_

int PFRecoTauDiscriminationByIsolation::verbosity_
private

Definition at line 263 of file PFRecoTauDiscriminationByIsolation.cc.

◆ vertex_token

edm::EDGetTokenT<reco::VertexCollection> PFRecoTauDiscriminationByIsolation::vertex_token
private

Definition at line 245 of file PFRecoTauDiscriminationByIsolation.cc.

◆ vertexAssociator_

std::unique_ptr<tau::RecoTauVertexAssociator> PFRecoTauDiscriminationByIsolation::vertexAssociator_
private

Definition at line 197 of file PFRecoTauDiscriminationByIsolation.cc.

◆ vertexSrc_

edm::InputTag PFRecoTauDiscriminationByIsolation::vertexSrc_
private

Definition at line 244 of file PFRecoTauDiscriminationByIsolation.cc.

◆ weightGammas_

double PFRecoTauDiscriminationByIsolation::weightGammas_
private

Definition at line 202 of file PFRecoTauDiscriminationByIsolation.cc.

zmumugammaAnalyzer_cfi.pfCandidates
pfCandidates
Definition: zmumugammaAnalyzer_cfi.py:11
mps_fire.i
i
Definition: mps_fire.py:355
edm::ParameterSetDescription::add
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:95
reco::tau::RecoTauQualityCuts
Definition: RecoTauQualityCuts.h:34
PFRecoTauDiscriminationByIsolation::storeRawFootprintCorrection_
bool storeRawFootprintCorrection_
Definition: PFRecoTauDiscriminationByIsolation.cc:232
PFRecoTauDiscriminationByIsolation::deltaBetaCollectionCone_
double deltaBetaCollectionCone_
Definition: PFRecoTauDiscriminationByIsolation.cc:248
PFRecoTauDiscriminationByIsolation::includeGammas_
bool includeGammas_
Definition: PFRecoTauDiscriminationByIsolation.cc:200
min
T min(T a, T b)
Definition: MathUtil.h:58
gather_cfg.cout
cout
Definition: gather_cfg.py:144
PFRecoTauDiscriminationByIsolation::maximumOccupancy_
uint32_t maximumOccupancy_
Definition: PFRecoTauDiscriminationByIsolation.cc:204
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
PFRecoTauDiscriminationByIsolation::chargedPFCandidatesInEvent_
std::vector< reco::CandidatePtr > chargedPFCandidatesInEvent_
Definition: PFRecoTauDiscriminationByIsolation.cc:246
edm::VParameterSet
std::vector< ParameterSet > VParameterSet
Definition: ParameterSet.h:33
PFRecoTauDiscriminationByIsolation::moduleLabel_
std::string moduleLabel_
Definition: PFRecoTauDiscriminationByIsolation.cc:188
PFRecoTauDiscriminationByIsolation::weightedSum
double weightedSum(const std::vector< CandidatePtr > &inColl_, double eta, double phi) const
Definition: PFRecoTauDiscriminationByIsolation.cc:175
PFTauDiscriminationProducerBase
TauDiscriminationProducerBase< reco::PFTau, reco::PFTauDiscriminator > PFTauDiscriminationProducerBase
Definition: TauDiscriminationProducerBase.h:124
PFRecoTauDiscriminationByIsolation::useAllPFCands_
bool useAllPFCands_
Definition: PFRecoTauDiscriminationByIsolation.cc:254
HLT_2018_cff.deltaBetaPUTrackPtCutOverride
deltaBetaPUTrackPtCutOverride
Definition: HLT_2018_cff.py:31433
edm::Handle
Definition: AssociativeIterator.h:50
edm::ParameterSetDescription::addOptional
ParameterDescriptionBase * addOptional(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:105
PFRecoTauDiscriminationByIsolation::pileupQcutsPUTrackSelection_
std::unique_ptr< tau::RecoTauQualityCuts > pileupQcutsPUTrackSelection_
Definition: PFRecoTauDiscriminationByIsolation.cc:194
PFRecoTauDiscriminationByIsolation::rhoProducer_
edm::InputTag rhoProducer_
Definition: PFRecoTauDiscriminationByIsolation.cc:255
edm::Ref< VertexCollection >
PFRecoTauDiscriminationByIsolation::maxAbsPhotonSumPt_outsideSignalCone_
double maxAbsPhotonSumPt_outsideSignalCone_
Definition: PFRecoTauDiscriminationByIsolation.cc:215
PFRecoTauDiscriminationByIsolation::maxRelPhotonSumPt_outsideSignalCone_
double maxRelPhotonSumPt_outsideSignalCone_
Definition: PFRecoTauDiscriminationByIsolation.cc:216
PFRecoTauDiscriminationByIsolation::qualityCutsPSet_
edm::ParameterSet qualityCutsPSet_
Definition: PFRecoTauDiscriminationByIsolation.cc:190
PFRecoTauDiscriminationByIsolation::verbosity_
int verbosity_
Definition: PFRecoTauDiscriminationByIsolation.cc:263
reco::tau::RecoTauVertexAssociator
Definition: RecoTauVertexAssociator.h:50
PFRecoTauDiscriminationByIsolation::rhoThisEvent_
double rhoThisEvent_
Definition: PFRecoTauDiscriminationByIsolation.cc:260
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
PFRecoTauDiscriminationByIsolation::storeRawPhotonSumPt_outsideSignalCone_
bool storeRawPhotonSumPt_outsideSignalCone_
Definition: PFRecoTauDiscriminationByIsolation.cc:233
PVValHelper::eta
Definition: PVValidationHelpers.h:69
PFRecoTauDiscriminationByIsolation::vertexAssociator_
std::unique_ptr< tau::RecoTauVertexAssociator > vertexAssociator_
Definition: PFRecoTauDiscriminationByIsolation.cc:197
corrVsCorr.selection
selection
main part
Definition: corrVsCorr.py:100
HLT_2018_cff.deltaBetaPUTrackPtCutOverride_val
deltaBetaPUTrackPtCutOverride_val
Definition: HLT_2018_cff.py:31453
ALCARECOTkAlBeamHalo_cff.filter
filter
Definition: ALCARECOTkAlBeamHalo_cff.py:27
PbPb_ZMuSkimMuonDPG_cff.deltaR
deltaR
Definition: PbPb_ZMuSkimMuonDPG_cff.py:63
PFRecoTauDiscriminationByIsolation::qcuts_
std::unique_ptr< tau::RecoTauQualityCuts > qcuts_
Definition: PFRecoTauDiscriminationByIsolation.cc:191
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
PFRecoTauDiscriminationByIsolation::applyOccupancyCut_
bool applyOccupancyCut_
Definition: PFRecoTauDiscriminationByIsolation.cc:203
edm::OwnVector::reserve
void reserve(size_t)
Definition: OwnVector.h:320
PFRecoTauDiscriminationByIsolation::vertex_token
edm::EDGetTokenT< reco::VertexCollection > vertex_token
Definition: PFRecoTauDiscriminationByIsolation.cc:245
PFRecoTauDiscriminationByIsolation::applyDeltaBeta_
bool applyDeltaBeta_
Definition: PFRecoTauDiscriminationByIsolation.cc:240
PFRecoTauDiscriminationByIsolation::maximumSumPt_
double maximumSumPt_
Definition: PFRecoTauDiscriminationByIsolation.cc:206
HLT_2018_cff.InputTag
InputTag
Definition: HLT_2018_cff.py:79016
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:670
edm::ParameterSet
Definition: ParameterSet.h:36
reco::tau::cone::DeltaRPtrFilter
Definition: ConeTools.h:33
PFRecoTauDiscriminationByIsolation::rhoConeSize_
double rhoConeSize_
Definition: PFRecoTauDiscriminationByIsolation.cc:257
PFRecoTauDiscriminationByIsolation::storeRawOccupancy_
bool storeRawOccupancy_
Definition: PFRecoTauDiscriminationByIsolation.cc:229
PFRecoTauDiscriminationByIsolation::calculateWeights_
bool calculateWeights_
Definition: PFRecoTauDiscriminationByIsolation.cc:201
edm::Ref::isNonnull
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:238
PFRecoTauDiscriminationByIsolation::minPtForNoIso_
double minPtForNoIso_
Definition: PFRecoTauDiscriminationByIsolation.cc:212
reco::tau::cone::DeltaRFilter
Definition: ConeTools.h:15
PFRecoTauDiscriminationByIsolation::applyPhotonPtSumOutsideSignalConeCut_
bool applyPhotonPtSumOutsideSignalConeCut_
Definition: PFRecoTauDiscriminationByIsolation.cc:214
PFRecoTauDiscriminationByIsolation::pileupQcutsGeneralQCuts_
std::unique_ptr< tau::RecoTauQualityCuts > pileupQcutsGeneralQCuts_
Definition: PFRecoTauDiscriminationByIsolation.cc:195
PFRecoTauDiscriminationByIsolation::storeRawSumPt_
bool storeRawSumPt_
Definition: PFRecoTauDiscriminationByIsolation.cc:230
cand
Definition: decayParser.h:34
MetAnalyzer.pv
def pv(vc)
Definition: MetAnalyzer.py:7
PFRecoTauDiscriminationByIsolation::rho_token
edm::EDGetTokenT< double > rho_token
Definition: PFRecoTauDiscriminationByIsolation.cc:256
reco::tau::factorizePUQCuts
std::pair< edm::ParameterSet, edm::ParameterSet > factorizePUQCuts(const edm::ParameterSet &inputSet)
Definition: RecoTauQualityCuts.cc:384
PFRecoTauDiscriminationByIsolation::storeRawPUsumPt_
bool storeRawPUsumPt_
Definition: PFRecoTauDiscriminationByIsolation.cc:231
edm::Ptr< Candidate >
PFRecoTauDiscriminationByIsolation::applySumPtCut_
bool applySumPtCut_
Definition: PFRecoTauDiscriminationByIsolation.cc:205
DDAxes::phi
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
PFRecoTauDiscriminationByIsolation::vertexSrc_
edm::InputTag vertexSrc_
Definition: PFRecoTauDiscriminationByIsolation.cc:244
PFRecoTauDiscriminationByIsolation::pfCand_token
edm::EDGetTokenT< edm::View< reco::Candidate > > pfCand_token
Definition: PFRecoTauDiscriminationByIsolation.cc:242
PFRecoTauDiscriminationByIsolation::includeTracks_
bool includeTracks_
Definition: PFRecoTauDiscriminationByIsolation.cc:199
PFRecoTauDiscriminationByIsolation::deltaBetaFormula_
std::unique_ptr< TFormula > deltaBetaFormula_
Definition: PFRecoTauDiscriminationByIsolation.cc:249
PFRecoTauDiscriminationByIsolation::maximumRelativeSumPt_
double maximumRelativeSumPt_
Definition: PFRecoTauDiscriminationByIsolation.cc:208
eostools.move
def move(src, dest)
Definition: eostools.py:511
PFRecoTauDiscriminationByIsolation::rhoUEOffsetCorrection_
double rhoUEOffsetCorrection_
Definition: PFRecoTauDiscriminationByIsolation.cc:258
PFRecoTauDiscriminationByIsolation::applyRelativeSumPtCut_
bool applyRelativeSumPtCut_
Definition: PFRecoTauDiscriminationByIsolation.cc:207
HLTMuonOfflineAnalyzer_cfi.deltaR2
deltaR2
Definition: HLTMuonOfflineAnalyzer_cfi.py:105
Exception
Definition: hltDiff.cc:246
PFRecoTauDiscriminationByIsolation::deltaBetaFactorThisEvent_
double deltaBetaFactorThisEvent_
Definition: PFRecoTauDiscriminationByIsolation.cc:250
PFRecoTauDiscriminationByIsolation::offsetRelativeSumPt_
double offsetRelativeSumPt_
Definition: PFRecoTauDiscriminationByIsolation.cc:209
PFRecoTauDiscriminationByIsolation::applyFootprintCorrection_
bool applyFootprintCorrection_
Definition: PFRecoTauDiscriminationByIsolation.cc:218
PFRecoTauDiscriminationByIsolation::footprintCorrections_
std::vector< std::unique_ptr< FootprintCorrection > > footprintCorrections_
Definition: PFRecoTauDiscriminationByIsolation.cc:226
dqm-mbProfile.log
log
Definition: dqm-mbProfile.py:17
edm::OwnVector::push_back
void push_back(D *&d)
Definition: OwnVector.h:326
PFRecoTauDiscriminationByIsolation::applyRhoCorrection_
bool applyRhoCorrection_
Definition: PFRecoTauDiscriminationByIsolation.cc:253
PFRecoTauDiscriminationByIsolation::weightGammas_
double weightGammas_
Definition: PFRecoTauDiscriminationByIsolation.cc:202
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
reco::LeafCandidate
Definition: LeafCandidate.h:16
LogTrace
#define LogTrace(id)
Definition: MessageLogger.h:671
HGC3DClusterGenMatchSelector_cfi.dR
dR
Definition: HGC3DClusterGenMatchSelector_cfi.py:7
PFRecoTauDiscriminationByIsolation::pfCandSrc_
edm::InputTag pfCandSrc_
Definition: PFRecoTauDiscriminationByIsolation.cc:241
event
Definition: event.py:1
hltrates_dqm_sourceclient-live_cfg.offset
offset
Definition: hltrates_dqm_sourceclient-live_cfg.py:78
edm::OwnVector::size
size_type size() const
Definition: OwnVector.h:300
edm::InputTag
Definition: InputTag.h:15
edm::ParameterSet::getParameterSet
ParameterSet const & getParameterSet(std::string const &) const
Definition: ParameterSet.cc:2121
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
edm::OwnVector
Definition: OwnVector.h:24
pwdgSkimBPark_cfi.vertices
vertices
Definition: pwdgSkimBPark_cfi.py:7
PFRecoTauDiscriminationByIsolation::customIsoCone_
double customIsoCone_
Definition: PFRecoTauDiscriminationByIsolation.cc:210