CMS 3D CMS Logo

HiCentrality_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 hiCentrality = cms.EDProducer("CentralityProducer",
4 
5  produceHFhits = cms.bool(True),
6  produceHFtowers = cms.bool(True),
7  produceEcalhits = cms.bool(True),
8  produceZDChits = cms.bool(True),
9  produceETmidRapidity = cms.bool(True),
10  producePixelhits = cms.bool(True),
11  produceTracks = cms.bool(True),
12  producePixelTracks = cms.bool(True),
13  reUseCentrality = cms.bool(False),
14 
15  srcHFhits = cms.InputTag("hfreco"),
16  srcTowers = cms.InputTag("towerMaker"),
17  srcEBhits = cms.InputTag("ecalRecHit","EcalRecHitsEB"),
18  srcEEhits = cms.InputTag("ecalRecHit","EcalRecHitsEE"),
19  srcZDChits = cms.InputTag("zdcreco"),
20  srcPixelhits = cms.InputTag("siPixelRecHits"),
21  srcTracks = cms.InputTag("hiGeneralTracks"),
22  srcVertex= cms.InputTag("hiSelectedVertex"),
23  srcReUse = cms.InputTag("hiCentrality"),
24  srcPixelTracks = cms.InputTag("hiPixel3PrimTracks"),
25 
26  doPixelCut = cms.bool(True),
27  UseQuality = cms.bool(True),
28  TrackQuality = cms.string('highPurity'),
29  trackEtaCut = cms.double(2),
30  trackPtCut = cms.double(1),
31  hfEtaCut = cms.double(4), #hf above the absolute value of this cut is used
32  midRapidityRange = cms.double(1),
33  lowGainZDC = cms.bool(True),
34 
35  )
36 
37 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
38 from Configuration.Eras.Modifier_pp_on_AA_2018_cff import pp_on_AA_2018
39 for e in [pp_on_XeXe_2017, pp_on_AA_2018]:
40  e.toModify(hiCentrality,
41  producePixelTracks = True,
42  srcPixelTracks = "hiConformalPixelTracks",
43  srcTracks = cms.InputTag("generalTracks"),
44  srcVertex = cms.InputTag("offlinePrimaryVertices")
45  )
46