test
CMS 3D CMS Logo

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