CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
AddPileupSummary_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #pileupSummary = cms.EDProducer("PileupInformation",
4 addPileupInfo = cms.EDProducer("PileupInformation",
5  isPreMixed = cms.bool(False),
6  TrackingParticlesLabel = cms.InputTag('mergedtruth'),
7  PileupMixingLabel = cms.InputTag('mix'),
8  simHitLabel = cms.string('g4SimHits'),
9  volumeRadius = cms.double(1200.0),
10  vertexDistanceCut = cms.double(0.003),
11  volumeZ = cms.double(3000.0),
12  pTcut_1 = cms.double(0.1),
13  pTcut_2 = cms.double(0.5),
14  doTrackTruth = cms.untracked.bool(False),
15  saveVtxTimes = cms.bool(False)
16 )
17 
18 from Configuration.Eras.Modifier_phase2_timing_cff import phase2_timing
19 phase2_timing.toModify( addPileupInfo, saveVtxTimes = cms.bool(True) )
20 
21 #addPileupInfo = cms.Sequence(pileupSummary)
22 
23 # I'd like to move the contents of AddPileupSummaryPremixed_cfi here,
24 # but first I have to figure out what to do with the import of that
25 # cfi in DataMixerDataOnSim_cff (without any apparent connection to
26 # premxing)
27 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
28 from SimGeneral.PileupInformation.AddPileupSummaryPreMixed_cfi import addPileupInfo as _addPileupInfoPreMixed
29 premix_stage2.toReplaceWith(addPileupInfo, _addPileupInfoPreMixed)