CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HLTSiStripMonitoring_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 hltESPDummyDetLayerGeometry = DummyDetLayerGeometry.clone(
5  ComponentName = "hltESPDummyDetLayerGeometry"
6 )
7 
8 # strip cluster monitor
9 # in order to get the crossing angle through the sensor
10 # the track trajectory is needed
11 # => the track re-fit has to be performed
12 # => some ESProducer have to be defined
13 
14 ## NB: the following ESProducer should be the same used in the HLT menu
15 ## make sure they are not already defined somewhereelse in the final configuration
17 hltESPPixelCPETemplateReco = templates.clone(
18  LoadTemplatesFromDB = True ,
19  ComponentName = "hltESPPixelCPETemplateReco" ,
20  Alpha2Order = True ,
21  ClusterProbComputationFlag = 0 ,
22  speed = -2 ,
23  UseClusterSplitter = False
24 )
25 
26 from RecoLocalTracker.SiPixelRecHits.PixelCPEGeneric_cfi import PixelCPEGenericESProducer
27 hltESPPixelCPEGeneric = PixelCPEGenericESProducer.clone(
28  EdgeClusterErrorX = 50.0 ,
29  DoCosmics = False ,
30  LoadTemplatesFromDB = True ,
31  UseErrorsFromTemplates = True ,
32  eff_charge_cut_highX = 1.0 ,
33  TruncatePixelCharge = True ,
34  size_cutY = 3.0 ,
35  size_cutX = 3.0 ,
36  inflate_all_errors_no_trk_angle = False ,
37  IrradiationBiasCorrection = False ,
38  inflate_errors = False ,
39  eff_charge_cut_lowX = 0.0 ,
40  eff_charge_cut_highY = 1.0 ,
41  ClusterProbComputationFlag = 0 ,
42  EdgeClusterErrorY = 85.0 ,
43  ComponentName = "hltESPPixelCPEGeneric" ,
44  eff_charge_cut_lowY = 0.0 ,
45  Alpha2Order = True
46 )
47 
48 from RecoTracker.TransientTrackingRecHit.TTRHBuilderWithTemplate_cfi import TTRHBuilderAngleAndTemplate
49 hltESPTTRHBuilderAngleAndTemplate = TTRHBuilderAngleAndTemplate.clone(
50  StripCPE = "hltESPStripCPEfromTrackAngle" ,
51  Matcher = "StandardMatcher" ,
52  ComputeCoarseLocalPositionFromDisk = False ,
53  PixelCPE = "hltESPPixelCPETemplateReco",
54  ComponentName ="hltESPTTRHBuilderAngleAndTemplate"
55 )
56 hltESPTTRHBWithTrackAngle = TTRHBuilderAngleAndTemplate.clone(
57  StripCPE = "hltESPStripCPEfromTrackAngle",
58  Matcher = "StandardMatcher",
59  ComputeCoarseLocalPositionFromDisk = False,
60  PixelCPE = "hltESPPixelCPEGeneric",
61  ComponentName = "hltESPTTRHBWithTrackAngle"
62 )
63 
65 hltESPStripCPEfromTrackAngle = stripCPEESProducer.clone(
66  ComponentType = "StripCPEfromTrackAngle" ,
67  ComponentName = "hltESPStripCPEfromTrackAngle",
68  parameters = cms.PSet(
69  mLC_P2 = cms.double(0.3),
70  mLC_P1 = cms.double(0.618),
71  mLC_P0 = cms.double(-0.326),
72 # useLegacyError = cms.bool( True ), # 50ns menu
73 # maxChgOneMIP = cms.double( -6000.0 ), # 50ns menu
74  useLegacyError = cms.bool(False) , # 25ns menu
75  maxChgOneMIP = cms.double(6000.0) , #25ns menu
76  mTEC_P1 = cms.double( 0.471 ),
77  mTEC_P0 = cms.double( -1.885 ),
78  mTOB_P0 = cms.double( -1.026 ),
79  mTOB_P1 = cms.double( 0.253 ),
80  mTIB_P0 = cms.double( -0.742 ),
81  mTIB_P1 = cms.double( 0.202 ),
82  mTID_P0 = cms.double( -1.427 ),
83  mTID_P1 = cms.double( 0.433 )
84  )
85 )
86 
87 from RecoTracker.TkNavigation.NavigationSchoolESProducer_cfi import navigationSchoolESProducer
88 navigationSchoolESProducer = navigationSchoolESProducer.clone(
89  ComponentName = "SimpleNavigationSchool" ,
90  SimpleMagneticField ="ParabolicMf"
91 )
92 
94 hltESPMeasurementTracker = MeasurementTracker.clone(
95  UseStripStripQualityDB = True ,
96  StripCPE = "hltESPStripCPEfromTrackAngle",
97  UsePixelROCQualityDB = True ,
98  DebugPixelROCQualityDB = False,
99  UseStripAPVFiberQualityDB = True ,
100  badStripCuts = cms.PSet(
101  TOB = cms.PSet(
102  maxConsecutiveBad = cms.uint32( 9999 ),
103  maxBad = cms.uint32( 9999 )
104  ),
105  TID = cms.PSet(
106  maxConsecutiveBad = cms.uint32( 9999 ),
107  maxBad = cms.uint32( 9999 )
108  ),
109  TEC = cms.PSet(
110  maxConsecutiveBad = cms.uint32( 9999 ),
111  maxBad = cms.uint32( 9999 )
112  ),
113  TIB = cms.PSet(
114  maxConsecutiveBad = cms.uint32( 9999 ),
115  maxBad = cms.uint32( 9999 )
116  )
117  ),
118  DebugStripModuleQualityDB = False ,
119  ComponentName ="hltESPMeasurementTracker",
120  DebugPixelModuleQualityDB = False,
121  UsePixelModuleQualityDB = True,
122  DebugStripAPVFiberQualityDB = False,
123  HitMatcher = "StandardMatcher",
124  DebugStripStripQualityDB = False,
125  PixelCPE = "hltESPPixelCPEGeneric",
126  SiStripQualityLabel = "" ,
127  UseStripModuleQualityDB = True,
128  MaskBadAPVFibers = True
129 )
130 
131 hltESPRungeKuttaTrackerPropagator = cms.ESProducer( "PropagatorWithMaterialESProducer",
132  SimpleMagneticField = cms.string( "" ),
133  PropagationDirection = cms.string( "alongMomentum" ),
134  ComponentName = cms.string( "hltESPRungeKuttaTrackerPropagator" ),
135  Mass = cms.double( 0.105 ),
136  ptMin = cms.double( -1.0 ),
137  MaxDPhi = cms.double( 1.6 ),
138  useRungeKutta = cms.bool( True )
139 )
140 
141 from TrackingTools.KalmanUpdators.KFUpdatorESProducer_cfi import KFUpdatorESProducer
142 hltESPKFUpdator = KFUpdatorESProducer.clone(
143  ComponentName = "hltESPKFUpdator"
144 )
145 
146 hltESPChi2MeasurementEstimator30 = cms.ESProducer( "Chi2MeasurementEstimatorESProducer",
147  appendToDataLabel = cms.string( "" ),
148  MinimalTolerance = cms.double( 10.0 ),
149  MaxDisplacement = cms.double( 100.0 ),
150  ComponentName = cms.string( "hltESPChi2MeasurementEstimator30" ),
151  nSigma = cms.double( 3.0 ),
152  MaxSagitta = cms.double( -1.0 ),
153  MaxChi2 = cms.double( 30.0 ),
154  MinPtForHitRecoveryInGluedDet = cms.double( 1000000.0 )
155 )
156 
157 from TrackingTools.TrackFitters.KFTrajectoryFitter_cfi import KFTrajectoryFitter
158 hltESPTrajectoryFitterRK = KFTrajectoryFitter.clone(
159  minHits = cms.int32( 3 ),
160  ComponentName = cms.string( "hltESPTrajectoryFitterRK" ),
161  Estimator = cms.string( "hltESPChi2MeasurementEstimator30" ),
162  Updator = cms.string( "hltESPKFUpdator" ),
163  Propagator = cms.string( "hltESPRungeKuttaTrackerPropagator" ),
164  RecoGeometry = cms.string( "hltESPDummyDetLayerGeometry" )
165 )
166 
167 hltSiStripExcludedFEDListProducer = cms.EDProducer( "SiStripExcludedFEDListProducer",
168  ProductLabel = cms.InputTag( "rawDataCollector" )
169 )
170 
171 hltMeasurementTrackerEvent = cms.EDProducer( "MeasurementTrackerEventProducer",
172  inactivePixelDetectorLabels = cms.VInputTag( ),
173  stripClusterProducer = cms.string( "hltSiStripRawToClustersFacility" ),
174  pixelClusterProducer = cms.string( "hltSiPixelClusters" ),
175  switchOffPixelsIfEmpty = cms.bool( True ),
176  inactiveStripDetectorLabels = cms.VInputTag( ),
177  skipClusters = cms.InputTag( "" ),
178  measurementTracker = cms.string( "hltESPMeasurementTracker" )
179 )
180 
181 #####
182 hltESPTrajectoryFitterRK = cms.ESProducer( "KFTrajectoryFitterESProducer",
183  appendToDataLabel = cms.string( "" ),
184  minHits = cms.int32( 3 ),
185  ComponentName = cms.string( "hltESPTrajectoryFitterRK" ),
186  Estimator = cms.string( "hltESPChi2MeasurementEstimator30" ),
187  Updator = cms.string( "hltESPKFUpdator" ),
188  Propagator = cms.string( "hltESPRungeKuttaTrackerPropagator" ),
189  RecoGeometry = cms.string( "hltESPDummyDetLayerGeometry" )
190 )
191 hltESPTrajectorySmootherRK = cms.ESProducer( "KFTrajectorySmootherESProducer",
192  errorRescaling = cms.double( 100.0 ),
193  minHits = cms.int32( 3 ),
194  ComponentName = cms.string( "hltESPTrajectorySmootherRK" ),
195  appendToDataLabel = cms.string( "" ),
196  Estimator = cms.string( "hltESPChi2MeasurementEstimator30" ),
197  Updator = cms.string( "hltESPKFUpdator" ),
198  Propagator = cms.string( "hltESPRungeKuttaTrackerPropagator" ),
199  RecoGeometry = cms.string( "hltESPDummyDetLayerGeometry" )
200 )
201 hltESPFittingSmootherIT = cms.ESProducer( "KFFittingSmootherESProducer",
202  EstimateCut = cms.double( -1.0 ),
203  appendToDataLabel = cms.string( "" ),
204  LogPixelProbabilityCut = cms.double( -16.0 ),
205  MinDof = cms.int32( 2 ),
206  NoOutliersBeginEnd = cms.bool( False ),
207  Fitter = cms.string( "hltESPTrajectoryFitterRK" ),
208  MinNumberOfHits = cms.int32( 3 ),
209  Smoother = cms.string( "hltESPTrajectorySmootherRK" ),
210  MaxNumberOfOutliers = cms.int32( 3 ),
211  BreakTrajWith2ConsecutiveMissing = cms.bool( True ),
212  MaxFractionOutliers = cms.double( 0.3 ),
213  NoInvalidHitsBeginEnd = cms.bool( True ),
214  ComponentName = cms.string( "hltESPFittingSmootherIT" ),
215  RejectTracks = cms.bool( True )
216 )
217 
218 
219 
221 hltTrackRefitterForSiStripMonitorTrack.TTRHBuilder = cms.string('hltESPTTRHBWithTrackAngle')
222 hltTrackRefitterForSiStripMonitorTrack.Propagator = cms.string('hltESPRungeKuttaTrackerPropagator')
223 hltTrackRefitterForSiStripMonitorTrack.Fitter = cms.string('hltESPFittingSmootherIT')
224 hltTrackRefitterForSiStripMonitorTrack.MeasurementTrackerEvent = cms.InputTag('hltMeasurementTrackerEvent')
225 hltTrackRefitterForSiStripMonitorTrack.NavigationSchool = cms.string('navigationSchoolESProducer')
226 hltTrackRefitterForSiStripMonitorTrack.src = cms.InputTag("hltTracksMerged") # hltIter2Merged
227 
228 HLTSiStripMonitorTrack.TopFolderName = cms.string('HLT/SiStrip')
229 HLTSiStripMonitorTrack.TrackProducer = 'hltTrackRefitterForSiStripMonitorTrack'
230 HLTSiStripMonitorTrack.TrackLabel = ''
231 HLTSiStripMonitorTrack.Cluster_src = cms.InputTag('hltSiStripRawToClustersFacility')
232 HLTSiStripMonitorTrack.AlgoName = cms.string("HLT")
233 HLTSiStripMonitorTrack.Trend_On = cms.bool(True)
234 HLTSiStripMonitorTrack.Mod_On = cms.bool(False)
235 HLTSiStripMonitorTrack.OffHisto_On = cms.bool(True)
236 HLTSiStripMonitorTrack.HistoFlag_On = cms.bool(False)
237 HLTSiStripMonitorTrack.TkHistoMap_On = cms.bool(False)
238 
239 HLTSiStripMonitorClusterAPVgainCalibration = HLTSiStripMonitorCluster.clone()
241 #HLTSiStripMonitorClusterAPVgainCalibration.BPTXfilter = genericTriggerEventFlag4fullTrackerAndHLTnoHIPnoOOTdb # HLT_ZeroBias_FirstCollisionAfterAbortGap_*
242 HLTSiStripMonitorClusterAPVgainCalibration.BPTXfilter = cms.PSet(
243  andOr = cms.bool( False ),
244 ### DCS selection
245  dcsInputTag = cms.InputTag( "scalersRawToDigi" ),
246  dcsRecordInputTag = cms.InputTag( "onlineMetaDataDigis" ),
247  dcsPartitions = cms.vint32 ( 24, 25, 26, 27, 28, 29 ),
248  andOrDcs = cms.bool( False ),
249  errorReplyDcs = cms.bool( True ),
250 ### HLT selection
251  andOrHlt = cms.bool(True),# True:=OR; False:=AND
252  hltInputTag = cms.InputTag( "TriggerResults::HLT" ),
253  hltPaths = cms.vstring("HLT_ZeroBias_FirstCollisionAfterAbortGap_v*"),
254  errorReplyHlt = cms.bool( False ),
255 # errorReplyHlt = cms.bool( True ),
256 ### L1 selection
257 # andOrL1 = cms.bool( True ),
258 # l1Algorithms = cms.vstring("L1_ZeroBias_FirstCollidingBunch"),
259 ## l1BeforeMask = cms.bool( True ), # specifies, if the L1 algorithm decision should be read as before (true) or after (false) masking is applied.
260 # l1BeforeMask = cms.bool( False ), # specifies, if the L1 algorithm decision should be read as before (true) or after (false) masking is applied.
261 # errorReplyL1 = cms.bool( False ),
262  verbosityLevel = cms.uint32(1)
263 )
264 HLTSiStripMonitorClusterAPVgainCalibration.TopFolderName = cms.string('HLT/SiStrip/ZeroBias_FirstCollisionAfterAbortGap')
265 
266 sistripOnlineMonitorHLTsequence = cms.Sequence(
267  hltMeasurementTrackerEvent
268  * sistripMonitorHLTsequence # strip cluster monitoring
269  * HLTSiStripMonitorClusterAPVgainCalibration
270 )
std::unique_ptr< TrajectoryFitter > clone() const override