Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-12-15 05:17:38

0001 import FWCore.ParameterSet.Config as cms
0002 from Validation.RecoEgamma.tpSelection_cfi import *
0003 
0004 from SimTracker.TrackAssociatorProducers.quickTrackAssociatorByHits_cfi import *
0005 import SimTracker.TrackAssociatorProducers.quickTrackAssociatorByHits_cfi
0006 trackAssociatorByHitsForConversionValidation = SimTracker.TrackAssociatorProducers.quickTrackAssociatorByHits_cfi.quickTrackAssociatorByHits.clone()
0007 trackAssociatorByHitsForConversionValidation.SimToRecoDenominator = 'reco'
0008 trackAssociatorByHitsForConversionValidation.Quality_SimToReco = 0.5
0009 trackAssociatorByHitsForConversionValidation.Purity_SimToReco = 0.5
0010 trackAssociatorByHitsForConversionValidation.Cut_RecoToSim = 0.5
0011 
0012 from CommonTools.RecoAlgos.trackingParticleRefSelector_cfi import trackingParticleRefSelector as _trackingParticleRefSelector
0013 tpSelecForEfficiency = _trackingParticleRefSelector.clone(
0014 chargedOnly = True,
0015 # trackingParticleSelector.pdgId = cms.vint32()
0016 tip = 120,
0017 lip = 280,
0018 signalOnly = False,
0019 minRapidity = -2.5,
0020 ptMin = 0.3,
0021 maxRapidity = 2.5,
0022 minHit = 0
0023 )
0024 
0025 tpSelecForFakeRate = _trackingParticleRefSelector.clone(
0026 chargedOnly = True,
0027 # trackingParticleSelector.pdgId = cms.vint32()
0028 tip = 120,
0029 lip = 280,
0030 signalOnly = False,
0031 minRapidity = -2.5,
0032 ptMin = 0.0,
0033 maxRapidity = 2.5,
0034 minHit = 0
0035 )
0036 
0037 
0038 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0039 tkConversionValidation = DQMEDAnalyzer('TkConvValidator',
0040     Name = cms.untracked.string('tkConversionValidation'),
0041     isRunCentrally = cms.bool(False),
0042     OutputFileName = cms.string('ValidationHistos.root'),
0043     convProducer = cms.string('allConversions'),
0044     conversionCollection = cms.string(''),
0045     phoProducer = cms.string('photons'),
0046     photonCollection = cms.string(''),                                    
0047     trackProducer = cms.InputTag("generalTracks"),
0048     dqmpath = cms.string('EgammaV/ConversionValidator/'),
0049     Verbosity = cms.untracked.int32(0),
0050     generalTracksOnly = cms.bool(True),
0051     arbitratedMerged =  cms.bool(False),
0052     arbitratedEcalSeeded = cms.bool(False),
0053     ecalalgotracks = cms.bool(False),
0054     highPurity = cms.bool(True),
0055     minProb = cms.double(-99.9),
0056     maxHitsBeforeVtx = cms.uint32(999),
0057     minLxy = cms.double(-9999.9),
0058 
0059     minPhoPtForEffic = cms.double(0.3),#when hardcoded it was 2.5
0060     maxPhoEtaForEffic = cms.double(2.5),
0061     maxPhoZForEffic = cms.double(200.),
0062     maxPhoRForEffic = cms.double(100.),
0063     minPhoPtForPurity = cms.double(0.),#when hardcoded it was 0.5
0064     maxPhoEtaForPurity = cms.double(2.5),
0065     maxPhoZForPurity = cms.double(200.),
0066     maxPhoRForPurity = cms.double(100.),
0067 
0068 #
0069     minPhoEtCut = cms.double(0.),
0070 
0071 #
0072     useTP =  cms.bool(True),
0073 #
0074 
0075     etBin = cms.int32(100),                                  
0076     etMax = cms.double(100.0),                                  
0077     etMin = cms.double(0.0),
0078 #
0079     etaBin = cms.int32(100),
0080     etaBin2 = cms.int32(25),
0081     etaMin = cms.double(-2.5),
0082     etaMax = cms.double(2.5),
0083 #
0084     phiBin = cms.int32(100),
0085     phiMin = cms.double(-3.14),
0086     phiMax = cms.double(3.14),
0087 #
0088     resBin = cms.int32(100),
0089     resMin = cms.double(0.),
0090     resMax = cms.double(1.1),
0091 #
0092     eoverpBin =  cms.int32(100),
0093     eoverpMin =  cms.double(0.),
0094     eoverpMax =  cms.double(5.),
0095 #                                       
0096     dEtaTracksBin = cms.int32(100),
0097     dEtaTracksMin = cms.double(-0.2),
0098     dEtaTracksMax = cms.double(0.2),
0099 #
0100     dPhiTracksBin = cms.int32(100),
0101     dPhiTracksMin = cms.double(-0.5),
0102     dPhiTracksMax = cms.double(0.5),
0103 #
0104     dEtaBin = cms.int32(100),
0105     dEtaMin = cms.double(-0.2),
0106     dEtaMax = cms.double(0.2),
0107 #
0108     dPhiBin = cms.int32(100),
0109     dPhiMin = cms.double(-0.05),
0110     dPhiMax = cms.double(0.05),
0111 #
0112     rBin = cms.int32(60), 
0113     rMin = cms.double(0.),
0114     rMax = cms.double(120),
0115 #
0116     zBin = cms.int32(100),
0117     zMin = cms.double(-220.),
0118     zMax = cms.double(220),
0119 #
0120  
0121     dCotTracksBin = cms.int32(100),                              
0122     dCotTracksMin = cms.double(-0.12),
0123     dCotTracksMax = cms.double(0.12),
0124 #                                  
0125     chi2Min =  cms.double(0.),
0126     chi2Max =  cms.double(20.),                              
0127 #
0128 
0129     rBinForXray = cms.int32(200),
0130     rMinForXray = cms.double(0.),
0131     rMaxForXray = cms.double(80.),                               
0132     zBinForXray = cms.int32(100),
0133     zBin2ForXray = cms.int32(560),
0134     zMinForXray = cms.double(0.),
0135     zMaxForXray = cms.double(280.),                               
0136 
0137     simTracks = cms.InputTag("g4SimHits")
0138 )
0139 
0140 
0141 from Configuration.Eras.Modifier_fastSim_cff import fastSim
0142 fastSim.toModify(tkConversionValidation, simTracks = "fastSimProducer")