CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/RecoTauTag/Configuration/python/ShrinkingConePFTaus_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 import copy
00003 
00004 """
00005         Defines producers and discriminants for the "shrinkingCone" PFTau
00006 
00007         The sequence provided @ the end of the file,
00008 
00009                 produceAndDiscriminateShrinkingConePFTaus
00010 
00011         produces the shrinking cone PFTau and all its associated discriminants
00012 
00013         Signal/Iso cone parameters:
00014            SignalCone for tracks           - 5/ET in DR from lead object, min 0.07, max 0.15
00015            SignalCone for ECAL/HCAL        - 0.15 in DR from lead object
00016            Isolation cone (all types0      - 0.50 in DR from lead object
00017 """
00018 
00019 # Backwards compatability
00020 # Get the decay mode reconstruction producer
00021 from RecoTauTag.RecoTau.PFRecoTauDecayModeDeterminator_cfi                          import *
00022 shrinkingConePFTauDecayModeProducer               = copy.deepcopy(pfTauDecayMode)
00023 shrinkingConePFTauDecayModeProducer.PFTauProducer = 'shrinkingConePFTauProducer'
00024 
00025 # Store the reco'd decay modes in a simple container
00026 from RecoTauTag.RecoTau.PFRecoTauDecayModeIndexProducer_cfi                             import *
00027 shrinkingConePFTauDecayModeIndexProducer                        = copy.deepcopy(pfTauDecayModeIndexProducer)
00028 shrinkingConePFTauDecayModeIndexProducer.PFTauProducer          = cms.InputTag("shrinkingConePFTauProducer")
00029 shrinkingConePFTauDecayModeIndexProducer.PFTauDecayModeProducer = cms.InputTag("shrinkingConePFTauDecayModeProducer")
00030 # End backwards compatability
00031 
00032 from RecoTauTag.TauTagTools.TauNeuralClassifiers_cfi import *
00033 
00034 from RecoTauTag.RecoTau.RecoTauShrinkingConeProducer_cfi import \
00035         shrinkingConeRecoTaus as shrinkingConePFTauProducerSansRefs
00036 
00037 shrinkingConePFTauProducer = cms.EDProducer(
00038     "RecoTauPiZeroUnembedder",
00039     src = cms.InputTag("shrinkingConePFTauProducerSansRefs")
00040 )
00041 shrinkingConePFTauProducer.builders = shrinkingConePFTauProducerSansRefs.builders
00042 shrinkingConePFTauProducer.modifiers = shrinkingConePFTauProducerSansRefs.modifiers
00043 
00044 # Define the discriminators for this tau
00045 from RecoTauTag.RecoTau.PFRecoTauDiscriminationByIsolation_cfi import *
00046 from RecoTauTag.RecoTau.PFRecoTauDiscriminationByLeadingTrackFinding_cfi import *
00047 from RecoTauTag.RecoTau.PFRecoTauDiscriminationByLeadingTrackPtCut_cfi import *
00048 from RecoTauTag.RecoTau.PFRecoTauDiscriminationByTrackIsolation_cfi import *
00049 from RecoTauTag.RecoTau.PFRecoTauDiscriminationByECALIsolation_cfi import *
00050 from RecoTauTag.RecoTau.PFRecoTauDiscriminationAgainstElectron_cfi import *
00051 from RecoTauTag.RecoTau.PFRecoTauDiscriminationAgainstMuon_cfi import *
00052 #Discriminators using leading Pion
00053 from RecoTauTag.RecoTau.PFRecoTauDiscriminationByIsolationUsingLeadingPion_cfi import *
00054 from RecoTauTag.RecoTau.PFRecoTauDiscriminationByLeadingPionPtCut_cfi import *
00055 from RecoTauTag.RecoTau.PFRecoTauDiscriminationByTrackIsolationUsingLeadingPion_cfi import *
00056 from RecoTauTag.RecoTau.PFRecoTauDiscriminationByECALIsolationUsingLeadingPion_cfi import *
00057 
00058 # Load helper functions to change the source of the discriminants
00059 from RecoTauTag.RecoTau.TauDiscriminatorTools import *
00060 
00061 #copying Discriminator ByLeadingTrack(finding and pt_cut)
00062 shrinkingConePFTauDiscriminationByLeadingTrackFinding = \
00063         copy.deepcopy(pfRecoTauDiscriminationByLeadingTrackFinding)
00064 setTauSource(shrinkingConePFTauDiscriminationByLeadingTrackFinding,
00065              'shrinkingConePFTauProducer')
00066 
00067 shrinkingConePFTauDiscriminationByLeadingTrackPtCut = \
00068         copy.deepcopy(pfRecoTauDiscriminationByLeadingTrackPtCut)
00069 setTauSource(shrinkingConePFTauDiscriminationByLeadingTrackPtCut,
00070              'shrinkingConePFTauProducer')
00071 
00072 #copying Discriminator ByPionTrackPtCut
00073 shrinkingConePFTauDiscriminationByLeadingPionPtCut = \
00074         copy.deepcopy(pfRecoTauDiscriminationByLeadingPionPtCut)
00075 setTauSource(shrinkingConePFTauDiscriminationByLeadingPionPtCut,
00076              'shrinkingConePFTauProducer')
00077 
00078 #copying the Discriminator by Isolation
00079 shrinkingConePFTauDiscriminationByIsolation = \
00080         copy.deepcopy(pfRecoTauDiscriminationByIsolation)
00081 setTauSource(shrinkingConePFTauDiscriminationByIsolation,
00082              'shrinkingConePFTauProducer')
00083 
00084 shrinkingConePFTauDiscriminationByTrackIsolation = \
00085         copy.deepcopy(pfRecoTauDiscriminationByTrackIsolation)
00086 setTauSource(shrinkingConePFTauDiscriminationByTrackIsolation,
00087              'shrinkingConePFTauProducer')
00088 
00089 shrinkingConePFTauDiscriminationByECALIsolation = \
00090         copy.deepcopy(pfRecoTauDiscriminationByECALIsolation)
00091 setTauSource(shrinkingConePFTauDiscriminationByECALIsolation,
00092              'shrinkingConePFTauProducer')
00093 
00094 #copying the Discriminator by Isolation for leadingPion
00095 shrinkingConePFTauDiscriminationByIsolationUsingLeadingPion = \
00096         copy.deepcopy(pfRecoTauDiscriminationByIsolationUsingLeadingPion)
00097 setTauSource(shrinkingConePFTauDiscriminationByIsolationUsingLeadingPion,
00098              'shrinkingConePFTauProducer')
00099 
00100 shrinkingConePFTauDiscriminationByTrackIsolationUsingLeadingPion = \
00101         copy.deepcopy(pfRecoTauDiscriminationByTrackIsolationUsingLeadingPion)
00102 setTauSource(shrinkingConePFTauDiscriminationByTrackIsolationUsingLeadingPion,
00103              'shrinkingConePFTauProducer')
00104 
00105 shrinkingConePFTauDiscriminationByECALIsolationUsingLeadingPion = \
00106         copy.deepcopy(pfRecoTauDiscriminationByECALIsolationUsingLeadingPion)
00107 setTauSource(shrinkingConePFTauDiscriminationByECALIsolationUsingLeadingPion,
00108              'shrinkingConePFTauProducer')
00109 
00110 #copying discriminator against electrons and muons
00111 shrinkingConePFTauDiscriminationAgainstElectron = \
00112         copy.deepcopy(pfRecoTauDiscriminationAgainstElectron)
00113 setTauSource(shrinkingConePFTauDiscriminationAgainstElectron,
00114              'shrinkingConePFTauProducer')
00115 
00116 shrinkingConePFTauDiscriminationAgainstMuon = \
00117         copy.deepcopy(pfRecoTauDiscriminationAgainstMuon)
00118 setTauSource(shrinkingConePFTauDiscriminationAgainstMuon,
00119              'shrinkingConePFTauProducer')
00120 
00121 produceAndDiscriminateShrinkingConePFTaus = cms.Sequence(
00122       shrinkingConePFTauProducerSansRefs*
00123       shrinkingConePFTauProducer*
00124       shrinkingConePFTauDiscriminationByLeadingTrackFinding*
00125       shrinkingConePFTauDiscriminationByLeadingTrackPtCut*
00126       shrinkingConePFTauDiscriminationByLeadingPionPtCut*
00127       shrinkingConePFTauDiscriminationByIsolation*
00128       shrinkingConePFTauDiscriminationByTrackIsolation*
00129       shrinkingConePFTauDiscriminationByECALIsolation*
00130       shrinkingConePFTauDiscriminationByIsolationUsingLeadingPion*
00131       shrinkingConePFTauDiscriminationByTrackIsolationUsingLeadingPion*
00132       shrinkingConePFTauDiscriminationByECALIsolationUsingLeadingPion*
00133       shrinkingConePFTauDiscriminationAgainstElectron*
00134       shrinkingConePFTauDiscriminationAgainstMuon
00135       )
00136 
00137 produceShrinkingConeDiscriminationByTauNeuralClassifier = cms.Sequence(
00138       shrinkingConePFTauDiscriminationByTaNC*
00139       shrinkingConePFTauDiscriminationByTaNCfrOnePercent*
00140       shrinkingConePFTauDiscriminationByTaNCfrHalfPercent*
00141       shrinkingConePFTauDiscriminationByTaNCfrQuarterPercent*
00142       shrinkingConePFTauDiscriminationByTaNCfrTenthPercent
00143 )
00144 
00145