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