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