test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PFRecoTauDecayModeDeterminator_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 import copy
3 
4 """
5  Defintions used in PFTauDecayModeDeterminator
6  Purpose: Reconstruct the correct tau decay mode of reco::PFTaus
7  Author: Evan K. Friis, UC Davis (friis@physics.ucdavis.edu)
8 """
9 
10 standardDecayModeParams = cms.PSet(
11  maxPiZeroMass = cms.double(0.2), # Max mass of photon pairs that can be merged into a pi0
12  refitTracks = cms.bool(False), # Fit vertex for 3-prongs? (Not available on AOD data)
13  mergeLowPtPhotonsFirst = cms.bool(True), # as opposed to highest pt first (only when mergeByBestMatch = false)
14  mergeByBestMatch = cms.bool(True), # Compare each candidate pair of photons and merge the best one
15  setMergedPi0Mass = cms.bool(True), # Set mass for merged photons?
16  setChargedPionMass = cms.bool(True), # Set tracks mass to M_pi+?
17  setPi0Mass = cms.bool(True), # Set unmerged photons to M_pi0?
18  filterPhotons = cms.bool(True), # Remove unmerged/merged gammas by the following two criteria:
19  minPtFractionSinglePhotons = cms.double(0.10), # Minimum pt fraction for unmerged photons to be included
20  minPtFractionPiZeroes = cms.double(0.15), # Minimum pt fraction for merged photons to be included
21  maxPhotonsToMerge = cms.uint32(2), # Number of photons that can be put in a candidate pi0
22  filterTwoProngs = cms.bool(True), # Filter two prongs
23  minPtFractionForSecondProng = cms.double(0.1), # second prong pt/lead track pt fraction when filterTwoProngs == True
24  maxDistance = cms.double(0.01), # passed to vertex fitter when refitTracks is true
25  maxNbrOfIterations = cms.int32(10) # passed to vertex fitter when refitTracks is true
26 )
27 
28 pfTauDecayMode = cms.EDProducer("PFRecoTauDecayModeDeterminator",
29  standardDecayModeParams,
30  PFTauProducer = cms.InputTag("pfRecoTauProducer"),
31 )
32 pfTauDecayModeHighEfficiency = cms.EDProducer("PFRecoTauDecayModeDeterminator",
33  standardDecayModeParams,
34  PFTauProducer = cms.InputTag("pfRecoTauProducerHighEfficiency"),
35 )
36 pfTauDecayModeInsideOut = cms.EDProducer("PFRecoTauDecayModeDeterminator",
37  standardDecayModeParams,
38  PFTauProducer = cms.InputTag("pfRecoTauProducerInsideOut"),
39 )