CMS 3D CMS Logo

PDWG_EXOHSCP_cff.py
Go to the documentation of this file.
1 TRACK_PT = 20.0
2 import FWCore.ParameterSet.Config as cms
4 
6 
7 generalTracksSkim = Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi.AlignmentTrackSelector.clone(
8  src = 'generalTracks',
9 # src = 'TrackRefitter',
10  filter = False,
11  applyBasicCuts = True,
12  ptMin = TRACK_PT,
13  ptMax = cms.double(999999.0),
14  nHitMin = 5,
15  chi2nMax = 10.,
16 )
17 trackerSeq = cms.Sequence( generalTracksSkim)
18 
19 
22 TrackRefitterSkim = TrackRefitter.clone()
23 TrackRefitterSkim.src = "generalTracksSkim"
24 
25 
26 from RecoTracker.DeDx.dedxEstimators_cff import dedxHarmonic2
27 dedxSkimNPHarm2 = dedxHarmonic2.clone()
28 dedxSkimNPHarm2.tracks = cms.InputTag("TrackRefitterSkim")
29 dedxSkimNPHarm2.UsePixel = cms.bool(False)
30 
31 DedxFilter = cms.EDFilter("HSCPFilter",
32  inputMuonCollection = cms.InputTag("muons"),
33  inputTrackCollection = cms.InputTag("TrackRefitterSkim"),
34  inputDedxCollection = cms.InputTag("dedxSkimNPHarm2"),
35  SAMuPtMin = cms.double(60),
36  trkPtMin = cms.double(TRACK_PT),
37  dedxMin =cms.double(3.0),
38  dedxMaxLeft =cms.double(2.8),
39  ndedxHits = cms.int32(3),
40  etaMin= cms.double(-2.4),
41  etaMax= cms.double(2.4),
42  chi2nMax = cms.double(10),
43  dxyMax = cms.double(2.0),
44  dzMax = cms.double(5),
45  filter = cms.bool(True)
46 
47 )
48 
49 dedxSeq = cms.Sequence(offlineBeamSpot + MeasurementTrackerEvent + TrackRefitterSkim + dedxSkimNPHarm2+DedxFilter)
50 
51 
54 
55 muonEcalDetIdsEXOHSCP = cms.EDProducer("InterestingEcalDetIdProducer",
56  inputCollection = cms.InputTag("muons")
57  )
58 highPtTrackEcalDetIds = cms.EDProducer("HighPtTrackEcalDetIdProducer",
59  #TrackAssociatorParameterBlock
60  TrackAssociatorParameters=TrackAssociatorParameterBlock.TrackAssociatorParameters,
61  inputCollection = cms.InputTag("generalTracksSkim"),
62  TrackPt=cms.double(TRACK_PT)
63  )
64 
65 
66 
67 detIdProduceSeq = cms.Sequence(muonEcalDetIdsEXOHSCP+highPtTrackEcalDetIds)
68 
69 reducedHSCPEcalRecHitsEB = cms.EDProducer("ReducedRecHitCollectionProducer",
70  recHitsLabel = cms.InputTag("ecalRecHit","EcalRecHitsEB"),
71  interestingDetIdCollections = cms.VInputTag(
72  #high p_t tracker track ids
73  cms.InputTag("highPtTrackEcalDetIds"),
74  #muons
75  cms.InputTag("muonEcalDetIdsEXOHSCP")
76  ),
77  reducedHitsCollection = cms.string('')
78 )
79 reducedHSCPEcalRecHitsEE = cms.EDProducer("ReducedRecHitCollectionProducer",
80  recHitsLabel = cms.InputTag("ecalRecHit","EcalRecHitsEE"),
81  interestingDetIdCollections = cms.VInputTag(
82  #high p_t tracker track ids
83  cms.InputTag("highPtTrackEcalDetIds"),
84  #muons
85  cms.InputTag("muonEcalDetIdsEXOHSCP")
86  ),
87  reducedHitsCollection = cms.string('')
88 )
89 
90 
91 ecalSeq = cms.Sequence(detIdProduceSeq+reducedHSCPEcalRecHitsEB+reducedHSCPEcalRecHitsEE)
92 
93 
94 reducedHSCPhbhereco = cms.EDProducer("ReduceHcalRecHitCollectionProducer",
95  recHitsLabel = cms.InputTag("hbhereco",""),
96  TrackAssociatorParameters=TrackAssociatorParameterBlock.TrackAssociatorParameters,
97  inputCollection = cms.InputTag("generalTracksSkim"),
98  TrackPt=cms.double(TRACK_PT),
99  reducedHitsCollection = cms.string('')
100 )
101 
102 hcalSeq = cms.Sequence(reducedHSCPhbhereco)
103 
104 muonsSkim = cms.EDProducer("UpdatedMuonInnerTrackRef",
105  MuonTag = cms.untracked.InputTag("muons"),
106  OldTrackTag = cms.untracked.InputTag("generalTracks"),
107  NewTrackTag = cms.untracked.InputTag("generalTracksSkim"),
108  maxInvPtDiff = cms.untracked.double(0.005),
109  minDR = cms.untracked.double(0.01),
110 )
111 muonSeq = cms.Sequence(muonsSkim)
112 
113 
114 
115 TrackAssociatorParametersForHSCPIsol = TrackAssociatorParameterBlock.TrackAssociatorParameters.clone()
116 TrackAssociatorParametersForHSCPIsol.useHO = cms.bool(False)
117 TrackAssociatorParametersForHSCPIsol.CSCSegmentCollectionLabel = cms.InputTag("cscSegments")
118 TrackAssociatorParametersForHSCPIsol.DTRecSegment4DCollectionLabel = cms.InputTag("dt4DSegments")
119 TrackAssociatorParametersForHSCPIsol.EERecHitCollectionLabel = cms.InputTag("ecalRecHit","EcalRecHitsEE")
120 TrackAssociatorParametersForHSCPIsol.EBRecHitCollectionLabel = cms.InputTag("ecalRecHit","EcalRecHitsEB")
121 TrackAssociatorParametersForHSCPIsol.HBHERecHitCollectionLabel = cms.InputTag("hbhereco")
122 
123 
124 HSCPIsolation01 = cms.EDProducer("ProduceIsolationMap",
125  inputCollection = cms.InputTag("generalTracksSkim"),
126  IsolationConeDR = cms.double(0.1),
127  TkIsolationPtCut = cms.double(10),
128  TKLabel = cms.InputTag("generalTracks"),
129  TrackAssociatorParameters=TrackAssociatorParametersForHSCPIsol,
130 )
131 
132 HSCPIsolation03 = HSCPIsolation01.clone()
133 HSCPIsolation03.IsolationConeDR = cms.double(0.3)
134 
135 HSCPIsolation05 = HSCPIsolation01.clone()
136 HSCPIsolation05.IsolationConeDR = cms.double(0.5)
137 
138 exoticaRecoIsoPhotonSeq = cms.EDFilter("MonoPhotonSkimmer",
139  phoTag = cms.InputTag("photons::RECO"),
140  selectEE = cms.bool(True),
141  ecalisoOffsetEB = cms.double(4.2),
142  ecalisoSlopeEB = cms.double(0.006),
143  hcalisoOffsetEB = cms.double(2.2),
144  hcalisoSlopeEB = cms.double(0.0025),
145  hadoveremEB = cms.double(0.05),
146  minPhoEtEB = cms.double(20.),
147  trackIsoOffsetEB = cms.double(2.),
148  trackIsoSlopeEB = cms.double(0.001),
149  etaWidthEB = cms.double(0.013),
150 
151  ecalisoOffsetEE = cms.double(4.2),
152  ecalisoSlopeEE = cms.double(0.006),
153  hcalisoOffsetEE = cms.double(2.2),
154  hcalisoSlopeEE = cms.double(0.0025),
155  hadoveremEE = cms.double(0.05),
156  minPhoEtEE = cms.double(20.),
157  trackIsoOffsetEE = cms.double(2.),
158  trackIsoSlopeEE = cms.double(0.001),
159  etaWidthEE = cms.double(0.03),
160 
161 
162 
163 )
164 
165 
166 exoticaHSCPSeq = cms.Sequence(trackerSeq+dedxSeq+ecalSeq+hcalSeq+muonSeq+HSCPIsolation01+HSCPIsolation03+HSCPIsolation05)
167 exoticaHSCPIsoPhotonSeq = cms.Sequence(exoticaRecoIsoPhotonSeq + trackerSeq+ecalSeq+hcalSeq+muonSeq+HSCPIsolation01+HSCPIsolation03+HSCPIsolation05)
168 
169 EXOHSCPSkim_EventContent=cms.PSet(
170  outputCommands = cms.untracked.vstring(
171  "drop *",
172  "keep GenEventInfoProduct_generator_*_*",
173  "keep L1GlobalTriggerReadoutRecord_*_*_*",
174  "keep recoVertexs_offlinePrimaryVertices_*_*",
175  "keep recoMuons_muonsSkim_*_*",
176  "keep SiStripClusteredmNewDetSetVector_generalTracksSkim_*_*",
177  "keep SiPixelClusteredmNewDetSetVector_generalTracksSkim_*_*",
178  "keep recoTracks_generalTracksSkim_*_*",
179  "keep recoTrackExtras_generalTracksSkim_*_*",
180  "keep TrackingRecHitsOwned_generalTracksSkim_*_*",
181  'keep *_dt1DRecHits_*_*',
182  'keep *_dt4DSegments_*_*',
183  'keep *_csc2DRecHits_*_*',
184  'keep *_cscSegments_*_*',
185  'keep *_rpcRecHits_*_*',
186  'keep recoTracks_standAloneMuons_*_*',
187  'keep recoTrackExtras_standAloneMuons_*_*',
188  'keep TrackingRecHitsOwned_standAloneMuons_*_*',
189  'keep recoTracks_globalMuons_*_*',
190  'keep recoTrackExtras_globalMuons_*_*',
191  'keep TrackingRecHitsOwned_globalMuons_*_*',
192  'keep EcalRecHitsSorted_reducedHSCPEcalRecHitsEB_*_*',
193  'keep EcalRecHitsSorted_reducedHSCPEcalRecHitsEE_*_*',
194  'keep HBHERecHitsSorted_reducedHSCPhbhereco__*',
195  'keep edmTriggerResults_TriggerResults__*',
196  'keep *_hltTriggerSummaryAOD_*_*',
197  'keep *_HSCPIsolation01__*',
198  'keep *_HSCPIsolation03__*',
199  'keep *_HSCPIsolation05__*',
200  'keep recoPFJets_ak4PFJets__*',
201  'keep recoPFMETs_pfMet__*',
202  'keep recoBeamSpot_offlineBeamSpot__*',
203  )
204  )
205 
206 
dont throw on unknown path names