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