CMS 3D CMS Logo

alternateValidationTemplates.py
Go to the documentation of this file.
1 ######################################################################
2 ######################################################################
3 otherTemplate = """
4 schum schum
5 """
6 
7 
8 ######################################################################
9 ######################################################################
10 CosmicsOfflineValidation="""
11 import FWCore.ParameterSet.Config as cms
12 
13 process = cms.Process("OfflineValidator")
14 
15 .oO[datasetDefinition]Oo.
16 
17 process.options = cms.untracked.PSet(
18  wantSummary = cms.untracked.bool(False),
19  Rethrow = cms.untracked.vstring("ProductNotFound"), # make this exception fatal
20  fileMode = cms.untracked.string('NOMERGE') # no ordering needed, but calls endRun/beginRun etc. at file boundaries
21 )
22 
23  ##
24  ## Messages & Convenience
25  ##
26 process.load("FWCore.MessageLogger.MessageLogger_cfi")
27 process.MessageLogger.cerr = cms.untracked.PSet(placeholder = cms.untracked.bool(True))
28 process.MessageLogger.cout = cms.untracked.PSet(INFO = cms.untracked.PSet(
29 reportEvery = cms.untracked.int32(1000) # every 1000th only
30 # limit = cms.untracked.int32(10) # or limit to 10 printouts...
31 ))
32 process.MessageLogger.statistics.append('cout')
33 
34  ##
35  ## Get the BeamSpot
36  ##
37 process.load("RecoVertex.BeamSpotProducer.BeamSpot_cff")
38 
39  #-- Refitting
40 process.load("RecoTracker.TrackProducer.TrackRefitters_cff")
41 
42 ##-- Track hit filter
43 ## TrackerTrackHitFilter takes as input the tracks/trajectories coming out from TrackRefitter1
44 #process.load("RecoTracker.FinalTrackSelectors.TrackerTrackHitFilter_cff")
45 #process.TrackerTrackHitFilter.src = 'TrackRefitter1'
46 
47 #-- 1st refit from file
48 process.TrackRefitter1 = process.TrackRefitterP5.clone(
49  src ='ALCARECOTkAlCosmicsCTF0T',
50  NavigationSchool = cms.string(''),
51  TrajectoryInEvent = True,
52  TTRHBuilder = "WithAngleAndTemplate" #default
53  )
54 
55 #-- 2nd fit for AlignmentProducer
56 process.TrackRefitter2 = process.TrackRefitter1.clone(
57  src = 'AlignmentTrackSelector'
58  )
59 
60 #-- Filter bad hits
61 process.load("RecoTracker.FinalTrackSelectors.TrackerTrackHitFilter_cff")
62 process.TrackerTrackHitFilter.src = 'TrackRefitter1'
63 process.TrackerTrackHitFilter.useTrajectories= True # this is needed only if you require some selections; but it will work even if you don't ask for them
64 process.TrackerTrackHitFilter.minimumHits = 8
65 process.TrackerTrackHitFilter.commands = cms.vstring("keep PXB","keep PXE","keep TIB","keep TID","keep TOB","keep TEC")
66 process.TrackerTrackHitFilter.detsToIgnore = []
67 process.TrackerTrackHitFilter.replaceWithInactiveHits = True
68 process.TrackerTrackHitFilter.stripAllInvalidHits = False
69 process.TrackerTrackHitFilter.rejectBadStoNHits = True
70 process.TrackerTrackHitFilter.StoNcommands = cms.vstring("ALL 18.0")
71 process.TrackerTrackHitFilter.rejectLowAngleHits = True
72 process.TrackerTrackHitFilter.TrackAngleCut = 0.1 # in rads, starting from the module surface
73 process.TrackerTrackHitFilter.usePixelQualityFlag = True #False
74 
75 #-- TrackProducer
76 ## now we give the TrackCandidate coming out of the TrackerTrackHitFilter to the track producer
77 import RecoTracker.TrackProducer.CTFFinalFitWithMaterialP5_cff
78 process.TrackCandidateFitter = RecoTracker.TrackProducer.CTFFinalFitWithMaterialP5_cff.ctfWithMaterialTracksCosmics.clone(
79 src = 'TrackerTrackHitFilter',
80  NavigationSchool = cms.string(''),
81  TTRHBuilder = "WithAngleAndTemplate"
82  )
83 #-- Filter tracks for alignment
84 process.load("Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi")
85 process.AlignmentTrackSelector.src = 'TrackCandidateFitter'
86 process.AlignmentTrackSelector.applyBasicCuts = True
87 process.AlignmentTrackSelector.pMin = 4
88 process.AlignmentTrackSelector.pMax = 9999.
89 process.AlignmentTrackSelector.ptMin = 0
90 process.AlignmentTrackSelector.etaMin = -999.
91 process.AlignmentTrackSelector.etaMax = 999.
92 process.AlignmentTrackSelector.nHitMin = 8
93 process.AlignmentTrackSelector.nHitMin2D = 2
94 process.AlignmentTrackSelector.chi2nMax = 99.
95 process.AlignmentTrackSelector.applyMultiplicityFilter = True# False
96 process.AlignmentTrackSelector.maxMultiplicity = 1
97 
98 .oO[LoadGlobalTagTemplate]Oo.
99 
100 ##
101 ## Geometry
102 ##
103 process.load("Configuration.Geometry.GeometryDB_cff")
104 
105 ##
106 ## Magnetic Field
107 ##
108 process.load("Configuration/StandardSequences/.oO[magneticField]Oo._cff")
109 
110 .oO[LorentzAngleTemplate]Oo.
111 
112  ##
113  ## Geometry
114  ##
115 #process.load("Configuration.Geometry.GeometryDB_cff")
116 
117 
118 .oO[condLoad]Oo.
119 
120  ##
121  ## Load and Configure OfflineValidation
122  ##
123 
124 process.load("Alignment.OfflineValidation.TrackerOfflineValidation_.oO[offlineValidationMode]Oo._cff")
125 process.TrackerOfflineValidation.oO[offlineValidationMode]Oo..Tracks = 'TrackRefitter2'
126 process.TrackerOfflineValidation.oO[offlineValidationMode]Oo..trajectoryInput = 'TrackRefitter2'
127 process.TrackerOfflineValidation.oO[offlineValidationMode]Oo..moduleLevelHistsTransient = cms.bool(.oO[offlineModuleLevelHistsTransient]Oo.)
128 process.TrackerOfflineValidation.oO[offlineValidationMode]Oo..moduleLevelProfiles = cms.bool(.oO[offlineModuleLevelProfiles]Oo.)
129 process.TrackerOfflineValidation.oO[offlineValidationMode]Oo..stripYResiduals = .oO[stripYResiduals]Oo.
130 process.TFileService.fileName = '.oO[outputFile]Oo.'
131 
132  ##
133  ## PATH
134  ##
135 
136 process.p = cms.Path( process.offlineBeamSpot
137  *process.TrackRefitter1
138  *process.TrackerTrackHitFilter
139  *process.TrackCandidateFitter
140  *process.AlignmentTrackSelector
141  *process.TrackRefitter2
142  *process.seqTrackerOfflineValidationStandalone
143 )
144 
145 
146 """
147 
148 
149 ######################################################################
150 ######################################################################
151 CosmicsAt0TOfflineValidation="""
152 import FWCore.ParameterSet.Config as cms
153 
154 process = cms.Process("OfflineValidator")
155 
156 .oO[datasetDefinition]Oo.
157 
158 process.options = cms.untracked.PSet(
159  wantSummary = cms.untracked.bool(False),
160  Rethrow = cms.untracked.vstring("ProductNotFound"), # make this exception fatal
161  fileMode = cms.untracked.string('NOMERGE') # no ordering needed, but calls endRun/beginRun etc. at file boundaries
162 )
163 
164  ##
165  ## Messages & Convenience
166  ##
167 process.load("FWCore.MessageLogger.MessageLogger_cfi")
168 process.MessageLogger.cerr = cms.untracked.PSet(placeholder = cms.untracked.bool(True))
169 process.MessageLogger.cout = cms.untracked.PSet(INFO = cms.untracked.PSet(
170 reportEvery = cms.untracked.int32(1000) # every 1000th only
171 # limit = cms.untracked.int32(10) # or limit to 10 printouts...
172 ))
173 process.MessageLogger.statistics.append('cout')
174 
175 
176 #-- Track hit filter
177 # TrackerTrackHitFilter takes as input the tracks/trajectories coming out from TrackRefitter1
178 process.load("RecoTracker.FinalTrackSelectors.TrackerTrackHitFilter_cff")
179 process.TrackerTrackHitFilter.src = 'TrackRefitter1'
180 
181 #-- Alignment Track Selection
182 process.load("Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi")
183 process.AlignmentTrackSelector.src = 'HitFilteredTracks'
184 process.AlignmentTrackSelector.filter = True
185 
186 .oO[TrackSelectionTemplate]Oo.
187 # Override the pmin setting since not meaningful with B=0T
188 process.AlignmentTrackSelector.pMin = 4.
189 
190 #### momentum constraint for 0T
191 # First momentum constraint
192 process.load("RecoTracker.TrackProducer.MomentumConstraintProducer_cff")
193 import RecoTracker.TrackProducer.MomentumConstraintProducer_cff
194 process.AliMomConstraint1 = RecoTracker.TrackProducer.MomentumConstraintProducer_cff.MyMomConstraint.clone()
195 process.AliMomConstraint1.src = '.oO[TrackCollection]Oo.'
196 process.AliMomConstraint1.fixedMomentum = 5.0
197 process.AliMomConstraint1.fixedMomentumError = 0.005
198 
199 # Second momentum constraint
200 #process.load("RecoTracker.TrackProducer.MomentumConstraintProducer_cff")
201 #import RecoTracker.TrackProducer.MomentumConstraintProducer_cff
202 #process.AliMomConstraint2 = RecoTracker.TrackProducer.MomentumConstraintProducer_cff.MyMomConstraint.clone()
203 #process.AliMomConstraint2.src = 'AlignmentTrackSelector'
204 #process.AliMomConstraint2.fixedMomentum = 5.0
205 #process.AliMomConstraint2.fixedMomentumError = 0.005
206 
207 
208 
209 #now we give the TrackCandidate coming out of the TrackerTrackHitFilter to the track producer
210 import RecoTracker.TrackProducer.CTFFinalFitWithMaterialP5_cff
211 process.HitFilteredTracks = RecoTracker.TrackProducer.CTFFinalFitWithMaterialP5_cff.ctfWithMaterialTracksCosmics.clone(
212  src = 'TrackerTrackHitFilter',
213  NavigationSchool = "",
214 ### TrajectoryInEvent = True,
215  TTRHBuilder = "WithAngleAndTemplate"
216 )
217 
218  ##
219  ## Load and Configure TrackRefitter1
220  ##
221 
222 process.load("RecoTracker.TrackProducer.TrackRefitters_cff")
223 
224 #############
225 # parameters for TrackRefitter
226 #process.load("RecoTracker.TrackProducer.RefitterWithMaterial_cff")
227 import RecoTracker.TrackProducer.TrackRefitters_cff
228 process.TrackRefitter1 = process.TrackRefitterP5.clone(
229  src = '.oO[TrackCollection]Oo.', #'AliMomConstraint1',
230  TrajectoryInEvent = True,
231  TTRHBuilder = "WithAngleAndTemplate",
232  NavigationSchool = ""
233  #constraint = 'momentum', ### SPECIFIC FOR CRUZET
234  #srcConstr='AliMomConstraint1' ### SPECIFIC FOR CRUZET$works only with tag V02-10-02 TrackingTools/PatternTools / or CMSSW >=31X
235 )
236 
237 process.TrackRefitter2 = process.TrackRefitter1.clone(
238  src = 'AlignmentTrackSelector',
239  srcConstr='AliMomConstraint1',
240  #constraint = 'momentum' ### SPECIFIC FOR CRUZET
241 )
242 
243 
244  ##
245  ## Get the BeamSpot
246  ##
247 process.load("RecoVertex.BeamSpotProducer.BeamSpot_cff")
248 
249 .oO[LoadGlobalTagTemplate]Oo.
250 
251 .oO[LorentzAngleTemplate]Oo.
252 
253  ##
254  ## Geometry
255  ##
256 process.load("Configuration.Geometry.GeometryDB_cff")
257 
258  ##
259  ## Magnetic Field
260  ##
261 process.load("Configuration.StandardSequences..oO[magneticField]Oo._cff")
262 
263 .oO[condLoad]Oo.
264 
265 ## to apply misalignments
266 #TrackerDigiGeometryESModule.applyAlignment = True
267 
268  ##
269  ## Load and Configure OfflineValidation
270  ##
271 process.load("Alignment.OfflineValidation.TrackerOfflineValidation_.oO[offlineValidationMode]Oo._cff")
272 process.TrackerOfflineValidation.oO[offlineValidationMode]Oo..Tracks = 'TrackRefitter2'
273 process.TrackerOfflineValidation.oO[offlineValidationMode]Oo..trajectoryInput = 'TrackRefitter2'
274 process.TrackerOfflineValidation.oO[offlineValidationMode]Oo..moduleLevelHistsTransient = cms.bool(.oO[offlineModuleLevelHistsTransient]Oo.)
275 process.TrackerOfflineValidation.oO[offlineValidationMode]Oo..moduleLevelProfiles = cms.bool(.oO[offlineModuleLevelProfiles]Oo.)
276 process.TrackerOfflineValidation.oO[offlineValidationMode]Oo..stripYResiduals = .oO[stripYResiduals]Oo.
277 process.TFileService.fileName = '.oO[outputFile]Oo.'
278 
279  ##
280  ## PATH
281  ##
282 
283 process.p = cms.Path(process.offlineBeamSpot*process.AliMomConstraint1*process.TrackRefitter1*process.TrackerTrackHitFilter*process.HitFilteredTracks
284  *process.AlignmentTrackSelector*process.TrackRefitter2*process.seqTrackerOfflineValidation.oO[offlineValidationMode]Oo.)
285 
286 """
287 
288 
289 ######################################################################
290 ######################################################################
291 TrackSelectionCosmicsDuringCollisions = """
292 ##### For Tracks:
293 process.AlignmentTrackSelector.applyBasicCuts = True
294 # Note that pMin is overridden and set to zero in
295 # the offlineTemplate0T
296 process.AlignmentTrackSelector.pMin = 4.
297 process.AlignmentTrackSelector.pMax = 9999.
298 process.AlignmentTrackSelector.ptMin = 0.
299 process.AlignmentTrackSelector.ptMax = 9999.
300 process.AlignmentTrackSelector.etaMin = -999.
301 process.AlignmentTrackSelector.etaMax = 999.
302 process.AlignmentTrackSelector.nHitMin = 8
303 process.AlignmentTrackSelector.nHitMin2D = 2
304 process.AlignmentTrackSelector.chi2nMax = 999.
305 process.AlignmentTrackSelector.applyMultiplicityFilter = False
306 process.AlignmentTrackSelector.maxMultiplicity = 1
307 process.AlignmentTrackSelector.applyNHighestPt = False
308 process.AlignmentTrackSelector.nHighestPt = 1
309 process.AlignmentTrackSelector.seedOnlyFrom = 0
310 process.AlignmentTrackSelector.applyIsolationCut = False
311 process.AlignmentTrackSelector.minHitIsolation = 0.8
312 process.AlignmentTrackSelector.applyChargeCheck = False
313 process.AlignmentTrackSelector.minHitChargeStrip = 50.
314 #process.AlignmentTrackSelector.trackQualities = ["highPurity"]
315 #process.AlignmentTrackSelector.iterativeTrackingSteps = ["iter1","iter2"]
316 
317 ##### For Hits:
318 process.TrackerTrackHitFilter.useTrajectories= True # this is needed only if you require some selections; but it will work even if you don't ask for them
319 process.TrackerTrackHitFilter.minimumHits = 8
320 process.TrackerTrackHitFilter.commands = cms.vstring("keep PXB","keep PXE","keep TIB","keep TID","keep TOB","keep TEC")
321 process.TrackerTrackHitFilter.detsToIgnore = []
322 process.TrackerTrackHitFilter.replaceWithInactiveHits = True
323 process.TrackerTrackHitFilter.stripAllInvalidHits = False
324 process.TrackerTrackHitFilter.rejectBadStoNHits = True
325 process.TrackerTrackHitFilter.StoNcommands = cms.vstring("ALL 18.0")
326 process.TrackerTrackHitFilter.rejectLowAngleHits= True
327 process.TrackerTrackHitFilter.TrackAngleCut= 0.35 # in rads, starting from the module surface
328 process.TrackerTrackHitFilter.usePixelQualityFlag= True
329 
330 #######################################
331 ##Trigger settings for Cosmics during collisions
332 #######################################
333 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff')
334 process.load('HLTrigger/HLTfilters/hltLevel1GTSeed_cfi')
335 process.L1T1=process.hltLevel1GTSeed.clone()
336 process.L1T1.L1TechTriggerSeeding = cms.bool(True)
337 process.L1T1.L1SeedsLogicalExpression=cms.string('25')
338 process.hltHighLevel = cms.EDFilter("HLTHighLevel",
339  TriggerResultsTag = cms.InputTag("TriggerResults","","HLT"),
340  HLTPaths = cms.vstring('HLT_TrackerCosmics'),
341  eventSetupPathsKey = cms.string(''),
342  andOr = cms.bool(False),
343  throw = cms.bool(True)
344 )
345 
346 
347 process.triggerSelection=cms.Sequence(process.L1T1*process.hltHighLevel)
348 """
349 
350 
351 ######################################################################
352 ######################################################################
353 TrackSelectionCosmicsData = """
354 ##### For Tracks:
355 process.AlignmentTrackSelector.applyBasicCuts = True
356 # Note that pMin is overridden and set to zero in
357 # the offlineTemplate0T
358 process.AlignmentTrackSelector.pMin = 4.
359 process.AlignmentTrackSelector.pMax = 9999.
360 process.AlignmentTrackSelector.ptMin = 0.
361 process.AlignmentTrackSelector.ptMax = 9999.
362 process.AlignmentTrackSelector.etaMin = -999.
363 process.AlignmentTrackSelector.etaMax = 999.
364 process.AlignmentTrackSelector.nHitMin = 8
365 process.AlignmentTrackSelector.nHitMin2D = 2
366 process.AlignmentTrackSelector.chi2nMax = 999.
367 process.AlignmentTrackSelector.applyMultiplicityFilter = False
368 process.AlignmentTrackSelector.maxMultiplicity = 1
369 process.AlignmentTrackSelector.applyNHighestPt = False
370 process.AlignmentTrackSelector.nHighestPt = 1
371 process.AlignmentTrackSelector.seedOnlyFrom = 0
372 process.AlignmentTrackSelector.applyIsolationCut = False
373 process.AlignmentTrackSelector.minHitIsolation = 0.8
374 process.AlignmentTrackSelector.applyChargeCheck = False
375 process.AlignmentTrackSelector.minHitChargeStrip = 50.
376 #process.AlignmentTrackSelector.trackQualities = ["highPurity"]
377 #process.AlignmentTrackSelector.iterativeTrackingSteps = ["iter1","iter2"]
378 
379 ##### For Hits:
380 process.TrackerTrackHitFilter.useTrajectories= True # this is needed only if you require some selections; but it will work even if you don't ask for them
381 process.TrackerTrackHitFilter.minimumHits = 8
382 process.TrackerTrackHitFilter.commands = cms.vstring("keep PXB","keep PXE","keep TIB","keep TID","keep TOB","keep TEC")
383 process.TrackerTrackHitFilter.detsToIgnore = []
384 process.TrackerTrackHitFilter.replaceWithInactiveHits = True
385 process.TrackerTrackHitFilter.stripAllInvalidHits = False
386 process.TrackerTrackHitFilter.rejectBadStoNHits = True
387 process.TrackerTrackHitFilter.StoNcommands = cms.vstring("ALL 18.0")
388 process.TrackerTrackHitFilter.rejectLowAngleHits= True
389 process.TrackerTrackHitFilter.TrackAngleCut= 0.35 # in rads, starting from the module surface
390 process.TrackerTrackHitFilter.usePixelQualityFlag= True
391 #process.TrackerTrackHitFilter.PxlCorrClusterChargeCut = 10000.0
392 #process.triggerSelection=cms.Sequence(process.hltPhysicsDeclared)
393 """
394 
395 
396 ######################################################################
397 ######################################################################
398 TrackSelectionCosmicsDataBPIX = """
399 ##### For Tracks:
400 process.AlignmentTrackSelector.applyBasicCuts = True
401 # Note that pMin is overridden and set to zero in
402 # the offlineTemplate0T
403 process.AlignmentTrackSelector.pMin = 4.
404 process.AlignmentTrackSelector.pMax = 9999.
405 process.AlignmentTrackSelector.ptMin = 0.
406 process.AlignmentTrackSelector.ptMax = 9999.
407 process.AlignmentTrackSelector.etaMin = -999.
408 process.AlignmentTrackSelector.etaMax = 999.
409 process.AlignmentTrackSelector.nHitMin = 8
410 process.AlignmentTrackSelector.nHitMin2D = 2
411 process.AlignmentTrackSelector.chi2nMax = 999.
412 process.AlignmentTrackSelector.applyMultiplicityFilter = False
413 process.AlignmentTrackSelector.maxMultiplicity = 1
414 process.AlignmentTrackSelector.applyNHighestPt = False
415 process.AlignmentTrackSelector.nHighestPt = 1
416 process.AlignmentTrackSelector.seedOnlyFrom = 0
417 process.AlignmentTrackSelector.applyIsolationCut = False
418 process.AlignmentTrackSelector.minHitIsolation = 0.8
419 process.AlignmentTrackSelector.applyChargeCheck = False
420 process.AlignmentTrackSelector.minHitChargeStrip = 50.
421 process.AlignmentTrackSelector.minHitsPerSubDet = cms.PSet(
422  inTEC = cms.int32(0),
423  inTOB = cms.int32(0),
424  inFPIX = cms.int32(0),
425  inTID = cms.int32(0),
426  inBPIX = cms.int32(1),
427  inTIB = cms.int32(0),
428  inPIXEL = cms.int32(0),
429  inTIDplus = cms.int32(0),
430  inTIDminus = cms.int32(0),
431  inTECplus = cms.int32(0),
432  inTECminus = cms.int32(0),
433  inFPIXplus = cms.int32(0),
434  inFPIXminus = cms.int32(0),
435  inENDCAP = cms.int32(0),
436  inENDCAPplus = cms.int32(0),
437  inENDCAPminus = cms.int32(0),
438  )
439 #process.AlignmentTrackSelector.trackQualities = ["highPurity"]
440 #process.AlignmentTrackSelector.iterativeTrackingSteps = ["iter1","iter2"]
441 
442 ##### For Hits:
443 process.TrackerTrackHitFilter.useTrajectories= True # this is needed only if you require some selections; but it will work even if you don't ask for them
444 process.TrackerTrackHitFilter.minimumHits = 8
445 process.TrackerTrackHitFilter.commands = cms.vstring("keep PXB","keep PXE","keep TIB","keep TID","keep TOB","keep TEC")
446 process.TrackerTrackHitFilter.detsToIgnore = []
447 process.TrackerTrackHitFilter.replaceWithInactiveHits = True
448 process.TrackerTrackHitFilter.stripAllInvalidHits = False
449 process.TrackerTrackHitFilter.rejectBadStoNHits = True
450 process.TrackerTrackHitFilter.StoNcommands = cms.vstring("ALL 18.0")
451 process.TrackerTrackHitFilter.rejectLowAngleHits= True
452 process.TrackerTrackHitFilter.TrackAngleCut= 0.35 # in rads, starting from the module surface
453 process.TrackerTrackHitFilter.usePixelQualityFlag= True
454 
455 process.triggerSelection=cms.Sequence(process.hltPhysicsDeclared)
456 """
457 
458 
459 ######################################################################
460 ######################################################################
461 TrackSelectionCosmicsDataFPIXplus = """
462 ##### For Tracks:
463 process.AlignmentTrackSelector.applyBasicCuts = True
464 # Note that pMin is overridden and set to zero in
465 # the offlineTemplate0T
466 process.AlignmentTrackSelector.pMin = 4.
467 process.AlignmentTrackSelector.pMax = 9999.
468 process.AlignmentTrackSelector.ptMin = 0.
469 process.AlignmentTrackSelector.ptMax = 9999.
470 process.AlignmentTrackSelector.etaMin = -999.
471 process.AlignmentTrackSelector.etaMax = 999.
472 process.AlignmentTrackSelector.nHitMin = 8
473 process.AlignmentTrackSelector.nHitMin2D = 2
474 process.AlignmentTrackSelector.chi2nMax = 999.
475 process.AlignmentTrackSelector.applyMultiplicityFilter = False
476 process.AlignmentTrackSelector.maxMultiplicity = 1
477 process.AlignmentTrackSelector.applyNHighestPt = False
478 process.AlignmentTrackSelector.nHighestPt = 1
479 process.AlignmentTrackSelector.seedOnlyFrom = 0
480 process.AlignmentTrackSelector.applyIsolationCut = False
481 process.AlignmentTrackSelector.minHitIsolation = 0.8
482 process.AlignmentTrackSelector.applyChargeCheck = False
483 process.AlignmentTrackSelector.minHitChargeStrip = 50.
484 process.AlignmentTrackSelector.minHitsPerSubDet = cms.PSet(
485  inTEC = cms.int32(0),
486  inTOB = cms.int32(0),
487  inFPIX = cms.int32(0),
488  inTID = cms.int32(0),
489  inBPIX = cms.int32(0),
490  inTIB = cms.int32(0),
491  inPIXEL = cms.int32(0),
492  inTIDplus = cms.int32(0),
493  inTIDminus = cms.int32(0),
494  inTECplus = cms.int32(0),
495  inTECminus = cms.int32(0),
496  inFPIXplus = cms.int32(1),
497  inFPIXminus = cms.int32(0),
498  inENDCAP = cms.int32(0),
499  inENDCAPplus = cms.int32(0),
500  inENDCAPminus = cms.int32(0),
501  )
502 #process.AlignmentTrackSelector.trackQualities = ["highPurity"]
503 #process.AlignmentTrackSelector.iterativeTrackingSteps = ["iter1","iter2"]
504 
505 ##### For Hits:
506 process.TrackerTrackHitFilter.useTrajectories= True # this is needed only if you require some selections; but it will work even if you don't ask for them
507 process.TrackerTrackHitFilter.minimumHits = 8
508 process.TrackerTrackHitFilter.commands = cms.vstring("keep PXB","keep PXE","keep TIB","keep TID","keep TOB","keep TEC")
509 process.TrackerTrackHitFilter.detsToIgnore = []
510 process.TrackerTrackHitFilter.replaceWithInactiveHits = True
511 process.TrackerTrackHitFilter.stripAllInvalidHits = False
512 process.TrackerTrackHitFilter.rejectBadStoNHits = True
513 process.TrackerTrackHitFilter.StoNcommands = cms.vstring("ALL 18.0")
514 process.TrackerTrackHitFilter.rejectLowAngleHits= True
515 process.TrackerTrackHitFilter.TrackAngleCut= 0.35 # in rads, starting from the module surface
516 process.TrackerTrackHitFilter.usePixelQualityFlag= True
517 
518 process.triggerSelection=cms.Sequence(process.hltPhysicsDeclared)
519 """
520 
521 
522 ######################################################################
523 ######################################################################
524 TrackSelectionCosmicsDataFPIXminus = """
525 ##### For Tracks:
526 process.AlignmentTrackSelector.applyBasicCuts = True
527 # Note that pMin is overridden and set to zero in
528 # the offlineTemplate0T
529 process.AlignmentTrackSelector.pMin = 4.
530 process.AlignmentTrackSelector.pMax = 9999.
531 process.AlignmentTrackSelector.ptMin = 0.
532 process.AlignmentTrackSelector.ptMax = 9999.
533 process.AlignmentTrackSelector.etaMin = -999.
534 process.AlignmentTrackSelector.etaMax = 999.
535 process.AlignmentTrackSelector.nHitMin = 8
536 process.AlignmentTrackSelector.nHitMin2D = 2
537 process.AlignmentTrackSelector.chi2nMax = 999.
538 process.AlignmentTrackSelector.applyMultiplicityFilter = False
539 process.AlignmentTrackSelector.maxMultiplicity = 1
540 process.AlignmentTrackSelector.applyNHighestPt = False
541 process.AlignmentTrackSelector.nHighestPt = 1
542 process.AlignmentTrackSelector.seedOnlyFrom = 0
543 process.AlignmentTrackSelector.applyIsolationCut = False
544 process.AlignmentTrackSelector.minHitIsolation = 0.8
545 process.AlignmentTrackSelector.applyChargeCheck = False
546 process.AlignmentTrackSelector.minHitChargeStrip = 50.
547 process.AlignmentTrackSelector.minHitsPerSubDet = cms.PSet(
548  inTEC = cms.int32(0),
549  inTOB = cms.int32(0),
550  inFPIX = cms.int32(0),
551  inTID = cms.int32(0),
552  inBPIX = cms.int32(0),
553  inTIB = cms.int32(0),
554  inPIXEL = cms.int32(0),
555  inTIDplus = cms.int32(0),
556  inTIDminus = cms.int32(0),
557  inTECplus = cms.int32(0),
558  inTECminus = cms.int32(0),
559  inFPIXplus = cms.int32(0),
560  inFPIXminus = cms.int32(1),
561  inENDCAP = cms.int32(0),
562  inENDCAPplus = cms.int32(0),
563  inENDCAPminus = cms.int32(0),
564  )
565 #process.AlignmentTrackSelector.trackQualities = ["highPurity"]
566 #process.AlignmentTrackSelector.iterativeTrackingSteps = ["iter1","iter2"]
567 
568 ##### For Hits:
569 process.TrackerTrackHitFilter.useTrajectories= True # this is needed only if you require some selections; but it will work even if you don't ask for them
570 process.TrackerTrackHitFilter.minimumHits = 8
571 process.TrackerTrackHitFilter.commands = cms.vstring("keep PXB","keep PXE","keep TIB","keep TID","keep TOB","keep TEC")
572 process.TrackerTrackHitFilter.detsToIgnore = []
573 process.TrackerTrackHitFilter.replaceWithInactiveHits = True
574 process.TrackerTrackHitFilter.stripAllInvalidHits = False
575 process.TrackerTrackHitFilter.rejectBadStoNHits = True
576 process.TrackerTrackHitFilter.StoNcommands = cms.vstring("ALL 18.0")
577 process.TrackerTrackHitFilter.rejectLowAngleHits= True
578 process.TrackerTrackHitFilter.TrackAngleCut= 0.35 # in rads, starting from the module surface
579 process.TrackerTrackHitFilter.usePixelQualityFlag= True
580 
581 process.triggerSelection=cms.Sequence(process.hltPhysicsDeclared)
582 """
583 
584 
585 ######################################################################
586 ######################################################################
587 TrackSelectionMinBiasData = """
588 ##### For Tracks:collisions taken in deco mode
589 process.AlignmentTrackSelector.applyBasicCuts = True
590 # Note that pMin is overridden and set to zero in
591 # the offlineTemplate0T
592 process.AlignmentTrackSelector.pMin = 3
593 process.AlignmentTrackSelector.pMax = 9999.
594 process.AlignmentTrackSelector.ptMin = 0.65
595 process.AlignmentTrackSelector.ptMax = 9999.
596 process.AlignmentTrackSelector.etaMin = -999.
597 process.AlignmentTrackSelector.etaMax = 999.
598 process.AlignmentTrackSelector.nHitMin = 8
599 process.AlignmentTrackSelector.nHitMin2D = 2
600 process.AlignmentTrackSelector.chi2nMax = 999.
601 process.AlignmentTrackSelector.applyMultiplicityFilter = False
602 process.AlignmentTrackSelector.maxMultiplicity = 1
603 process.AlignmentTrackSelector.applyNHighestPt = False
604 process.AlignmentTrackSelector.nHighestPt = 1
605 process.AlignmentTrackSelector.seedOnlyFrom = 0
606 process.AlignmentTrackSelector.applyIsolationCut = False
607 process.AlignmentTrackSelector.minHitIsolation = 0.8
608 process.AlignmentTrackSelector.applyChargeCheck = False
609 process.AlignmentTrackSelector.minHitChargeStrip = 50.
610 #process.AlignmentTrackSelector.trackQualities = ["highPurity"]
611 #process.AlignmentTrackSelector.iterativeTrackingSteps = ["iter1","iter2"]
612 
613 ##### For Hits:
614 process.TrackerTrackHitFilter.useTrajectories= True # this is needed only if you require some selections; but it will work even if you don't ask for them
615 process.TrackerTrackHitFilter.minimumHits = 8
616 process.TrackerTrackHitFilter.commands = cms.vstring("keep PXB","keep PXE","keep TIB","keep TID","keep TOB","keep TEC")
617 process.TrackerTrackHitFilter.detsToIgnore = []
618 process.TrackerTrackHitFilter.replaceWithInactiveHits = True
619 process.TrackerTrackHitFilter.stripAllInvalidHits = False
620 process.TrackerTrackHitFilter.rejectBadStoNHits = True
621 process.TrackerTrackHitFilter.StoNcommands = cms.vstring("ALL 12.0")
622 process.TrackerTrackHitFilter.rejectLowAngleHits= True
623 process.TrackerTrackHitFilter.TrackAngleCut= 0.17 # in rads, starting from the module surface
624 process.TrackerTrackHitFilter.usePixelQualityFlag= True
625 
626 ##############
627 ##Trigger sequence
628 #############
629 #bit 0 is selecting bunch crossing
630 #bit 40 MinBias trigger
631 
632 
633 process.triggerSelection=cms.Sequence(process.oneGoodVertexFilter)
634 
635 """
636 
637 
638 ######################################################################
639 ######################################################################
640 TrackSelectionIsolatedMuons = """
641 ##### For Tracks:collisions taken in deco mode
642 
643 process.AlignmentTrackSelector.applyBasicCuts = True
644 # Note that pMin is overridden and set to zero in
645 # the offlineTemplate0T
646 process.AlignmentTrackSelector.pMin = 0
647 process.AlignmentTrackSelector.pMax = 9999.
648 process.AlignmentTrackSelector.ptMin = 3.
649 process.AlignmentTrackSelector.ptMax = 9999.
650 process.AlignmentTrackSelector.etaMin = -999.
651 process.AlignmentTrackSelector.etaMax = 999.
652 process.AlignmentTrackSelector.nHitMin = 8
653 process.AlignmentTrackSelector.nHitMin2D = 2
654 process.AlignmentTrackSelector.chi2nMax = 999.
655 process.AlignmentTrackSelector.applyMultiplicityFilter = False
656 process.AlignmentTrackSelector.maxMultiplicity = 1
657 process.AlignmentTrackSelector.applyNHighestPt = False
658 process.AlignmentTrackSelector.nHighestPt = 1
659 process.AlignmentTrackSelector.seedOnlyFrom = 0
660 process.AlignmentTrackSelector.applyIsolationCut = False
661 process.AlignmentTrackSelector.minHitIsolation = 0.8
662 process.AlignmentTrackSelector.applyChargeCheck = False
663 process.AlignmentTrackSelector.minHitChargeStrip = 50.
664 #process.AlignmentTrackSelector.trackQualities = ["highPurity"]
665 #process.AlignmentTrackSelector.iterativeTrackingSteps = ["iter1","iter2"]
666 
667 ##### For Hits:
668 process.TrackerTrackHitFilter.useTrajectories= True # this is needed only if you require some selections; but it will work even if you don't ask for them
669 process.TrackerTrackHitFilter.minimumHits = 8
670 process.TrackerTrackHitFilter.commands = cms.vstring("keep PXB","keep PXE","keep TIB","keep TID","keep TOB","keep TEC")
671 process.TrackerTrackHitFilter.detsToIgnore = []
672 process.TrackerTrackHitFilter.replaceWithInactiveHits = True
673 process.TrackerTrackHitFilter.stripAllInvalidHits = False
674 process.TrackerTrackHitFilter.rejectBadStoNHits = True
675 process.TrackerTrackHitFilter.StoNcommands = cms.vstring("ALL 12.0")
676 process.TrackerTrackHitFilter.rejectLowAngleHits= True
677 process.TrackerTrackHitFilter.TrackAngleCut= 0.17 # in rads, starting from the module surface
678 process.TrackerTrackHitFilter.usePixelQualityFlag= True
679 
680 ##############
681 ##Trigger sequence
682 #############
683 #bit 0 is selecting bunch crossing
684 #bit xy for muons trigger
685 
686 
687 #process.triggerSelection=cms.Sequence(process.bptxAnd)
688 
689 
690 
691 """
692 
693 
694 ######################################################################
695 ######################################################################
696 TrackSelectionCosmicsDataDef = """
697 # import CalibTracker.Configuration.Common.PoolDBESSource_cfi
698 # process.trackerBowedSensors = CalibTracker.Configuration.Common.PoolDBESSource_cfi.poolDBESSource.clone(
699 # connect = cms.string('.oO[dbpath]Oo.'),
700 
701 # toGet = cms.VPSet(cms.PSet(record = cms.string('TrackerSurfaceDeformationRcd'),
702 # tag = cms.string('Deformations')
703 # )
704 # )
705 # )
706 # process.prefer_trackerBowedSensors = cms.ESPrefer("PoolDBESSource", "trackerBowedSensors")
707 ##### For Tracks:
708 process.AlignmentTrackSelector.applyBasicCuts = True
709 # Note that pMin is overridden and set to zero in
710 # the offlineTemplate0T
711 process.AlignmentTrackSelector.pMin = 4.
712 process.AlignmentTrackSelector.pMax = 9999.
713 process.AlignmentTrackSelector.ptMin = 0.
714 process.AlignmentTrackSelector.ptMax = 9999.
715 process.AlignmentTrackSelector.etaMin = -999.
716 process.AlignmentTrackSelector.etaMax = 999.
717 process.AlignmentTrackSelector.nHitMin = 8
718 process.AlignmentTrackSelector.nHitMin2D = 2
719 process.AlignmentTrackSelector.chi2nMax = 999.
720 process.AlignmentTrackSelector.applyMultiplicityFilter = True
721 process.AlignmentTrackSelector.maxMultiplicity = 1
722 process.AlignmentTrackSelector.applyNHighestPt = False
723 process.AlignmentTrackSelector.nHighestPt = 1
724 process.AlignmentTrackSelector.seedOnlyFrom = 0
725 process.AlignmentTrackSelector.applyIsolationCut = False
726 process.AlignmentTrackSelector.minHitIsolation = 0.8
727 process.AlignmentTrackSelector.applyChargeCheck = False
728 process.AlignmentTrackSelector.minHitChargeStrip = 50.
729 #process.AlignmentTrackSelector.trackQualities = ["highPurity"]
730 #process.AlignmentTrackSelector.iterativeTrackingSteps = ["iter1","iter2"]
731 
732 ##### For Hits:
733 process.TrackerTrackHitFilter.useTrajectories= True # this is needed only if you require some selections; but it will work even if you don't ask for them
734 process.TrackerTrackHitFilter.minimumHits = 8
735 process.TrackerTrackHitFilter.commands = cms.vstring("keep PXB","keep PXE","keep TIB","keep TID","keep TOB","keep TEC")
736 process.TrackerTrackHitFilter.detsToIgnore = []
737 process.TrackerTrackHitFilter.replaceWithInactiveHits = True
738 process.TrackerTrackHitFilter.stripAllInvalidHits = False
739 process.TrackerTrackHitFilter.rejectBadStoNHits = True
740 process.TrackerTrackHitFilter.StoNcommands = cms.vstring("ALL 18.0")
741 process.TrackerTrackHitFilter.rejectLowAngleHits= True
742 process.TrackerTrackHitFilter.TrackAngleCut= 0.35 # in rads, starting from the module surface
743 process.TrackerTrackHitFilter.usePixelQualityFlag= True
744 #process.TrackerTrackHitFilter.PxlCorrClusterChargeCut = 10000.0
745 process.triggerSelection=cms.Sequence(process.hltPhysicsDeclared)
746 """
747 
748 
749 ######################################################################
750 ######################################################################
751 TrackSelectionCosmicsInterfillLADef = """
752 # import CalibTracker.Configuration.Common.PoolDBESSource_cfi
753 # process.trackerBowedSensors = CalibTracker.Configuration.Common.PoolDBESSource_cfi.poolDBESSource.clone(
754 # connect = cms.string('.oO[dbpath]Oo.'),
755 
756 # toGet = cms.VPSet(cms.PSet(record = cms.string('TrackerSurfaceDeformationRcd'),
757 # tag = cms.string('Deformations')
758 # )
759 # )
760 # )
761 # process.prefer_trackerBowedSensors = cms.ESPrefer("PoolDBESSource", "trackerBowedSensors")
762 
763 #LA
764 process.myLA = CalibTracker.Configuration.Common.PoolDBESSource_cfi.poolDBESSource.clone(
765  connect = cms.string ('frontier://PromptProd/CMS_COND_31X_STRIP'),
766  toGet = cms.VPSet(cms.PSet(
767  record = cms.string('SiStripLorentzAngleRcd'),
768  tag = cms.string('SiStripLorentzAnglePeak_GR10_v1_offline')
769 
770  ))
771  )
772 process.es_prefer_myLA = cms.ESPrefer("PoolDBESSource","myLA")
773 
774 #-- initialize beam spot
775 process.load("RecoVertex.BeamSpotProducer.BeamSpot_cfi")
776 
777 ##### For Tracks:
778 process.AlignmentTrackSelector.applyBasicCuts = True
779 # Note that pMin is overridden and set to zero in
780 # the offlineTemplate0T
781 process.AlignmentTrackSelector.pMin = 4.
782 process.AlignmentTrackSelector.pMax = 9999.
783 process.AlignmentTrackSelector.ptMin = 0.
784 process.AlignmentTrackSelector.ptMax = 9999.
785 process.AlignmentTrackSelector.etaMin = -999.
786 process.AlignmentTrackSelector.etaMax = 999.
787 process.AlignmentTrackSelector.nHitMin = 8
788 process.AlignmentTrackSelector.nHitMin2D = 2
789 process.AlignmentTrackSelector.chi2nMax = 999.
790 process.AlignmentTrackSelector.applyMultiplicityFilter = False
791 process.AlignmentTrackSelector.maxMultiplicity = 1
792 process.AlignmentTrackSelector.applyNHighestPt = False
793 process.AlignmentTrackSelector.nHighestPt = 1
794 process.AlignmentTrackSelector.seedOnlyFrom = 0
795 process.AlignmentTrackSelector.applyIsolationCut = False
796 process.AlignmentTrackSelector.minHitIsolation = 0.8
797 process.AlignmentTrackSelector.applyChargeCheck = False
798 process.AlignmentTrackSelector.minHitChargeStrip = 50.
799 #process.AlignmentTrackSelector.trackQualities = ["highPurity"]
800 #process.AlignmentTrackSelector.iterativeTrackingSteps = ["iter1","iter2"]
801 
802 ##### For Hits:
803 process.TrackerTrackHitFilter.useTrajectories= True # this is needed only if you require some selections; but it will work even if you don't ask for them
804 process.TrackerTrackHitFilter.minimumHits = 8
805 process.TrackerTrackHitFilter.commands = cms.vstring("keep PXB","keep PXE","keep TIB","keep TID","keep TOB","keep TEC")
806 process.TrackerTrackHitFilter.detsToIgnore = []
807 process.TrackerTrackHitFilter.replaceWithInactiveHits = True
808 process.TrackerTrackHitFilter.stripAllInvalidHits = False
809 process.TrackerTrackHitFilter.rejectBadStoNHits = True
810 process.TrackerTrackHitFilter.StoNcommands = cms.vstring("ALL 18.0")
811 process.TrackerTrackHitFilter.rejectLowAngleHits= True
812 process.TrackerTrackHitFilter.TrackAngleCut= 0.35 # in rads, starting from the module surface
813 process.TrackerTrackHitFilter.usePixelQualityFlag= True
814 
815 #######################################
816 ##Trigger settings for Cosmics during collisions
817 #######################################
818 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff')
819 process.load('HLTrigger/HLTfilters/hltLevel1GTSeed_cfi')
820 process.L1T1=process.hltLevel1GTSeed.clone()
821 process.L1T1.L1TechTriggerSeeding = cms.bool(True)
822 process.L1T1.L1SeedsLogicalExpression=cms.string('25')
823 process.hltHighLevel = cms.EDFilter("HLTHighLevel",
824  TriggerResultsTag = cms.InputTag("TriggerResults","","HLT"),
825  HLTPaths = cms.vstring('HLT_TrackerCosmics'),
826  eventSetupPathsKey = cms.string(''),
827  andOr = cms.bool(False),
828  throw = cms.bool(True)
829 )
830 
831 
832 process.triggerSelection=cms.Sequence(process.L1T1*process.hltHighLevel)
833 """
834 
835 
836 ######################################################################
837 ######################################################################
838 TrackSelectionMinBiasDataDef = """
839 # import CalibTracker.Configuration.Common.PoolDBESSource_cfi
840 # process.trackerBowedSensors = CalibTracker.Configuration.Common.PoolDBESSource_cfi.poolDBESSource.clone(
841 # connect = cms.string('.oO[dbpath]Oo.'),
842 
843 # toGet = cms.VPSet(cms.PSet(record = cms.string('TrackerSurfaceDeformationRcd'),
844 # tag = cms.string('Deformations')
845 # )
846 # )
847 # )
848 # process.prefer_trackerBowedSensors = cms.ESPrefer("PoolDBESSource", "trackerBowedSensors")
849 
850 ##### For Tracks:collisions taken in deco mode
851 process.AlignmentTrackSelector.applyBasicCuts = True
852 # Note that pMin is overridden and set to zero in
853 # the offlineTemplate0T
854 process.AlignmentTrackSelector.pMin = 3
855 process.AlignmentTrackSelector.pMax = 9999.
856 process.AlignmentTrackSelector.ptMin = 0.65
857 process.AlignmentTrackSelector.ptMax = 9999.
858 process.AlignmentTrackSelector.etaMin = -999.
859 process.AlignmentTrackSelector.etaMax = 999.
860 process.AlignmentTrackSelector.nHitMin = 8
861 process.AlignmentTrackSelector.nHitMin2D = 2
862 process.AlignmentTrackSelector.chi2nMax = 999.
863 process.AlignmentTrackSelector.applyMultiplicityFilter = False
864 process.AlignmentTrackSelector.maxMultiplicity = 1
865 process.AlignmentTrackSelector.applyNHighestPt = False
866 process.AlignmentTrackSelector.nHighestPt = 1
867 process.AlignmentTrackSelector.seedOnlyFrom = 0
868 process.AlignmentTrackSelector.applyIsolationCut = False
869 process.AlignmentTrackSelector.minHitIsolation = 0.8
870 process.AlignmentTrackSelector.applyChargeCheck = False
871 process.AlignmentTrackSelector.minHitChargeStrip = 50.
872 #process.AlignmentTrackSelector.trackQualities = ["highPurity"]
873 #process.AlignmentTrackSelector.iterativeTrackingSteps = ["iter1","iter2"]
874 
875 ##### For Hits:
876 process.TrackerTrackHitFilter.useTrajectories= True # this is needed only if you require some selections; but it will work even if you don't ask for them
877 process.TrackerTrackHitFilter.minimumHits = 8
878 process.TrackerTrackHitFilter.commands = cms.vstring("keep PXB","keep PXE","keep TIB","keep TID","keep TOB","keep TEC")
879 process.TrackerTrackHitFilter.detsToIgnore = []
880 process.TrackerTrackHitFilter.replaceWithInactiveHits = True
881 process.TrackerTrackHitFilter.stripAllInvalidHits = False
882 process.TrackerTrackHitFilter.rejectBadStoNHits = True
883 process.TrackerTrackHitFilter.StoNcommands = cms.vstring("ALL 12.0")
884 process.TrackerTrackHitFilter.rejectLowAngleHits= True
885 process.TrackerTrackHitFilter.TrackAngleCut= 0.17 # in rads, starting from the module surface
886 process.TrackerTrackHitFilter.usePixelQualityFlag= True
887 
888 ##############
889 ##Trigger sequence
890 #############
891 #bit 0 is selecting bunch crossing
892 #bit 40 MinBias trigger
893 
894 
895 process.triggerSelection=cms.Sequence(process.oneGoodVertexFilter)
896 
897 """
898 
899 
900 ######################################################################
901 ######################################################################
902 TrackSelectionIsolatedMuonsDef = """
903 ##### For Tracks:collisions taken in deco mode
904 # import CalibTracker.Configuration.Common.PoolDBESSource_cfi
905 # process.trackerBowedSensors = CalibTracker.Configuration.Common.PoolDBESSource_cfi.poolDBESSource.clone(
906 # connect = cms.string('.oO[dbpath]Oo.'),
907 
908 # toGet = cms.VPSet(cms.PSet(record = cms.string('TrackerSurfaceDeformationRcd'),
909 # tag = cms.string('Deformations')
910 # )
911 # )
912 # )
913 # process.prefer_trackerBowedSensors = cms.ESPrefer("PoolDBESSource", "trackerBowedSensors")
914 
915 
916 process.AlignmentTrackSelector.applyBasicCuts = True
917 # Note that pMin is overridden and set to zero in
918 # the offlineTemplate0T
919 process.AlignmentTrackSelector.pMin = 3.
920 process.AlignmentTrackSelector.pMax = 9999.
921 process.AlignmentTrackSelector.ptMin = 5.
922 process.AlignmentTrackSelector.ptMax = 9999.
923 process.AlignmentTrackSelector.etaMin = -3.
924 process.AlignmentTrackSelector.etaMax = 3.
925 process.AlignmentTrackSelector.nHitMin = 10
926 process.AlignmentTrackSelector.nHitMin2D = 2
927 process.AlignmentTrackSelector.chi2nMax = 999.
928 process.AlignmentTrackSelector.applyMultiplicityFilter = False
929 process.AlignmentTrackSelector.maxMultiplicity = 1
930 process.AlignmentTrackSelector.applyNHighestPt = False
931 process.AlignmentTrackSelector.nHighestPt = 1
932 process.AlignmentTrackSelector.seedOnlyFrom = 0
933 process.AlignmentTrackSelector.applyIsolationCut = False
934 process.AlignmentTrackSelector.minHitIsolation = 0.8
935 process.AlignmentTrackSelector.applyChargeCheck = False
936 process.AlignmentTrackSelector.minHitChargeStrip = 30.
937 #process.AlignmentTrackSelector.trackQualities = ["highPurity"]
938 #process.AlignmentTrackSelector.iterativeTrackingSteps = ["iter1","iter2"]
939 
940 ##### For Hits:
941 process.TrackerTrackHitFilter.useTrajectories= True # this is needed only if you require some selections; but it will work even if you don't ask for them
942 process.TrackerTrackHitFilter.minimumHits = 8
943 process.TrackerTrackHitFilter.commands = cms.vstring("keep PXB","keep PXE","keep TIB","keep TID","keep TOB","keep TEC")
944 process.TrackerTrackHitFilter.detsToIgnore = []
945 process.TrackerTrackHitFilter.replaceWithInactiveHits = True
946 process.TrackerTrackHitFilter.stripAllInvalidHits = False
947 process.TrackerTrackHitFilter.rejectBadStoNHits = True
948 process.TrackerTrackHitFilter.StoNcommands = cms.vstring("ALL 12.0")
949 process.TrackerTrackHitFilter.rejectLowAngleHits= True
950 process.TrackerTrackHitFilter.TrackAngleCut= 0.17 # in rads, starting from the module surface
951 process.TrackerTrackHitFilter.usePixelQualityFlag= True
952 
953 ##############
954 ##Trigger sequence
955 #############
956 #bit 0 is selecting bunch crossing
957 #bit xy for muons trigger
958 
959 
960 #process.triggerSelection=cms.Sequence(process.bptxAnd)
961 
962 """