Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:33:37

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 import SimTracker.TrackAssociatorProducers.trackAssociatorByHits_cfi as tabh
0004 trackAssociatorByHitsForPhotonValidation = tabh.trackAssociatorByHits.clone()
0005 trackAssociatorByHitsForPhotonValidation.Cut_RecoToSim = 0.5
0006 trackAssociatorByHitsForPhotonValidation.Quality_SimToReco = 0.5
0007 trackAssociatorByHitsForPhotonValidation.Purity_SimToReco = 0.5
0008 trackAssociatorByHitsForPhotonValidation.SimToRecoDenominator = 'reco'
0009 
0010 
0011 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0012 photonValidation = DQMEDAnalyzer('PhotonValidator',
0013     ComponentName = cms.string('photonValidation'),
0014     OutputFileName = cms.string('PhotonValidationHistos.root'),
0015     scEndcapProducer = cms.string('correctedMulti5x5SuperClustersWithPreshower'),
0016     scBarrelProducer = cms.string('correctedHybridSuperClusters'),
0017     phoProducer = cms.string('photons'),
0018     pfCandidates = cms.InputTag("particleFlow"),
0019     #valueMapPhoToParticleBasedIso = cms.InputTag("particleBasedIsolation","valMapPhoToPFisolation"),
0020     valueMapPhoToParticleBasedIso = cms.string("gedPhotons"),                                                            
0021     conversionOITrackProducer =cms.string('ckfOutInTracksFromConversions'),
0022     conversionIOTrackProducer =cms.string('ckfInOutTracksFromConversions'),
0023     outInTrackCollection =cms.string(''),
0024     inOutTrackCollection =cms.string(''),
0025     photonCollection = cms.string(''),
0026     hbheInstance = cms.string(''),
0027     endcapEcalHits = cms.InputTag("ecalRecHit","EcalRecHitsEE"),
0028     barrelEcalHits = cms.InputTag("ecalRecHit","EcalRecHitsEB"),
0029     hbheModule = cms.string('hbhereco'),
0030     trackProducer = cms.InputTag("generalTracks"),
0031     label_tp = cms.InputTag("tpSelection"),
0032     Verbosity = cms.untracked.int32(0),
0033     fastSim = cms.bool(False),
0034     isRunCentrally = cms.bool(False),
0035     analyzerName = cms.string('PhotonValidator'),
0036 #
0037     minPhoEtCut = cms.double(10.),
0038     convTrackMinPtCut = cms.double(1.),
0039     likelihoodCut = cms.double(0.),
0040 #
0041     useTP = cms.bool(True),
0042 #
0043     eBin = cms.int32(100),
0044     eMin = cms.double(0.0),
0045     eMax = cms.double(500.0),
0046 #
0047     etScale = cms.double(0.1),
0048 #
0049     etBin = cms.int32(100),
0050     etMax = cms.double(250.),
0051     etMin = cms.double(0.0),
0052 #
0053     etaBin = cms.int32(100),
0054     etaBin2 = cms.int32(25),
0055     etaMin = cms.double(-2.5),
0056     etaMax = cms.double(2.5),
0057 #
0058     phiBin = cms.int32(100),
0059     phiMin = cms.double(-3.14),
0060     phiMax = cms.double(3.14),
0061 #
0062     r9Bin = cms.int32(200),
0063     r9Min = cms.double(0.0),
0064     r9Max = cms.double(1.1),
0065 #
0066     dEtaTracksBin = cms.int32(100),
0067     dEtaTracksMin = cms.double(-0.2),
0068     dEtaTracksMax = cms.double(0.2),
0069 #
0070     dPhiTracksBin = cms.int32(100),
0071     dPhiTracksMin = cms.double(-0.5),
0072     dPhiTracksMax = cms.double(0.5),
0073 #
0074     dEtaBin = cms.int32(100),
0075     dEtaMin = cms.double(-0.2),
0076     dEtaMax = cms.double(0.2),
0077 #
0078     dPhiBin = cms.int32(100),
0079     dPhiMin = cms.double(-0.05),
0080     dPhiMax = cms.double(0.05),
0081 #
0082     rBin = cms.int32(48),
0083     rMin = cms.double(0.),
0084     rMax = cms.double(120),
0085 #
0086     zBin = cms.int32(100),
0087     zMin = cms.double(-220.),
0088     zMax = cms.double(220),
0089 #
0090     resBin = cms.int32(100),
0091     resMin = cms.double(0.7),
0092     resMax = cms.double(1.2),
0093 #
0094     dCotCutOn =cms.bool(False),
0095     dCotCutValue=cms.double(0.05),
0096     dCotHardCutValue=cms.double(0.02),
0097 #
0098     dCotTracksBin = cms.int32(100),
0099     dCotTracksMin = cms.double(-2.),
0100     dCotTracksMax = cms.double(2.),
0101 #
0102     povereBin = cms.int32(100),
0103     povereMin = cms.double(0.),
0104     povereMax = cms.double(5.),
0105 #
0106     eoverpBin = cms.int32(100),
0107     eoverpMin = cms.double(0.),
0108     eoverpMax = cms.double(5.),
0109 #
0110     chi2Min = cms.double(0.),
0111     chi2Max = cms.double(20.),
0112 #
0113     ggMassBin =cms.int32(200),
0114     ggMassMin =cms.double(60.),
0115     ggMassMax =cms.double(160.),
0116 #
0117     rBinForXray = cms.int32(200),
0118     rMinForXray = cms.double(0.),
0119     rMaxForXray = cms.double(80.),
0120     zBinForXray = cms.int32(100),
0121     zBin2ForXray = cms.int32(560),
0122     zMinForXray = cms.double(0.),
0123     zMaxForXray = cms.double(280.),
0124                                   
0125 # Unused stuff
0126     hcalIsolExtR = cms.double(0.3),
0127     hcalIsolInnR = cms.double(0.0),
0128     minTrackPtCut = cms.double(1.5),
0129     minBcEtCut = cms.double(0.0),
0130     lipCut = cms.double(2.0),
0131     trkIsolInnR = cms.double(0.03),
0132     ecalIsolR = cms.double(0.35),
0133     trkIsolExtR = cms.double(0.3),
0134     maxNumOfTracksInCone = cms.int32(3),
0135     hcalEtSumCut = cms.double(6.0),
0136     minHcalHitEtCut = cms.double(0.0),
0137 
0138     trkPtSumCut = cms.double(9999.0),
0139     ecalEtSumCut = cms.double(5.0),
0140  
0141 )
0142 
0143 from Configuration.Eras.Modifier_fastSim_cff import fastSim
0144 fastSim.toModify(photonValidation, fastSim = True)
0145