CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/Validation/RecoEgamma/python/tkConvValidator_cfi.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 from Validation.RecoEgamma.tpSelection_cfi import *
00003 
00004 from SimTracker.TrackAssociation.TrackAssociatorByHits_cfi import *
00005 import SimTracker.TrackAssociation.TrackAssociatorByHits_cfi
00006 trackAssociatorByHitsForConversionValidation = SimTracker.TrackAssociation.TrackAssociatorByHits_cfi.TrackAssociatorByHits.clone()
00007 trackAssociatorByHitsForConversionValidation.ComponentName = cms.string('trackAssociatorByHitsForConversionValidation')
00008 trackAssociatorByHitsForConversionValidation.SimToRecoDenominator = 'reco'
00009 trackAssociatorByHitsForConversionValidation.Quality_SimToReco = 0.5
00010 trackAssociatorByHitsForConversionValidation.Purity_SimToReco = 0.5
00011 trackAssociatorByHitsForConversionValidation.Cut_RecoToSim = 0.5
00012 
00013 import PhysicsTools.RecoAlgos.trackingParticleSelector_cfi
00014 tpSelecForEfficiency = PhysicsTools.RecoAlgos.trackingParticleSelector_cfi.trackingParticleSelector.clone()
00015 tpSelecForEfficiency.chargedOnly = True
00016 # trackingParticleSelector.pdgId = cms.vint32()
00017 tpSelecForEfficiency.tip = 120
00018 tpSelecForEfficiency.lip = 280
00019 tpSelecForEfficiency.signalOnly = False
00020 tpSelecForEfficiency.minRapidity = -2.5
00021 tpSelecForEfficiency.ptMin = 0.3
00022 tpSelecForEfficiency.maxRapidity = 2.5
00023 tpSelecForEfficiency.minHit = 0
00024 
00025 
00026 tpSelecForFakeRate = PhysicsTools.RecoAlgos.trackingParticleSelector_cfi.trackingParticleSelector.clone()
00027 tpSelecForFakeRate.chargedOnly = True
00028 # trackingParticleSelector.pdgId = cms.vint32()
00029 tpSelecForFakeRate.tip = 120
00030 tpSelecForFakeRate.lip = 280
00031 tpSelecForFakeRate.signalOnly = False
00032 tpSelecForFakeRate.minRapidity = -2.5
00033 tpSelecForFakeRate.ptMin = 0.
00034 tpSelecForFakeRate.maxRapidity = 2.5
00035 tpSelecForFakeRate.minHit = 0
00036 
00037 
00038 
00039 tkConversionValidation = cms.EDAnalyzer("TkConvValidator",
00040     Name = cms.untracked.string('tkConversionValidation'),
00041     isRunCentrally = cms.bool(False),
00042     OutputFileName = cms.string('ValidationHistos.root'),
00043     convProducer = cms.string('allConversions'),
00044     conversionCollection = cms.string(''),
00045     phoProducer = cms.string('photons'),
00046     photonCollection = cms.string(''),                                    
00047     trackProducer = cms.InputTag("generalTracks"),
00048     dqmpath = cms.string('EgammaV/ConversionValidator/'),
00049     Verbosity = cms.untracked.int32(0),
00050     generalTracksOnly = cms.bool(True),
00051     arbitratedMerged =  cms.bool(False),
00052     arbitratedEcalSeeded = cms.bool(False),
00053     ecalalgotracks = cms.bool(False),
00054     highPurity = cms.bool(True),
00055     minProb = cms.double(-99.9),
00056     maxHitsBeforeVtx = cms.uint32(999),
00057     minLxy = cms.double(-9999.9),
00058 
00059     minPhoPtForEffic = cms.double(0.3),#when hardcoded it was 2.5
00060     maxPhoEtaForEffic = cms.double(2.5),
00061     maxPhoZForEffic = cms.double(200.),
00062     maxPhoRForEffic = cms.double(100.),
00063     minPhoPtForPurity = cms.double(0.),#when hardcoded it was 0.5
00064     maxPhoEtaForPurity = cms.double(2.5),
00065     maxPhoZForPurity = cms.double(200.),
00066     maxPhoRForPurity = cms.double(100.),
00067 
00068 #
00069     minPhoEtCut = cms.double(0.),
00070 
00071 #
00072     useTP =  cms.bool(True),
00073 #
00074 
00075     etBin = cms.int32(100),                                  
00076     etMax = cms.double(100.0),                                  
00077     etMin = cms.double(0.0),
00078 #
00079     etaBin = cms.int32(100),
00080     etaBin2 = cms.int32(25),
00081     etaMin = cms.double(-2.5),
00082     etaMax = cms.double(2.5),
00083 #
00084     phiBin = cms.int32(100),
00085     phiMin = cms.double(-3.14),
00086     phiMax = cms.double(3.14),
00087 #
00088     resBin = cms.int32(100),
00089     resMin = cms.double(0.),
00090     resMax = cms.double(1.1),
00091 #
00092     eoverpBin =  cms.int32(100),
00093     eoverpMin =  cms.double(0.),
00094     eoverpMax =  cms.double(5.),
00095 #                                       
00096     dEtaTracksBin = cms.int32(100),
00097     dEtaTracksMin = cms.double(-0.2),
00098     dEtaTracksMax = cms.double(0.2),
00099 #
00100     dPhiTracksBin = cms.int32(100),
00101     dPhiTracksMin = cms.double(-0.5),
00102     dPhiTracksMax = cms.double(0.5),
00103 #
00104     dEtaBin = cms.int32(100),
00105     dEtaMin = cms.double(-0.2),
00106     dEtaMax = cms.double(0.2),
00107 #
00108     dPhiBin = cms.int32(100),
00109     dPhiMin = cms.double(-0.05),
00110     dPhiMax = cms.double(0.05),
00111 #
00112     rBin = cms.int32(60), 
00113     rMin = cms.double(0.),
00114     rMax = cms.double(120),
00115 #
00116     zBin = cms.int32(100),
00117     zMin = cms.double(-220.),
00118     zMax = cms.double(220),
00119 #
00120  
00121     dCotTracksBin = cms.int32(100),                              
00122     dCotTracksMin = cms.double(-0.12),
00123     dCotTracksMax = cms.double(0.12),
00124 #                                  
00125     chi2Min =  cms.double(0.),
00126     chi2Max =  cms.double(20.),                              
00127 #
00128 
00129     rBinForXray = cms.int32(200),
00130     rMinForXray = cms.double(0.),
00131     rMaxForXray = cms.double(80.),                               
00132     zBinForXray = cms.int32(100),
00133     zBin2ForXray = cms.int32(560),
00134     zMinForXray = cms.double(0.),
00135     zMaxForXray = cms.double(280.),                               
00136                                   
00137 )
00138 
00139