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  doHGCAL = cms.bool(True),
13  maximumPreviousBunchCrossing = cms.uint32(0),
14  maximumSubsequentBunchCrossing = cms.uint32(0),
15  simHitCollections = cms.PSet(
16  hgc = cms.VInputTag(
17  cms.InputTag('g4SimHits','HGCHitsEE'),
18  cms.InputTag('g4SimHits','HGCHitsHEfront'),
19  cms.InputTag('g4SimHits','HGCHitsHEback')
20  ),
21 # hcal = cms.VInputTag(cms.InputTag('g4SimHits','HcalHits')),
22 # ecal = cms.VInputTag(
23 # cms.InputTag('g4SimHits','EcalHitsEE'),
24 # cms.InputTag('g4SimHits','EcalHitsEB'),
25 # cms.InputTag('g4SimHits','EcalHitsES')
26 # )
27  ),
28  simTrackCollection = cms.InputTag('g4SimHits'),
29  simVertexCollection = cms.InputTag('g4SimHits'),
30  genParticleCollection = cms.InputTag('genParticles'),
31  allowDifferentSimHitProcesses = cms.bool(False), # should be True for FastSim, False for FullSim
32  HepMCProductLabel = cms.InputTag('generatorSmeared'),
33 )
34 
35 from Configuration.ProcessModifiers.premix_stage1_cff import premix_stage1
36 premix_stage1.toModify(caloParticles, premixStage1 = True)
37 
38 from Configuration.Eras.Modifier_phase2_hfnose_cff import phase2_hfnose
39 phase2_hfnose.toModify(
40  caloParticles,
41  simHitCollections = dict(
42  hgc = caloParticles.simHitCollections.hgc + [cms.InputTag('g4SimHits','HFNoseHits')],
43 # hcal = cms.VInputTag(cms.InputTag('g4SimHits','HcalHits'))
44  )
45 )
46 
47 from Configuration.ProcessModifiers.run3_ecalclustering_cff import run3_ecalclustering
48 run3_ecalclustering.toModify(
49  caloParticles,
50  simHitCollections = cms.PSet(
51  ecal = cms.VInputTag(
52  cms.InputTag('g4SimHits','EcalHitsEE'),
53  cms.InputTag('g4SimHits','EcalHitsEB'),
54  cms.InputTag('g4SimHits','EcalHitsES')
55  )
56  )
57 )
58 
59 from Configuration.Eras.Modifier_fastSim_cff import fastSim
60 fastSim.toReplaceWith(caloParticles, cms.PSet()) # don't allow this to run in fastsim
61