CMS 3D CMS Logo

Reconstruction_hiPF_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # include particle flow local reconstruction
5 
6 # run a trimmed down PF sequence with heavy-ion vertex, no conversions, nucl int, etc.
7 
9 particleFlowEGamma.vertexCollection = cms.InputTag("hiSelectedVertex")
10 gedGsfElectronCores.ctfTracks = cms.InputTag("hiGeneralTracks")
11 gedGsfElectronsTmp.ctfTracksTag = cms.InputTag("hiGeneralTracks")
12 gedGsfElectronsTmp.vtxTag = cms.InputTag("hiSelectedVertex")
13 gedGsfElectronsTmp.preselection.minSCEtBarrel = cms.double(15.0)
14 gedGsfElectronsTmp.preselection.minSCEtEndcaps = cms.double(15.0)
15 gedGsfElectronsTmp.fillConvVtxFitProb = cms.bool(False)
16 
17 gedPhotonsTmp.primaryVertexProducer = cms.InputTag("hiSelectedVertex")
18 gedPhotonsTmp.isolationSumsCalculatorSet.trackProducer = cms.InputTag("hiGeneralTracks")
19 gedPhotons.primaryVertexProducer = cms.InputTag("hiSelectedVertex")
20 gedPhotons.isolationSumsCalculatorSet.trackProducer = cms.InputTag("hiGeneralTracks")
21 photonIDValueMaps.vertices = cms.InputTag("hiSelectedVertex")
22 from RecoHI.HiEgammaAlgos.photonIsolationHIProducer_cfi import photonIsolationHIProducer
23 photonIsolationHIProducerGED = photonIsolationHIProducer.clone(photonProducer=cms.InputTag("gedPhotonsTmp"))
24 
25 #These are set for consistency w/ HiElectronSequence, but these cuts need to be studied
26 gedGsfElectronsTmp.preselection.maxHOverEBarrelCone = cms.double(0.25)
27 gedGsfElectronsTmp.preselection.maxHOverEEndcapsCone = cms.double(0.25)
28 gedGsfElectronsTmp.preselection.maxHOverEBarrelTower = cms.double(0.0)
29 gedGsfElectronsTmp.preselection.maxHOverEEndcapsTower = cms.double(0.0)
30 gedGsfElectronsTmp.preselection.maxEOverPBarrel = cms.double(2.)
31 gedGsfElectronsTmp.preselection.maxEOverPEndcaps = cms.double(2.)
32 
33 ootPhotonsTmp.primaryVertexProducer = cms.InputTag("hiSelectedVertex")
34 ootPhotonsTmp.isolationSumsCalculatorSet.trackProducer = cms.InputTag("hiGeneralTracks")
35 ootPhotons.primaryVertexProducer = cms.InputTag("hiSelectedVertex")
36 ootPhotons.isolationSumsCalculatorSet.trackProducer = cms.InputTag("hiGeneralTracks")
37 
39 
40 particleFlowClusterECAL.energyCorrector.verticesLabel = cms.InputTag('hiPixelAdaptiveVertex')
41 
42 mvaElectrons.vertexTag = cms.InputTag("hiSelectedVertex")
43 
44 particleFlowBlock.elementImporters = cms.VPSet(
45  cms.PSet( importerName = cms.string("GSFTrackImporter"),
46  source = cms.InputTag("pfTrackElec"),
47  gsfsAreSecondary = cms.bool(False),
48  superClustersArePF = cms.bool(True) ),
49  cms.PSet( importerName = cms.string("SuperClusterImporter"),
50  source_eb = cms.InputTag("particleFlowSuperClusterECAL:particleFlowSuperClusterECALBarrel"),
51  source_ee = cms.InputTag("particleFlowSuperClusterECAL:particleFlowSuperClusterECALEndcapWithPreshower"),
52  source_towers = cms.InputTag("towerMaker"),
53  maximumHoverE = cms.double(0.5),
54  minSuperClusterPt = cms.double(10.0),
55  minPTforBypass = cms.double(100.0),
56  superClustersArePF = cms.bool(True) ),
57  # all secondary track importers
58  cms.PSet( importerName = cms.string("GeneralTracksImporter"),
59  source = cms.InputTag("pfTrack"),
60  muonSrc = cms.InputTag("hiMuons1stStep"),
61  useIterativeTracking = cms.bool(False),
62  DPtOverPtCuts_byTrackAlgo = cms.vdouble(-1.0,-1.0,-1.0,
63  1.0,1.0),
64  NHitCuts_byTrackAlgo = cms.vuint32(3,3,3,3,3)
65  ),
66  # to properly set SC based links you need to run ECAL importer
67  # after you've imported all SCs to the block
68  cms.PSet( importerName = cms.string("ECALClusterImporter"),
69  source = cms.InputTag("particleFlowClusterECAL"),
70  BCtoPFCMap = cms.InputTag('particleFlowSuperClusterECAL:PFClusterAssociationEBEE') ),
71  cms.PSet( importerName = cms.string("GenericClusterImporter"),
72  source = cms.InputTag("particleFlowClusterHCAL") ),
73  cms.PSet( importerName = cms.string("GenericClusterImporter"),
74  source = cms.InputTag("particleFlowClusterHO") ),
75  cms.PSet( importerName = cms.string("GenericClusterImporter"),
76  source = cms.InputTag("particleFlowClusterHF") ),
77  cms.PSet( importerName = cms.string("GenericClusterImporter"),
78  source = cms.InputTag("particleFlowClusterPS") )
79  )
80 
81 particleFlowTmp.postMuonCleaning = cms.bool(False)
82 particleFlowTmp.vertexCollection = cms.InputTag("hiSelectedVertex")
83 particleFlowTmp.muons = cms.InputTag("hiMuons1stStep")
84 particleFlowTmp.usePFConversions = cms.bool(False)
85 
86 pfNoPileUpIso.enable = False
87 pfPileUpIso.Enable = False
88 pfNoPileUp.enable = False
89 pfPileUp.Enable = False
90 particleFlow.Muons = cms.InputTag("muons","hiMuons1stStep2muonsMap")
91 
92 
93 # local reco must run before electrons (RecoHI/HiEgammaAlgos), due to PF integration
94 hiParticleFlowLocalRecoTask = cms.Task(particleFlowClusterTask)
95 hiParticleFlowLocalReco = cms.Sequence(hiParticleFlowLocalRecoTask)
96 
97 particleFlowTmpTask = cms.Task(particleFlowTmp)
98 particleFlowTmpSeq = cms.Sequence(particleFlowTmpTask)
99 
100 #PF Reco runs after electrons
101 hiParticleFlowRecoTask = cms.Task( pfGsfElectronMVASelectionTask
102  , particleFlowBlock
103  , particleFlowEGammaFullTask
104  , photonIsolationHIProducerGED
105  , particleFlowTmpTask
106  , fixedGridRhoFastjetAllTmp
107  , particleFlowTmpPtrs
108  , particleFlowEGammaFinalTask
109  , pfParticleSelectionTask
110  )
111 hiParticleFlowReco = cms.Sequence(hiParticleFlowRecoTask)
112 
113 particleFlowLinksTask = cms.Task( particleFlow,particleFlowPtrs,chargedHadronPFTrackIsolation,particleBasedIsolationTask)
114 particleFlowLinks = cms.Sequence(particleFlowLinksTask)