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.minSCEtBarrel = cms.double(15.0)
14 gedGsfElectronsTmp.minSCEtEndcaps = cms.double(15.0)
15 gedPhotonsTmp.primaryVertexProducer = cms.InputTag("hiSelectedVertex")
16 gedPhotonsTmp.isolationSumsCalculatorSet.trackProducer = cms.InputTag("hiGeneralTracks")
17 gedPhotons.primaryVertexProducer = cms.InputTag("hiSelectedVertex")
18 gedPhotons.isolationSumsCalculatorSet.trackProducer = cms.InputTag("hiGeneralTracks")
19 from RecoHI.HiEgammaAlgos.photonIsolationHIProducer_cfi import photonIsolationHIProducer
20 photonIsolationHIProducerGED = photonIsolationHIProducer.clone(photonProducer=cms.InputTag("gedPhotonsTmp"))
21 
22 #These are set for consistency w/ HiElectronSequence, but these cuts need to be studied
23 gedGsfElectronsTmp.maxHOverEBarrel = cms.double(0.25)
24 gedGsfElectronsTmp.maxHOverEEndcaps = cms.double(0.25)
25 gedGsfElectronsTmp.maxEOverPBarrel = cms.double(2.)
26 gedGsfElectronsTmp.maxEOverPEndcaps = cms.double(2.)
27 
28 ootPhotons.primaryVertexProducer = cms.InputTag("hiSelectedVertex")
29 ootPhotons.isolationSumsCalculatorSet.trackProducer = cms.InputTag("hiGeneralTracks")
30 
32 
33 particleFlowClusterECAL.energyCorrector.verticesLabel = cms.InputTag('hiPixelAdaptiveVertex')
34 
35 mvaElectrons.vertexTag = cms.InputTag("hiSelectedVertex")
36 
37 particleFlowBlock.elementImporters = cms.VPSet(
38  cms.PSet( importerName = cms.string("GSFTrackImporter"),
39  source = cms.InputTag("pfTrackElec"),
40  gsfsAreSecondary = cms.bool(False),
41  superClustersArePF = cms.bool(True) ),
42  cms.PSet( importerName = cms.string("SuperClusterImporter"),
43  source_eb = cms.InputTag("particleFlowSuperClusterECAL:particleFlowSuperClusterECALBarrel"),
44  source_ee = cms.InputTag("particleFlowSuperClusterECAL:particleFlowSuperClusterECALEndcapWithPreshower"),
45  source_towers = cms.InputTag("towerMaker"),
46  maximumHoverE = cms.double(0.5),
47  minSuperClusterPt = cms.double(10.0),
48  minPTforBypass = cms.double(100.0),
49  superClustersArePF = cms.bool(True) ),
50  # all secondary track importers
51  cms.PSet( importerName = cms.string("GeneralTracksImporter"),
52  source = cms.InputTag("pfTrack"),
53  muonSrc = cms.InputTag("hiMuons1stStep"),
54  useIterativeTracking = cms.bool(False),
55  DPtOverPtCuts_byTrackAlgo = cms.vdouble(-1.0,-1.0,-1.0,
56  1.0,1.0),
57  NHitCuts_byTrackAlgo = cms.vuint32(3,3,3,3,3)
58  ),
59  # to properly set SC based links you need to run ECAL importer
60  # after you've imported all SCs to the block
61  cms.PSet( importerName = cms.string("ECALClusterImporter"),
62  source = cms.InputTag("particleFlowClusterECAL"),
63  BCtoPFCMap = cms.InputTag('particleFlowSuperClusterECAL:PFClusterAssociationEBEE') ),
64  cms.PSet( importerName = cms.string("GenericClusterImporter"),
65  source = cms.InputTag("particleFlowClusterHCAL") ),
66  cms.PSet( importerName = cms.string("GenericClusterImporter"),
67  source = cms.InputTag("particleFlowClusterHO") ),
68  cms.PSet( importerName = cms.string("GenericClusterImporter"),
69  source = cms.InputTag("particleFlowClusterHF") ),
70  cms.PSet( importerName = cms.string("GenericClusterImporter"),
71  source = cms.InputTag("particleFlowClusterPS") )
72  )
73 
74 particleFlowTmp.postMuonCleaning = cms.bool(False)
75 particleFlowTmp.vertexCollection = cms.InputTag("hiSelectedVertex")
76 particleFlowTmp.usePFElectrons = cms.bool(True)
77 particleFlowTmp.muons = cms.InputTag("hiMuons1stStep")
78 particleFlowTmp.usePFConversions = cms.bool(False)
79 
80 pfNoPileUpIso.enable = False
81 pfPileUpIso.Enable = False
82 pfNoPileUp.enable = False
83 pfPileUp.Enable = False
84 particleFlow.Muons = cms.InputTag("muons","hiMuons1stStep2muonsMap")
85 
86 
87 # local reco must run before electrons (RecoHI/HiEgammaAlgos), due to PF integration
88 hiParticleFlowLocalReco = cms.Sequence(particleFlowCluster)
89 
90 particleFlowTmpSeq = cms.Sequence(particleFlowTmp)
91 
92 #PF Reco runs after electrons
93 hiParticleFlowReco = cms.Sequence( pfGsfElectronMVASelectionSequence
94  * particleFlowBlock
95  * particleFlowEGammaFull
96  * photonIsolationHIProducerGED
97  * particleFlowTmpSeq
98  * fixedGridRhoFastjetAllTmp
99  * particleFlowTmpPtrs
100  * particleFlowEGammaFinal
101  * pfParticleSelectionSequence
102  )
103 
104 particleFlowLinks = cms.Sequence( particleFlow*particleFlowPtrs*chargedHadronPFTrackIsolation*particleBasedIsolationSequence)