CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/RecoTauTag/Configuration/python/FixedConePFTaus_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 import copy
00003 
00004 from RecoTauTag.RecoTau.RecoTauFixedConeProducer_cfi import fixedConeRecoTaus
00005 
00006 """
00007         Defines producers and discriminants for the "FixedCone" PFTau
00008 
00009         The sequence provided @ the end of the file,
00010 
00011                 ProduceAndDiscriminateFixedConePFTaus
00012 
00013         produces the fixed cone PFTau and all its associated discriminants
00014 
00015         Signal/Iso cone parameters:
00016            SignalCone for tracks           - 0.07 in DR from lead object
00017            SignalCone for ECAL/HCAL        - 0.07 in DR from lead object
00018            Isolation cone (all types)      - 0.50 in DR from lead object
00019 
00020 """
00021 fixedConePFTauProducer = copy.deepcopy(fixedConeRecoTaus)
00022 
00023 # Get the decay mode reconstruction producer
00024 from RecoTauTag.RecoTau.PFRecoTauDecayModeDeterminator_cfi                          import *
00025 fixedConePFTauDecayModeProducer               = copy.deepcopy(pfTauDecayMode)
00026 fixedConePFTauDecayModeProducer.PFTauProducer = 'fixedConePFTauProducer'
00027 
00028 # Store the reco'd decay modes in a simple container
00029 from RecoTauTag.RecoTau.PFRecoTauDecayModeIndexProducer_cfi                             import *
00030 fixedConePFTauDecayModeIndexProducer                        = copy.deepcopy(pfTauDecayModeIndexProducer)
00031 fixedConePFTauDecayModeIndexProducer.PFTauProducer          = cms.InputTag("fixedConePFTauProducer")
00032 fixedConePFTauDecayModeIndexProducer.PFTauDecayModeProducer = cms.InputTag("fixedConePFTauDecayModeProducer")
00033 
00034 # Define the discriminators for this tau
00035 from RecoTauTag.RecoTau.PFRecoTauDiscriminationByIsolation_cfi                      import *
00036 from RecoTauTag.RecoTau.PFRecoTauDiscriminationByLeadingTrackFinding_cfi            import *
00037 from RecoTauTag.RecoTau.PFRecoTauDiscriminationByLeadingTrackPtCut_cfi              import *
00038 from RecoTauTag.RecoTau.PFRecoTauDiscriminationByTrackIsolation_cfi                 import *
00039 from RecoTauTag.RecoTau.PFRecoTauDiscriminationByECALIsolation_cfi                  import *
00040 from RecoTauTag.RecoTau.PFRecoTauDiscriminationAgainstElectron_cfi                  import *
00041 from RecoTauTag.RecoTau.PFRecoTauDiscriminationAgainstMuon_cfi                      import *
00042 #Discriminators using leading Pion
00043 from RecoTauTag.RecoTau.PFRecoTauDiscriminationByIsolationUsingLeadingPion_cfi      import *
00044 from RecoTauTag.RecoTau.PFRecoTauDiscriminationByLeadingPionPtCut_cfi               import *
00045 from RecoTauTag.RecoTau.PFRecoTauDiscriminationByTrackIsolationUsingLeadingPion_cfi import *
00046 from RecoTauTag.RecoTau.PFRecoTauDiscriminationByECALIsolationUsingLeadingPion_cfi  import *
00047 
00048 # Load helper functions to change the source of the discriminants
00049 from RecoTauTag.RecoTau.TauDiscriminatorTools import *
00050 
00051 #copying Discriminator ByLeadingTrack(finding and pt_cut)
00052 fixedConePFTauDiscriminationByLeadingTrackFinding                          = copy.deepcopy(pfRecoTauDiscriminationByLeadingTrackFinding)
00053 setTauSource(fixedConePFTauDiscriminationByLeadingTrackFinding, 'fixedConePFTauProducer')
00054 
00055 fixedConePFTauDiscriminationByLeadingTrackPtCut                            = copy.deepcopy(pfRecoTauDiscriminationByLeadingTrackPtCut)
00056 setTauSource(fixedConePFTauDiscriminationByLeadingTrackPtCut, 'fixedConePFTauProducer')
00057 
00058 #copying Discriminator ByPionTrackPtCut
00059 fixedConePFTauDiscriminationByLeadingPionPtCut                             = copy.deepcopy(pfRecoTauDiscriminationByLeadingPionPtCut)
00060 setTauSource(fixedConePFTauDiscriminationByLeadingPionPtCut, 'fixedConePFTauProducer')
00061 
00062 #copying the Discriminator by Isolation
00063 fixedConePFTauDiscriminationByIsolation                                    = copy.deepcopy(pfRecoTauDiscriminationByIsolation)
00064 setTauSource(fixedConePFTauDiscriminationByIsolation, 'fixedConePFTauProducer')
00065 
00066 fixedConePFTauDiscriminationByTrackIsolation                               = copy.deepcopy(pfRecoTauDiscriminationByTrackIsolation)
00067 setTauSource(fixedConePFTauDiscriminationByTrackIsolation, 'fixedConePFTauProducer')
00068 
00069 fixedConePFTauDiscriminationByECALIsolation                                = copy.deepcopy(pfRecoTauDiscriminationByECALIsolation)
00070 setTauSource(fixedConePFTauDiscriminationByECALIsolation, 'fixedConePFTauProducer')
00071 
00072 #copying the Discriminator by Isolation for leadingPion
00073 fixedConePFTauDiscriminationByIsolationUsingLeadingPion                    = copy.deepcopy(pfRecoTauDiscriminationByIsolationUsingLeadingPion)
00074 setTauSource(fixedConePFTauDiscriminationByIsolationUsingLeadingPion, 'fixedConePFTauProducer')
00075 
00076 fixedConePFTauDiscriminationByTrackIsolationUsingLeadingPion               = copy.deepcopy(pfRecoTauDiscriminationByTrackIsolationUsingLeadingPion)
00077 setTauSource(fixedConePFTauDiscriminationByTrackIsolationUsingLeadingPion, 'fixedConePFTauProducer')
00078 
00079 fixedConePFTauDiscriminationByECALIsolationUsingLeadingPion                = copy.deepcopy(pfRecoTauDiscriminationByECALIsolationUsingLeadingPion)
00080 setTauSource(fixedConePFTauDiscriminationByECALIsolationUsingLeadingPion, 'fixedConePFTauProducer')
00081 
00082 #copying discriminator against electrons and muons
00083 fixedConePFTauDiscriminationAgainstElectron                                = copy.deepcopy(pfRecoTauDiscriminationAgainstElectron)
00084 setTauSource(fixedConePFTauDiscriminationAgainstElectron, 'fixedConePFTauProducer')
00085 
00086 fixedConePFTauDiscriminationAgainstMuon                                    = copy.deepcopy(pfRecoTauDiscriminationAgainstMuon)
00087 setTauSource(fixedConePFTauDiscriminationAgainstMuon, 'fixedConePFTauProducer')
00088 
00089 produceAndDiscriminateFixedConePFTaus = cms.Sequence(
00090       fixedConePFTauProducer*
00091       fixedConePFTauDiscriminationByLeadingTrackFinding*
00092       fixedConePFTauDiscriminationByLeadingTrackPtCut*
00093       fixedConePFTauDiscriminationByLeadingPionPtCut*
00094       fixedConePFTauDiscriminationByIsolation*
00095       fixedConePFTauDiscriminationByTrackIsolation*
00096       fixedConePFTauDiscriminationByECALIsolation*
00097       fixedConePFTauDiscriminationByIsolationUsingLeadingPion*
00098       fixedConePFTauDiscriminationByTrackIsolationUsingLeadingPion*
00099       fixedConePFTauDiscriminationByECALIsolationUsingLeadingPion*
00100       fixedConePFTauDiscriminationAgainstElectron*
00101       fixedConePFTauDiscriminationAgainstMuon
00102       )
00103