10 CosmicsOfflineValidation=
"""
11 import FWCore.ParameterSet.Config as cms
13 process = cms.Process("OfflineValidator")
15 .oO[datasetDefinition]Oo.
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
24 ## Messages & Convenience
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...
32 process.MessageLogger.statistics.append('cout')
37 process.load("RecoVertex.BeamSpotProducer.BeamSpot_cff")
40 process.load("RecoTracker.TrackProducer.TrackRefitters_cff")
43 ## TrackerTrackHitFilter takes as input the tracks/trajectories coming out from TrackRefitter1
44 #process.load("RecoTracker.FinalTrackSelectors.TrackerTrackHitFilter_cff")
45 #process.TrackerTrackHitFilter.src = 'TrackRefitter1'
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
55 #-- 2nd fit for AlignmentProducer
56 process.TrackRefitter2 = process.TrackRefitter1.clone(
57 src = 'AlignmentTrackSelector'
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
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"
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
98 ## GlobalTag Conditions (if needed)
100 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
101 process.GlobalTag.globaltag = ".oO[GlobalTag]Oo."
107 process.load("Configuration.Geometry.GeometryDB_cff")
112 process.load("Configuration/StandardSequences/.oO[magneticField]Oo._cff")
114 .oO[LorentzAngleTemplate]Oo.
119 #process.load("Configuration.Geometry.GeometryDB_cff")
125 ## Load and Configure OfflineValidation
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.'
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
155 CosmicsAt0TOfflineValidation=
"""
156 import FWCore.ParameterSet.Config as cms
158 process = cms.Process("OfflineValidator")
160 .oO[datasetDefinition]Oo.
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
169 ## Messages & Convenience
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...
177 process.MessageLogger.statistics.append('cout')
181 # TrackerTrackHitFilter takes as input the tracks/trajectories coming out from TrackRefitter1
182 process.load("RecoTracker.FinalTrackSelectors.TrackerTrackHitFilter_cff")
183 process.TrackerTrackHitFilter.src = 'TrackRefitter1'
185 #-- Alignment Track Selection
186 process.load("Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi")
187 process.AlignmentTrackSelector.src = 'HitFilteredTracks'
188 process.AlignmentTrackSelector.filter = True
190 .oO[TrackSelectionTemplate]Oo.
191 # Override the pmin setting since not meaningful with B=0T
192 process.AlignmentTrackSelector.pMin = 4.
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
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
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"
223 ## Load and Configure TrackRefitter1
226 process.load("RecoTracker.TrackProducer.TrackRefitters_cff")
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
241 process.TrackRefitter2 = process.TrackRefitter1.clone(
242 src = 'AlignmentTrackSelector',
243 srcConstr='AliMomConstraint1',
244 #constraint = 'momentum' ### SPECIFIC FOR CRUZET
251 process.load("RecoVertex.BeamSpotProducer.BeamSpot_cff")
254 ## GlobalTag Conditions (if needed)
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"
260 .oO[LorentzAngleTemplate]Oo.
265 process.load("Configuration.Geometry.GeometryDB_cff")
270 process.load("Configuration.StandardSequences..oO[magneticField]Oo._cff")
274 ## to apply misalignments
275 #TrackerDigiGeometryESModule.applyAlignment = True
278 ## Load and Configure OfflineValidation
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.'
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.)
300 TrackSelectionCosmicsDuringCollisions =
"""
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"]
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
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)
356 process.triggerSelection=cms.Sequence(process.L1T1*process.hltHighLevel)
362 TrackSelectionCosmicsData =
"""
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"]
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)
407 TrackSelectionCosmicsDataBPIX =
"""
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),
448 #process.AlignmentTrackSelector.trackQualities = ["highPurity"]
449 #process.AlignmentTrackSelector.iterativeTrackingSteps = ["iter1","iter2"]
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
464 process.triggerSelection=cms.Sequence(process.hltPhysicsDeclared)
470 TrackSelectionCosmicsDataFPIXplus =
"""
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),
511 #process.AlignmentTrackSelector.trackQualities = ["highPurity"]
512 #process.AlignmentTrackSelector.iterativeTrackingSteps = ["iter1","iter2"]
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
527 process.triggerSelection=cms.Sequence(process.hltPhysicsDeclared)
533 TrackSelectionCosmicsDataFPIXminus =
"""
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),
574 #process.AlignmentTrackSelector.trackQualities = ["highPurity"]
575 #process.AlignmentTrackSelector.iterativeTrackingSteps = ["iter1","iter2"]
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
590 process.triggerSelection=cms.Sequence(process.hltPhysicsDeclared)
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"]
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
638 #bit 0 is selecting bunch crossing
639 #bit 40 MinBias trigger
642 process.triggerSelection=cms.Sequence(process.oneGoodVertexFilter)
649 TrackSelectionIsolatedMuons =
"""
650 ##### For Tracks:collisions taken in deco mode
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"]
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
692 #bit 0 is selecting bunch crossing
693 #bit xy for muons trigger
696 #process.triggerSelection=cms.Sequence(process.bptxAnd)
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.'),
710 # toGet = cms.VPSet(cms.PSet(record = cms.string('TrackerSurfaceDeformationRcd'),
711 # tag = cms.string('Deformations')
715 # process.prefer_trackerBowedSensors = cms.ESPrefer("PoolDBESSource", "trackerBowedSensors")
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"]
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)
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.'),
765 # toGet = cms.VPSet(cms.PSet(record = cms.string('TrackerSurfaceDeformationRcd'),
766 # tag = cms.string('Deformations')
770 # process.prefer_trackerBowedSensors = cms.ESPrefer("PoolDBESSource", "trackerBowedSensors")
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')
781 process.es_prefer_myLA = cms.ESPrefer("PoolDBESSource","myLA")
783 #-- initialize beam spot
784 process.load("RecoVertex.BeamSpotProducer.BeamSpot_cfi")
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"]
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
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)
841 process.triggerSelection=cms.Sequence(process.L1T1*process.hltHighLevel)
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.'),
852 # toGet = cms.VPSet(cms.PSet(record = cms.string('TrackerSurfaceDeformationRcd'),
853 # tag = cms.string('Deformations')
857 # process.prefer_trackerBowedSensors = cms.ESPrefer("PoolDBESSource", "trackerBowedSensors")
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"]
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
900 #bit 0 is selecting bunch crossing
901 #bit 40 MinBias trigger
904 process.triggerSelection=cms.Sequence(process.oneGoodVertexFilter)
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.'),
917 # toGet = cms.VPSet(cms.PSet(record = cms.string('TrackerSurfaceDeformationRcd'),
918 # tag = cms.string('Deformations')
922 # process.prefer_trackerBowedSensors = cms.ESPrefer("PoolDBESSource", "trackerBowedSensors")
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"]
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
965 #bit 0 is selecting bunch crossing
966 #bit xy for muons trigger
969 #process.triggerSelection=cms.Sequence(process.bptxAnd)