CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch2/src/RecoTauTag/RecoTau/python/PFRecoTauProducer_cfi.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 from RecoTauTag.RecoTau.PFRecoTauQualityCuts_cfi import PFTauQualityCuts
00003 
00004 PFRecoTauProducer = cms.EDProducer("PFRecoTauProducer",
00005 
00006       Algorithm            = cms.string("ConeBased"),
00007       LeadPFCand_minPt     = cms.double(5.0),  #cut on lead object (can be track, or gamma)
00008 
00009       #SignalCone parameters
00010       TrackerSignalConeMetric = cms.string('DR'), ## *
00011       TrackerSignalConeSizeFormula = cms.string('0.07'), ## **
00012       TrackerSignalConeSize_min = cms.double(0.0),
00013 
00014       #Important: the four-vector energy for the PFTau is defined as the candidates
00015       # within the maximum tracker signal cone size (TrackerSignalConeSize_max_).
00016       # For fixed cone taus, this should be set to the fixed cone size.
00017       TrackerSignalConeSize_max = cms.double(0.07),
00018 
00019       ECALSignalConeMetric = cms.string('DR'), ## *
00020       ECALSignalConeSizeFormula = cms.string('0.15'), ## **
00021       ECALSignalConeSize_min = cms.double(0.0),
00022       ECALSignalConeSize_max = cms.double(0.6),
00023 
00024       HCALSignalConeMetric = cms.string('DR'), ## *
00025       HCALSignalConeSizeFormula = cms.string('0.10'), ## **
00026       HCALSignalConeSize_min = cms.double(0.0),
00027       HCALSignalConeSize_max = cms.double(0.6),
00028 
00029       #IsolationCone parameters
00030       TrackerIsolConeMetric = cms.string('DR'), ## *
00031       TrackerIsolConeSizeFormula = cms.string('0.50'), ## **
00032       TrackerIsolConeSize_min = cms.double(0.0),
00033       TrackerIsolConeSize_max = cms.double(0.6),
00034 
00035       ECALIsolConeMetric = cms.string('DR'), ## *
00036       ECALIsolConeSizeFormula = cms.string('0.50'), ## **
00037       ECALIsolConeSize_min = cms.double(0.0),
00038       ECALIsolConeSize_max = cms.double(0.6),
00039 
00040       HCALIsolConeMetric = cms.string('DR'), ## *
00041       HCALIsolConeSizeFormula = cms.string('0.50'), ## **
00042       HCALIsolConeSize_min = cms.double(0.0),
00043       HCALIsolConeSize_max = cms.double(0.6),
00044 
00045       # Cut on the number of tracker hits on isolation PF charged hadrons
00046       #ChargedHadrCand_IsolAnnulus_minNhits = cms.uint32(8), # this cut is now applied in the PFTauDiscriminator
00047       ChargedHadrCand_IsolAnnulus_minNhits = cms.uint32(0),
00048 
00049       #Electron rejection parameters
00050       ElectronPreIDProducer                = cms.InputTag("elecpreid"),
00051       EcalStripSumE_deltaPhiOverQ_minValue = cms.double(-0.1),
00052       EcalStripSumE_deltaPhiOverQ_maxValue = cms.double(0.5),
00053       EcalStripSumE_minClusEnergy          = cms.double(0.1),
00054       EcalStripSumE_deltaEta               = cms.double(0.03),
00055       ElecPreIDLeadTkMatch_maxDR           = cms.double(0.01),
00056       maximumForElectrionPreIDOutput       = cms.double(-0.1),
00057 
00058       #Lead track matching cone parameters
00059       MatchingConeMetric      = cms.string('DR'),
00060       MatchingConeSizeFormula = cms.string('0.1'),
00061       MatchingConeSize_min    = cms.double(0.0), #min/max don't affect, as it is locked at 0.1
00062       MatchingConeSize_max    = cms.double(0.6), #just make sure they window 0.1!
00063 
00064       # PFTaus are seeded by TauTagInfos (basically a jet wrapper/quality filter)
00065       PFTauTagInfoProducer = cms.InputTag("pfRecoTauTagInfoProducer"),
00066       JetPtMin             = cms.double(0.0),
00067       #Filter lead charged hadron cand. by DZ to vertex?
00068       UseChargedHadrCandLeadChargedHadrCand_tksDZconstraint = cms.bool(True),
00069       ChargedHadrCandLeadChargedHadrCand_tksmaxDZ = cms.double(1.0),
00070 
00071       #Standard PV stuff
00072       PVProducer      = PFTauQualityCuts.primaryVertexSrc,
00073       smearedPVsigmaY = cms.double(0.0015),
00074       smearedPVsigmaX = cms.double(0.0015),
00075       smearedPVsigmaZ = cms.double(0.005),
00076 
00077       #FixedArea parameters
00078       AreaMetric_recoElements_maxabsEta = cms.double(2.5),
00079 
00080       DataType = cms.string("AOD"),            # Computring tier (modifies how some values are retrieved..)
00081 
00082       # The following parameters affect TRACKS ONLY.
00083       # i.e., they use tracks, from the jet tracks associator, not PFChargedHadronCandidates
00084       # Intended only as a cross check, don't use them unles syou need them!
00085 
00086       # Track - PV filtering
00087       LeadTrack_minPt               = cms.double(0.0), # This should be cut on at the discriminator level,
00088                                                        #  to make things consistent in the case where the tau
00089                                                        #  has a leading PFGamma cand but no lead PFChargedCand
00090       TrackLeadTrack_maxDZ          = cms.double(1.0),
00091       UseTrackLeadTrackDZconstraint = cms.bool(True),
00092       Track_IsolAnnulus_minNhits    = cms.uint32(3),
00093       ### parameters for gammas in ellipse ###
00094       AddEllipseGammas = cms.bool(False),
00095       Rphi = cms.double(2.0), ## factor*Reta; Reta is the standard ecal signal cone size
00096       MaxEtInEllipse = cms.double(2.0), # max pt for gammas inside the ellipse
00097       ########################################
00098 
00099       # If true, include signal cone neutral hadrons in the tau four vector.
00100       # Note: alternatLorentzVector is always only charged + gamma
00101       putNeutralHadronsInP4 = cms.bool(False),
00102 
00103 )
00104  # * possible metrics : "DR", "angle", "area";
00105     #   if the "area" metric is chosen, AreaMetric_recoElements_maxabsEta parameter is considered, the area of a cone is increased by increasing the angle of the cone;
00106     #   functionnality to use a "DR" signal cone and an "area" isolation outer cone is not available;
00107     # ** may depend on E(energy) and/or PT(transverse momentum) of the initial PFJet, ex. : "3.0/E" or "3.0/ET"
00108     #    if XXXConeSizeFormula>XXXConeSize_max then XXXConeSize_max is the considered cone size ; if XXXConeSizeFormula<XXXConeSize_min then XXXConeSize_min is the considered cone size;
00109     # *** a PV is needed for computing a leading (charged hadron PFCand) rec. tk signed transverse impact parameter.
00110     # For electron rejection variable
00111