CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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  ptMaxTP = cms.double(1e100),
55  maxRapidityTP = cms.double(2.6),
56  tipTP = cms.double(1000)
57  )
58 )
59 
60 trackingParticleSelection = cms.Sequence(mergedtruth)
61 
62 from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017
63 run2_GEM_2017.toModify(trackingParticleSelection, simHitCollections = dict(
64  muon = trackingParticleSelection.simHitCollections.muon+["g4SimHitsMuonGEMHits"]))
65 
66 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
67 run3_GEM.toModify(trackingParticleSelection, simHitCollections = dict(
68  muon = trackingParticleSelection.simHitCollections.muon+["g4SimHitsMuonGEMHits"]))
69 
70 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
71 from Configuration.Eras.Modifier_phase2_GE0_cff import phase2_GE0
72 (phase2_muon & ~phase2_GE0).toModify( trackingParticleSelection, simHitCollections = dict(
73  muon = trackingParticleSelection.simHitCollections.muon+["g4SimHitsMuonME0Hits"]))