CMS 3D CMS Logo

selectors_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # TrackingParticle (MC truth) selectors
4 muonTPSet = cms.PSet(
5  src = cms.InputTag("mix", "MergedTrackTruth"),
6  pdgId = cms.vint32(13, -13),
7  tip = cms.double(3.5),
8  lip = cms.double(30.0),
9  minHit = cms.int32(0),
10  ptMin = cms.double(0.9),
11  ptMax = cms.double(1e100),
12  minRapidity = cms.double(-2.4),
13  maxRapidity = cms.double(2.4),
14  signalOnly = cms.bool(True),
15  intimeOnly = cms.bool(True), # discard OOT PU
16  stableOnly = cms.bool(True), # discard decays in flight from the signal event
17  chargedOnly = cms.bool(True)
18 )
19 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
20 premix_stage2.toModify(muonTPSet, src = "mixData:MergedTrackTruth")
21 
22 me0MuonTPSet = muonTPSet.clone(
23  pdgId = cms.vint32(13, -13),
24  tip = cms.double(3.5),
25  lip = cms.double(30.0),
26  minHit = cms.int32(0),
27  ptMin = cms.double(0.9),
28  ptMax = cms.double(1e100),
29  minRapidity = cms.double(-2.8),
30  maxRapidity = cms.double(2.8),
31  signalOnly = cms.bool(True),
32  intimeOnly = cms.bool(True), # discard OOT PU
33  stableOnly = cms.bool(True), # discard decays in flight from the signal event
34  chargedOnly = cms.bool(True)
35 )
36 
37 displacedMuonTPSet = muonTPSet.clone(
38  pdgId = cms.vint32(13, -13),
39  tip = cms.double(85.), # radius to have at least the 3 outermost TOB layers
40  lip = cms.double(210.), # z to have at least the 3 outermost TEC layers
41  minHit = cms.int32(0),
42  ptMin = cms.double(0.9),
43  ptMax = cms.double(1e100),
44  minRapidity = cms.double(-2.4),
45  maxRapidity = cms.double(2.4),
46  signalOnly = cms.bool(True),
47  intimeOnly = cms.bool(True), # discard OOT PU
48  stableOnly = cms.bool(True), # accept only TP from the Generator (linked to GenParticles)
49  chargedOnly = cms.bool(True)
50 )
51 
52 cosmicMuonTPSet = cms.PSet(
53  src = cms.InputTag("mix", "MergedTrackTruth"),
54  pdgId = cms.vint32(13, -13),
55  tip = cms.double(85.), # radius to have at least the 3 outermost TOB layers
56  lip = cms.double(210.), # z to have at least the 3 outermost TEC layers
57  minHit = cms.int32(0),
58  ptMin = cms.double(0.9),
59  ptMax = cms.double(1e100),
60  minRapidity = cms.double(-2.4),
61  maxRapidity = cms.double(2.4),
62  signalOnly = cms.bool(True),
63  stableOnly = cms.bool(True), # accept only TP from the Generator (linked to GenParticles)
64  chargedOnly = cms.bool(True)
65 )
66 premix_stage2.toModify(cosmicMuonTPSet, src = "mixData:MergedTrackTruth")
67 
68 #muonTP = cms.EDFilter("TrackingParticleSelector",
69 # muonTPSet
70 #)
71 
72 # RecoTrack selectors
73 #muonGlb = cms.EDFilter("RecoTrackSelector",
74 # src = cms.InputTag("globalMuons"),
75 # tip = cms.double(3.5),
76 # lip = cms.double(30.0),
77 # minHit = cms.int32(8),
78 # maxChi2 = cms.double(999),
79 # ptMin = cms.double(0.8),
80 # quality = cms.string("Chi2"),
81 # minRapidity = cms.double(-2.5),
82 # maxRapidity = cms.double(2.5)
83 #)
84 #
85 #muonSta = cms.EDFilter("RecoTrackSelector",
86 # src = cms.InputTag("standAloneMuons","UpdatedAtVtx"),
87 # tip = cms.double(999.0),
88 # lip = cms.double(999.0),
89 # minHit = cms.int32(1),
90 # maxChi2 = cms.double(999),
91 # ptMin = cms.double(0.8),
92 # quality = cms.string("Chi2"),
93 # minRapidity = cms.double(-2.5),
94 # maxRapidity = cms.double(2.5)
95 #)
96 
97 #muonSelector_step = cms.Sequence(muonTP+muonGlb+muonSta)
98 
99 #muonSelector_seq = cms.Sequence(muonTP)