CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/RecoTauTag/RecoTau/python/PFRecoTauProducer_cfi.py

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