CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
photonValidationSequence_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
6 
8 
9 photonValidation.minPhoEtCut = 10
10 photonValidation.eMax = 500
11 photonValidation.etMax = 250
12 ## same for all
13 photonValidation.convTrackMinPtCut = 1.
14 photonValidation.useTP = True
15 photonValidation.rBin = 48
16 photonValidation.eoverpMin = 0.
17 photonValidation.eoverpMax = 5.
18 #
19 pfPhotonValidation = Validation.RecoEgamma.photonValidator_cfi.photonValidation.clone()
20 pfPhotonValidation.ComponentName = cms.string('pfPhotonValidation')
21 pfPhotonValidation.OutputFileName = cms.string('PFPhotonValidationHistos.root')
22 pfPhotonValidation.phoProducer = cms.string('gedPhotons')
23 pfPhotonValidation.photonCollection = cms.string('')
24 pfPhotonValidation.analyzerName = cms.string('pfPhotonValidator')
25 pfPhotonValidation.minPhoEtCut = 10
26 pfPhotonValidation.eMax = 500
27 pfPhotonValidation.etMax = 250
28 ## same for all
29 pfPhotonValidation.convTrackMinPtCut = 1.
30 pfPhotonValidation.useTP = True
31 pfPhotonValidation.rBin = 48
32 pfPhotonValidation.eoverpMin = 0.
33 pfPhotonValidation.eoverpMax = 5.
34 #
35 oldpfPhotonValidation = Validation.RecoEgamma.photonValidator_cfi.photonValidation.clone()
36 oldpfPhotonValidation.ComponentName = cms.string('oldpfPhotonValidation')
37 oldpfPhotonValidation.OutputFileName = cms.string('oldPFPhotonValidationHistos.root')
38 oldpfPhotonValidation.phoProducer = cms.string('pfPhotonTranslator')
39 oldpfPhotonValidation.photonCollection = cms.string('pfphot')
40 oldpfPhotonValidation.analyzerName = cms.string('oldpfPhotonValidator')
41 oldpfPhotonValidation.minPhoEtCut = 10
42 oldpfPhotonValidation.eMax = 500
43 oldpfPhotonValidation.etMax = 250
44 ## same for all
45 oldpfPhotonValidation.convTrackMinPtCut = 1.
46 oldpfPhotonValidation.useTP = True
47 oldpfPhotonValidation.rBin = 48
48 oldpfPhotonValidation.eoverpMin = 0.
49 oldpfPhotonValidation.eoverpMax = 5.
50 
52 
53 
54 
55 # selectors go in separate "pre-" sequence
56 photonPrevalidationSequence = cms.Sequence(tpSelection*tpSelecForFakeRate*tpSelecForEfficiency)
57 photonValidationSequence = cms.Sequence(trackAssociatorByHitsForPhotonValidation*photonValidation*pfPhotonValidation*trackAssociatorByHitsForConversionValidation*tkConversionValidation)
58 
59 
60 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
61 phase2_common.toModify( photonValidation, useTP = cms.bool(False) )
62 phase2_common.toModify( pfPhotonValidation, useTP = cms.bool(False) )
63 phase2_common.toModify( oldpfPhotonValidation, useTP = cms.bool(False) )
64 phase2_common.toModify( tkConversionValidation, useTP = cms.bool(False) )
65 
66