CMS 3D CMS Logo

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