test
CMS 3D CMS Logo

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