CMS 3D CMS Logo

TrackingParticleSelection_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 mergedtruth = cms.EDProducer("TrackingTruthProducer",
4 
5  mixLabel = cms.string('mix'),
6  simHitLabel = cms.string('g4SimHits'),
7  volumeRadius = cms.double(1200.0),
8  vertexDistanceCut = cms.double(0.003),
9  volumeZ = cms.double(3000.0),
10  mergedBremsstrahlung = cms.bool(True),
11  removeDeadModules = cms.bool(False),
12 
13  HepMCDataLabels = cms.vstring('generatorSmeared',
14  'generator',
15  'PythiaSource',
16  'source'
17  ),
18 
19  useMultipleHepMCLabels = cms.bool(False),
20 
21  simHitCollections = cms.PSet(
22  pixel = cms.vstring (
23  'g4SimHitsTrackerHitsPixelBarrelLowTof',
24  'g4SimHitsTrackerHitsPixelBarrelHighTof',
25  'g4SimHitsTrackerHitsPixelEndcapLowTof',
26  'g4SimHitsTrackerHitsPixelEndcapHighTof'
27  ),
28  tracker = cms.vstring (
29  'g4SimHitsTrackerHitsTIBLowTof',
30  'g4SimHitsTrackerHitsTIBHighTof',
31  'g4SimHitsTrackerHitsTIDLowTof',
32  'g4SimHitsTrackerHitsTIDHighTof',
33  'g4SimHitsTrackerHitsTOBLowTof',
34  'g4SimHitsTrackerHitsTOBHighTof',
35  'g4SimHitsTrackerHitsTECLowTof',
36  'g4SimHitsTrackerHitsTECHighTof'
37  ),
38  muon = cms.vstring (
39  'g4SimHitsMuonDTHits',
40  'g4SimHitsMuonCSCHits',
41  'g4SimHitsMuonRPCHits'
42  )
43  ),
44 
45  select = cms.PSet(
46  lipTP = cms.double(1000),
47  chargedOnlyTP = cms.bool(True),
48  pdgIdTP = cms.vint32(),
49  signalOnlyTP = cms.bool(True),
50  intimeOnlyTP = cms.bool(False),
51  minRapidityTP = cms.double(-2.6),
52  minHitTP = cms.int32(3),
53  ptMinTP = cms.double(0.2),
54  maxRapidityTP = cms.double(2.6),
55  tipTP = cms.double(1000)
56  )
57 )
58 
59 trackingParticleSelection = cms.Sequence(mergedtruth)
60 
61 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
62 run3_GEM.toModify(trackingParticleSelection, simHitCollections = dict(
63  muon = trackingParticleSelection.simHitCollections.muon+["g4SimHitsMuonGEMHits"]))
64 
65 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
66 phase2_muon.toModify( trackingParticleSelection, simHitCollections = dict(
67  muon = trackingParticleSelection.simHitCollections.muon+["g4SimHitsMuonME0Hits"]))