CMS 3D CMS Logo

trackingTruthProducer_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 trackingParticles = cms.PSet(
4  accumulatorType = cms.string('TrackingTruthAccumulator'),
5  createUnmergedCollection = cms.bool(True),
6  createMergedBremsstrahlung = cms.bool(True),
7  createInitialVertexCollection = cms.bool(False),
8  alwaysAddAncestors = cms.bool(True),
9  maximumPreviousBunchCrossing = cms.uint32(9999),
10  maximumSubsequentBunchCrossing = cms.uint32(9999),
11  simHitCollections = cms.PSet(
12  muon = cms.VInputTag( cms.InputTag('g4SimHits','MuonDTHits'),
13  cms.InputTag('g4SimHits','MuonCSCHits'),
14  cms.InputTag('g4SimHits','MuonRPCHits') ),
15  tracker = cms.VInputTag( cms.InputTag('g4SimHits','TrackerHitsTIBLowTof'),
16  cms.InputTag('g4SimHits','TrackerHitsTIBHighTof'),
17  cms.InputTag('g4SimHits','TrackerHitsTIDLowTof'),
18  cms.InputTag('g4SimHits','TrackerHitsTIDHighTof'),
19  cms.InputTag('g4SimHits','TrackerHitsTOBLowTof'),
20  cms.InputTag('g4SimHits','TrackerHitsTOBHighTof'),
21  cms.InputTag('g4SimHits','TrackerHitsTECLowTof'),
22  cms.InputTag('g4SimHits','TrackerHitsTECHighTof') ),
23  pixel = cms.VInputTag(cms.InputTag( 'g4SimHits','TrackerHitsPixelBarrelLowTof'),
24  cms.InputTag('g4SimHits','TrackerHitsPixelBarrelHighTof'),
25  cms.InputTag('g4SimHits','TrackerHitsPixelEndcapLowTof'),
26  cms.InputTag('g4SimHits','TrackerHitsPixelEndcapHighTof') )
27  ),
28  simTrackCollection = cms.InputTag('g4SimHits'),
29  simVertexCollection = cms.InputTag('g4SimHits'),
30  genParticleCollection = cms.InputTag('genParticles'),
31  removeDeadModules = cms.bool(False), # currently not implemented
32  volumeRadius = cms.double(120.0),
33  volumeZ = cms.double(300.0),
34  vertexDistanceCut = cms.double(0.003),
35  ignoreTracksOutsideVolume = cms.bool(False),
36  allowDifferentSimHitProcesses = cms.bool(False), # should be True for FastSim, False for FullSim
37  HepMCProductLabel = cms.InputTag('generatorSmeared')
38 )
39 
40 from Configuration.Eras.Modifier_fastSim_cff import fastSim
41 if fastSim.isChosen():
42  # for unknown reasons, fastsim needs this flag on
43  trackingParticles.allowDifferentSimHitProcesses = True
44  # fastsim labels for simhits, simtracks, simvertices
45  trackingParticles.simHitCollections = cms.PSet(
46  muon = cms.VInputTag( cms.InputTag('MuonSimHits','MuonDTHits'),
47  cms.InputTag('MuonSimHits','MuonCSCHits'),
48  cms.InputTag('MuonSimHits','MuonRPCHits') ),
49  trackerAndPixel = cms.VInputTag( cms.InputTag('famosSimHits','TrackerHits') )
50  )
51  trackingParticles.simTrackCollection = cms.InputTag('famosSimHits')
52  trackingParticles.simVertexCollection = cms.InputTag('famosSimHits')
53 
54 from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017
55 run2_GEM_2017.toModify(trackingParticles, simHitCollections = dict(
56  muon = trackingParticles.simHitCollections.muon+[cms.InputTag("g4SimHits","MuonGEMHits")]))
57 
58 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
59 run3_GEM.toModify(trackingParticles, simHitCollections = dict(
60  muon = trackingParticles.simHitCollections.muon+[cms.InputTag("g4SimHits","MuonGEMHits")]))
61 
62 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
63 phase2_muon.toModify( trackingParticles, simHitCollections = dict(
64  muon = trackingParticles.simHitCollections.muon+[cms.InputTag("g4SimHits","MuonME0Hits")]))
65 
66 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
67 phase2_tracker.toModify( trackingParticles, simHitCollections = dict( tracker = []) )