CMS 3D CMS Logo

caloTruthProducer_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 caloParticles = cms.PSet(
4  accumulatorType = cms.string('CaloTruthAccumulator'),
5 # createUnmergedCollection = cms.bool(True),
6 # createMergedBremsstrahlung = cms.bool(True),
7 # createInitialVertexCollection = cms.bool(False),
8 # alwaysAddAncestors = cms.bool(True),
9  MinEnergy = cms.double(0.5),
10  MaxPseudoRapidity = cms.double(5.0),
11  premixStage1 = cms.bool(False),
12  maximumPreviousBunchCrossing = cms.uint32(0),
13  maximumSubsequentBunchCrossing = cms.uint32(0),
14  simHitCollections = cms.PSet(
15  hgc = cms.VInputTag(
16  cms.InputTag('g4SimHits','HGCHitsEE'),
17  cms.InputTag('g4SimHits','HGCHitsHEfront'),
18  cms.InputTag('g4SimHits','HcalHits')
19  ),
20 # hcal = cms.VInputTag(cms.InputTag('g4SimHits','HcalHits')),
21 # ecal = cms.VInputTag(
22 # cms.InputTag('g4SimHits','EcalHitsEE'),
23 # cms.InputTag('g4SimHits','EcalHitsEB'),
24 # cms.InputTag('g4SimHits','EcalHitsES')
25 # )
26  ),
27  simTrackCollection = cms.InputTag('g4SimHits'),
28  simVertexCollection = cms.InputTag('g4SimHits'),
29  genParticleCollection = cms.InputTag('genParticles'),
30  allowDifferentSimHitProcesses = cms.bool(False), # should be True for FastSim, False for FullSim
31  HepMCProductLabel = cms.InputTag('generatorSmeared'),
32 )
33 
34 from Configuration.ProcessModifiers.premix_stage1_cff import premix_stage1
35 premix_stage1.toModify(caloParticles, premixStage1 = True)
36 
37 from Configuration.Eras.Modifier_phase2_hgcalV9_cff import phase2_hgcalV9
38 phase2_hgcalV9.toModify(
39  caloParticles,
40  simHitCollections = dict(hgc = {2 : cms.InputTag('g4SimHits','HGCHitsHEback')} ),
41 )
42 
43 from Configuration.Eras.Modifier_fastSim_cff import fastSim
44 fastSim.toReplaceWith(caloParticles, cms.PSet()) # don't allow this to run in fastsim
45