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','HcalHits')
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_hgcalV9_cff import phase2_hgcalV9
39 phase2_hgcalV9.toModify(
40  caloParticles,
41  simHitCollections = dict(hgc = {2 : cms.InputTag('g4SimHits','HGCHitsHEback')} ),
42 )
43 
44 #from Configuration.Eras.Modifier_phase2_hfnose_cff import phase2_hfnose
45 #phase2_hfnose.toModify(
46 # caloParticles,
47 # simHitCollections = dict(
48 # hgc = caloParticles.simHitCollections.hgc + [cms.InputTag('g4SimHits','HFNoseHits')],
49 # hcal = cms.VInputTag(cms.InputTag('g4SimHits','HcalHits'))
50 # )
51 #)
52 
53 from Configuration.ProcessModifiers.run3_ecalclustering_cff import run3_ecalclustering
54 run3_ecalclustering.toModify(
55  caloParticles,
56  simHitCollections = cms.PSet(
57  ecal = cms.VInputTag(
58  cms.InputTag('g4SimHits','EcalHitsEE'),
59  cms.InputTag('g4SimHits','EcalHitsEB'),
60  cms.InputTag('g4SimHits','EcalHitsES')
61  )
62  )
63 )
64 
65 from Configuration.Eras.Modifier_fastSim_cff import fastSim
66 fastSim.toReplaceWith(caloParticles, cms.PSet()) # don't allow this to run in fastsim
67