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 from Validation.RecoEgamma.tpSelection_cfi import *
0004 from Validation.RecoEgamma.photonValidator_cfi import *
0005 from Validation.RecoEgamma.tkConvValidator_cfi import *
0006 
0007 import Validation.RecoEgamma.photonValidator_cfi
0008 
0009 photonValidation.minPhoEtCut = 10
0010 photonValidation.eMax  = 500
0011 photonValidation.etMax = 250
0012 ## same for all
0013 photonValidation.convTrackMinPtCut = 1.
0014 photonValidation.useTP = True
0015 photonValidation.rBin = 48
0016 photonValidation.eoverpMin = 0.
0017 photonValidation.eoverpMax = 5.
0018 #
0019 pfPhotonValidation = Validation.RecoEgamma.photonValidator_cfi.photonValidation.clone()
0020 pfPhotonValidation.ComponentName = cms.string('pfPhotonValidation')
0021 pfPhotonValidation.OutputFileName = cms.string('PFPhotonValidationHistos.root')
0022 pfPhotonValidation.phoProducer = cms.string('gedPhotons')
0023 pfPhotonValidation.photonCollection = cms.string('')
0024 pfPhotonValidation.analyzerName = cms.string('pfPhotonValidator')
0025 pfPhotonValidation.minPhoEtCut = 10
0026 pfPhotonValidation.eMax  = 500
0027 pfPhotonValidation.etMax = 250
0028 ## same for all
0029 pfPhotonValidation.convTrackMinPtCut = 1.
0030 pfPhotonValidation.useTP = True
0031 pfPhotonValidation.rBin = 48
0032 pfPhotonValidation.eoverpMin = 0.
0033 pfPhotonValidation.eoverpMax = 5.
0034 #
0035 oldpfPhotonValidation = Validation.RecoEgamma.photonValidator_cfi.photonValidation.clone()
0036 oldpfPhotonValidation.ComponentName = cms.string('oldpfPhotonValidation')
0037 oldpfPhotonValidation.OutputFileName = cms.string('oldPFPhotonValidationHistos.root')
0038 oldpfPhotonValidation.phoProducer = cms.string('pfPhotonTranslator')
0039 oldpfPhotonValidation.photonCollection = cms.string('pfphot')
0040 oldpfPhotonValidation.analyzerName = cms.string('oldpfPhotonValidator')
0041 oldpfPhotonValidation.minPhoEtCut = 10
0042 oldpfPhotonValidation.eMax  = 500
0043 oldpfPhotonValidation.etMax = 250
0044 ## same for all
0045 oldpfPhotonValidation.convTrackMinPtCut = 1.
0046 oldpfPhotonValidation.useTP = True
0047 oldpfPhotonValidation.rBin = 48
0048 oldpfPhotonValidation.eoverpMin = 0.
0049 oldpfPhotonValidation.eoverpMax = 5.
0050 
0051 import Validation.RecoEgamma.tkConvValidator_cfi
0052 
0053 
0054 
0055 # selectors go in separate "pre-" sequence
0056 photonPrevalidationSequence = cms.Sequence(tpSelection*tpSelecForFakeRate*tpSelecForEfficiency)
0057 photonValidationSequence = cms.Sequence(trackAssociatorByHitsForPhotonValidation*photonValidation*pfPhotonValidation*trackAssociatorByHitsForConversionValidation*tkConversionValidation)
0058 
0059 
0060 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
0061 phase2_common.toModify( photonValidation, useTP = cms.bool(False) )
0062 phase2_common.toModify( pfPhotonValidation, useTP = cms.bool(False) )
0063 phase2_common.toModify( oldpfPhotonValidation, useTP = cms.bool(False) )
0064 phase2_common.toModify( tkConversionValidation, useTP = cms.bool(False) )
0065 
0066