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  minRapidity = cms.double(-2.4),
12  maxRapidity = cms.double(2.4),
13  signalOnly = cms.bool(True),
14  intimeOnly = cms.bool(True), # discard OOT PU
15  stableOnly = cms.bool(True), # discard decays in flight from the signal event
16  chargedOnly = cms.bool(True)
17 )
18 
19 NewMe0MuonTPSet = cms.PSet(
20  src = cms.InputTag("mix", "MergedTrackTruth"),
21  pdgId = cms.vint32(13, -13),
22  tip = cms.double(3.5),
23  lip = cms.double(30.0),
24  minHit = cms.int32(0),
25  ptMin = cms.double(0.9),
26  minRapidity = cms.double(-2.8),
27  maxRapidity = cms.double(2.8),
28  signalOnly = cms.bool(True),
29  intimeOnly = cms.bool(True), # discard OOT PU
30  stableOnly = cms.bool(True), # discard decays in flight from the signal event
31  chargedOnly = cms.bool(True)
32 )
33 
34 NewDisplacedMuonTPSet = cms.PSet(
35  src = cms.InputTag("mix", "MergedTrackTruth"),
36  pdgId = cms.vint32(13, -13),
37  tip = cms.double(85.), # radius to have at least the 3 outermost TOB layers
38  lip = cms.double(210.), # z to have at least the 3 outermost TEC layers
39  minHit = cms.int32(0),
40  ptMin = cms.double(0.9),
41  minRapidity = cms.double(-2.4),
42  maxRapidity = cms.double(2.4),
43  signalOnly = cms.bool(True),
44  intimeOnly = cms.bool(True), # discard OOT PU
45  stableOnly = cms.bool(True), # accept only TP from the Generator (linked to GenParticles)
46  chargedOnly = cms.bool(True)
47 )
48 
49 cosmicMuonTPSet = cms.PSet(
50  src = cms.InputTag("mix", "MergedTrackTruth"),
51  pdgId = cms.vint32(13, -13),
52  tip = cms.double(85.), # radius to have at least the 3 outermost TOB layers
53  lip = cms.double(210.), # z to have at least the 3 outermost TEC layers
54  minHit = cms.int32(0),
55  ptMin = cms.double(0.9),
56  minRapidity = cms.double(-2.4),
57  maxRapidity = cms.double(2.4),
58  signalOnly = cms.bool(True),
59  stableOnly = cms.bool(True), # accept only TP from the Generator (linked to GenParticles)
60  chargedOnly = cms.bool(True)
61 )
62 
63 #muonTP = cms.EDFilter("TrackingParticleSelector",
64 # muonTPSet
65 #)
66 
67 # RecoTrack selectors
68 #muonGlb = cms.EDFilter("RecoTrackSelector",
69 # src = cms.InputTag("globalMuons"),
70 # tip = cms.double(3.5),
71 # lip = cms.double(30.0),
72 # minHit = cms.int32(8),
73 # maxChi2 = cms.double(999),
74 # ptMin = cms.double(0.8),
75 # quality = cms.string("Chi2"),
76 # minRapidity = cms.double(-2.5),
77 # maxRapidity = cms.double(2.5)
78 #)
79 #
80 #muonSta = cms.EDFilter("RecoTrackSelector",
81 # src = cms.InputTag("standAloneMuons","UpdatedAtVtx"),
82 # tip = cms.double(999.0),
83 # lip = cms.double(999.0),
84 # minHit = cms.int32(1),
85 # maxChi2 = cms.double(999),
86 # ptMin = cms.double(0.8),
87 # quality = cms.string("Chi2"),
88 # minRapidity = cms.double(-2.5),
89 # maxRapidity = cms.double(2.5)
90 #)
91 
92 #muonSelector_step = cms.Sequence(muonTP+muonGlb+muonSta)
93 
94 #muonSelector_seq = cms.Sequence(muonTP)