CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
27 
28 particleFlowClusterECAL.energyCorrector.verticesLabel = cms.InputTag('hiPixelAdaptiveVertex')
29 
30 mvaElectrons.vertexTag = cms.InputTag("hiSelectedVertex")
31 
32 particleFlowBlock.elementImporters = cms.VPSet(
33  cms.PSet( importerName = cms.string("GSFTrackImporter"),
34  source = cms.InputTag("pfTrackElec"),
35  gsfsAreSecondary = cms.bool(False),
36  superClustersArePF = cms.bool(True) ),
37  cms.PSet( importerName = cms.string("SuperClusterImporter"),
38  source_eb = cms.InputTag("particleFlowSuperClusterECAL:particleFlowSuperClusterECALBarrel"),
39  source_ee = cms.InputTag("particleFlowSuperClusterECAL:particleFlowSuperClusterECALEndcapWithPreshower"),
40  source_towers = cms.InputTag("towerMaker"),
41  maximumHoverE = cms.double(0.5),
42  minSuperClusterPt = cms.double(10.0),
43  minPTforBypass = cms.double(100.0),
44  superClustersArePF = cms.bool(True) ),
45  # all secondary track importers
46  cms.PSet( importerName = cms.string("GeneralTracksImporter"),
47  source = cms.InputTag("pfTrack"),
48  muonSrc = cms.InputTag("hiMuons1stStep"),
49  useIterativeTracking = cms.bool(False),
50  DPtOverPtCuts_byTrackAlgo = cms.vdouble(-1.0,-1.0,-1.0,
51  1.0,1.0),
52  NHitCuts_byTrackAlgo = cms.vuint32(3,3,3,3,3)
53  ),
54  # to properly set SC based links you need to run ECAL importer
55  # after you've imported all SCs to the block
56  cms.PSet( importerName = cms.string("ECALClusterImporter"),
57  source = cms.InputTag("particleFlowClusterECAL"),
58  BCtoPFCMap = cms.InputTag('particleFlowSuperClusterECAL:PFClusterAssociationEBEE') ),
59  cms.PSet( importerName = cms.string("GenericClusterImporter"),
60  source = cms.InputTag("particleFlowClusterHCAL") ),
61  cms.PSet( importerName = cms.string("GenericClusterImporter"),
62  source = cms.InputTag("particleFlowClusterHO") ),
63  cms.PSet( importerName = cms.string("GenericClusterImporter"),
64  source = cms.InputTag("particleFlowClusterHF") ),
65  cms.PSet( importerName = cms.string("GenericClusterImporter"),
66  source = cms.InputTag("particleFlowClusterPS") )
67  )
68 
69 particleFlowTmp.postMuonCleaning = cms.bool(False)
70 particleFlowTmp.vertexCollection = cms.InputTag("hiSelectedVertex")
71 particleFlowTmp.usePFElectrons = cms.bool(True)
72 particleFlowTmp.muons = cms.InputTag("hiMuons1stStep")
73 particleFlowTmp.usePFConversions = cms.bool(False)
74 
75 
77 
78 # local reco must run before electrons (RecoHI/HiEgammaAlgos), due to PF integration
79 hiParticleFlowLocalReco = cms.Sequence(particleFlowCluster)
80 
81 
82 #PF Reco runs after electrons
83 hiParticleFlowReco = cms.Sequence( pfGsfElectronMVASelectionSequence
84  * particleFlowBlock
85  * particleFlowEGammaFull
86  * photonIsolationHIProducerGED
87  * particleFlowTmp
88  * hiRecoPFJets
89  )