CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/PhysicsTools/PatAlgos/python/producersLayer1/tauProducer_cfi.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 patTaus = cms.EDProducer("PATTauProducer",
00004     # input
00005     tauSource = cms.InputTag("shrinkingConePFTauProducer"),
00006 
00007     # add user data
00008     userData = cms.PSet(
00009       # add custom classes here
00010       userClasses = cms.PSet(
00011         src = cms.VInputTag('')
00012       ),
00013       # add doubles here
00014       userFloats = cms.PSet(
00015         src = cms.VInputTag('')
00016       ),
00017       # add ints here
00018       userInts = cms.PSet(
00019         src = cms.VInputTag('')
00020       ),
00021       # add candidate ptrs here
00022       userCands = cms.PSet(
00023         src = cms.VInputTag('')
00024       ),
00025       # add "inline" functions here
00026       userFunctions = cms.vstring(),
00027       userFunctionLabels = cms.vstring()
00028     ),
00029 
00030     # embedding objects (for Calo- and PFTaus)
00031     embedLeadTrack       = cms.bool(False), ## embed in AOD externally stored leading track
00032     embedSignalTracks    = cms.bool(False), ## embed in AOD externally stored signal tracks
00033     embedIsolationTracks = cms.bool(False), ## embed in AOD externally stored isolation tracks
00034     # embedding objects (for PFTaus only)
00035     embedLeadPFCand = cms.bool(False), ## embed in AOD externally stored leading PFCandidate
00036     embedLeadPFChargedHadrCand = cms.bool(False), ## embed in AOD externally stored leading PFChargedHadron candidate
00037     embedLeadPFNeutralCand = cms.bool(False), ## embed in AOD externally stored leading PFNeutral Candidate
00038     embedSignalPFCands = cms.bool(False), ## embed in AOD externally stored signal PFCandidates
00039     embedSignalPFChargedHadrCands = cms.bool(False), ## embed in AOD externally stored signal PFChargedHadronCandidates
00040     embedSignalPFNeutralHadrCands = cms.bool(False), ## embed in AOD externally stored signal PFNeutralHadronCandidates
00041     embedSignalPFGammaCands = cms.bool(False), ## embed in AOD externally stored signal PFGammaCandidates
00042     embedIsolationPFCands = cms.bool(False), ## embed in AOD externally stored isolation PFCandidates
00043     embedIsolationPFChargedHadrCands = cms.bool(False), ## embed in AOD externally stored isolation PFChargedHadronCandidates
00044     embedIsolationPFNeutralHadrCands = cms.bool(False), ## embed in AOD externally stored isolation PFNeutralHadronCandidates
00045     embedIsolationPFGammaCands = cms.bool(False), ## embed in AOD externally stored isolation PFGammaCandidates
00046 
00047     # embed IsoDeposits
00048     isoDeposits = cms.PSet(
00049         pfAllParticles = cms.InputTag("tauIsoDepositPFCandidates"),
00050         pfChargedHadron = cms.InputTag("tauIsoDepositPFChargedHadrons"),
00051         pfNeutralHadron = cms.InputTag("tauIsoDepositPFNeutralHadrons"),
00052         pfGamma = cms.InputTag("tauIsoDepositPFGammas")
00053     ),
00054 
00055     # user defined isolation variables the variables defined here will be accessible
00056     # via pat::Tau::userIsolation(IsolationKeys key) with the key as defined in
00057     # DataFormats/PatCandidates/interface/Isolation.h
00058     #
00059     # (set Pt thresholds for PFChargedHadrons (PFGammas) to 1.0 (1.5) GeV,
00060     # matching the thresholds used when computing the tau iso. discriminators
00061     # in RecoTauTag/RecoTau/python/PFRecoTauDiscriminationByIsolation_cfi.py)        
00062     userIsolation = cms.PSet(
00063         pfAllParticles = cms.PSet(
00064             src = cms.InputTag("tauIsoDepositPFCandidates"),
00065             deltaR = cms.double(0.5),
00066             threshold = cms.double(0.)
00067         ),
00068         pfChargedHadron = cms.PSet(
00069             src = cms.InputTag("tauIsoDepositPFChargedHadrons"),
00070             deltaR = cms.double(0.5),
00071             threshold = cms.double(0.)
00072         ),
00073         pfNeutralHadron = cms.PSet(
00074             src = cms.InputTag("tauIsoDepositPFNeutralHadrons"),
00075             deltaR = cms.double(0.5),
00076             threshold = cms.double(0.)
00077         ),
00078         pfGamma = cms.PSet(
00079             src = cms.InputTag("tauIsoDepositPFGammas"),
00080             deltaR = cms.double(0.5),
00081             threshold = cms.double(0.)
00082         )
00083     ),
00084 
00085     # tau ID (for efficiency studies)
00086     addTauID     = cms.bool(True),
00087     tauIDSources = cms.PSet(
00088         # configure many IDs as InputTag <someName> = <someTag>
00089         # you can comment out those you don't want to save some
00090         # disk space
00091         leadingTrackFinding = cms.InputTag("shrinkingConePFTauDiscriminationByLeadingTrackFinding"),
00092         leadingTrackPtCut = cms.InputTag("shrinkingConePFTauDiscriminationByLeadingTrackPtCut"),
00093         leadingPionPtCut = cms.InputTag("shrinkingConePFTauDiscriminationByLeadingPionPtCut"),
00094         trackIsolation = cms.InputTag("shrinkingConePFTauDiscriminationByTrackIsolation"),
00095         trackIsolationUsingLeadingPion = cms.InputTag("shrinkingConePFTauDiscriminationByTrackIsolationUsingLeadingPion"),
00096         ecalIsolation = cms.InputTag("shrinkingConePFTauDiscriminationByECALIsolation"),
00097         ecalIsolationUsingLeadingPion = cms.InputTag("shrinkingConePFTauDiscriminationByECALIsolationUsingLeadingPion"),
00098         byIsolation = cms.InputTag("shrinkingConePFTauDiscriminationByIsolation"),
00099         byIsolationUsingLeadingPion = cms.InputTag("shrinkingConePFTauDiscriminationByIsolationUsingLeadingPion"),
00100         againstElectron = cms.InputTag("shrinkingConePFTauDiscriminationAgainstElectron"),
00101         againstMuon = cms.InputTag("shrinkingConePFTauDiscriminationAgainstMuon"),
00102        #byTaNC = cms.InputTag("shrinkingConePFTauDiscriminationByTaNC"),
00103        #byTaNCfrOnePercent = cms.InputTag("shrinkingConePFTauDiscriminationByTaNCfrOnePercent"),
00104        #byTaNCfrHalfPercent = cms.InputTag("shrinkingConePFTauDiscriminationByTaNCfrHalfPercent"),
00105        #byTaNCfrQuarterPercent = cms.InputTag("shrinkingConePFTauDiscriminationByTaNCfrQuarterPercent"),
00106        #byTaNCfrTenthPercent = cms.InputTag("shrinkingConePFTauDiscriminationByTaNCfrTenthPercent")
00107     ),
00108 
00109     # mc matching configurables
00110     addGenMatch      = cms.bool(True),
00111     embedGenMatch    = cms.bool(True),
00112     genParticleMatch = cms.InputTag("tauMatch"),
00113     addGenJetMatch   = cms.bool(True),
00114     embedGenJetMatch = cms.bool(True),    
00115     genJetMatch      = cms.InputTag("tauGenJetMatch"),
00116 
00117     # efficiencies
00118     addEfficiencies = cms.bool(False),
00119     efficiencies    = cms.PSet(),
00120 
00121     # resolution
00122     addResolutions  = cms.bool(False),
00123     resolutions     = cms.PSet()
00124 )
00125 
00126