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 fastSim.toModify(trackingParticles,
42  # for unknown reasons, fastsim needs this flag on
43  allowDifferentSimHitProcesses = True,
44  # fastsim labels for simhits, simtracks, simvertices
45  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('fastSimProducer','TrackerHits') )
50  ),
51  simTrackCollection = 'fastSimProducer',
52  simVertexCollection = 'fastSimProducer'
53 )
54 
55 from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017
56 run2_GEM_2017.toModify(trackingParticles, simHitCollections = dict(
57  muon = trackingParticles.simHitCollections.muon+[cms.InputTag("g4SimHits","MuonGEMHits")]))
58 
59 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
60 run3_GEM.toModify(trackingParticles, simHitCollections = dict(
61  muon = trackingParticles.simHitCollections.muon+[cms.InputTag("g4SimHits","MuonGEMHits")]))
62 
63 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
64 phase2_muon.toModify( trackingParticles, simHitCollections = dict(
65  muon = trackingParticles.simHitCollections.muon+[cms.InputTag("g4SimHits","MuonME0Hits")]))
66 
67 from Configuration.Eras.Modifier_phase2_GE0_cff import phase2_GE0
68 phase2_GE0.toModify( trackingParticles, simHitCollections = dict(
69  muon = list(filter(lambda x: x != cms.InputTag("g4SimHits","MuonME0Hits"),
70  trackingParticles.simHitCollections.muon))))
71 
72 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
73 phase2_tracker.toModify( trackingParticles, simHitCollections = dict( tracker = []) )
ALCARECOTkAlBeamHalo_cff.filter
filter
Definition: ALCARECOTkAlBeamHalo_cff.py:27