CMS 3D CMS Logo

NewSelectors_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # TrackingParticle (MC truth) selectors
4 NewMuonTPSet = 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 
20 NewMe0MuonTPSet = cms.PSet(
21  src = cms.InputTag("mix", "MergedTrackTruth"),
22  pdgId = cms.vint32(13, -13),
23  tip = cms.double(3.5),
24  lip = cms.double(30.0),
25  minHit = cms.int32(0),
26  ptMin = cms.double(0.9),
27  ptMax = cms.double(1e100),
28  minRapidity = cms.double(-2.8),
29  maxRapidity = cms.double(2.8),
30  signalOnly = cms.bool(True),
31  intimeOnly = cms.bool(True), # discard OOT PU
32  stableOnly = cms.bool(True), # discard decays in flight from the signal event
33  chargedOnly = cms.bool(True)
34 )
35 
36 NewDisplacedMuonTPSet = cms.PSet(
37  src = cms.InputTag("mix", "MergedTrackTruth"),
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 
67 #muonTP = cms.EDFilter("TrackingParticleSelector",
68 # muonTPSet
69 #)
70 
71 # RecoTrack selectors
72 #muonGlb = cms.EDFilter("RecoTrackSelector",
73 # src = cms.InputTag("globalMuons"),
74 # tip = cms.double(3.5),
75 # lip = cms.double(30.0),
76 # minHit = cms.int32(8),
77 # maxChi2 = cms.double(999),
78 # ptMin = cms.double(0.8),
79 # quality = cms.string("Chi2"),
80 # minRapidity = cms.double(-2.5),
81 # maxRapidity = cms.double(2.5)
82 #)
83 #
84 #muonSta = cms.EDFilter("RecoTrackSelector",
85 # src = cms.InputTag("standAloneMuons","UpdatedAtVtx"),
86 # tip = cms.double(999.0),
87 # lip = cms.double(999.0),
88 # minHit = cms.int32(1),
89 # maxChi2 = cms.double(999),
90 # ptMin = cms.double(0.8),
91 # quality = cms.string("Chi2"),
92 # minRapidity = cms.double(-2.5),
93 # maxRapidity = cms.double(2.5)
94 #)
95 
96 #muonSelector_step = cms.Sequence(muonTP+muonGlb+muonSta)
97 
98 #muonSelector_seq = cms.Sequence(muonTP)