CMS 3D CMS Logo

TrackingClientConfig_Tier0_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
3 
4 # TrackingOfflineDQM (for Tier0 Harvesting Step) ####
5 trackingOfflineAnalyser = DQMEDHarvester("TrackingOfflineDQM",
6  GlobalStatusFilling = cms.untracked.int32(2),
7  UsedWithEDMtoMEConverter = cms.untracked.bool(True),
8  TopFolderName = cms.untracked.string("Tracking"),
9  TrackingGlobalQualityPSets = cms.VPSet(
10  cms.PSet(
11  QT = cms.string("Rate"),
12  dir = cms.string("TrackParameters/highPurityTracks/pt_1/GeneralProperties"),
13  name = cms.string("NumberOfTracks_"),
14  ),
15  cms.PSet(
16  QT = cms.string("Chi2"),
17  dir = cms.string("TrackParameters/highPurityTracks/pt_1/GeneralProperties"),
18  name = cms.string("Chi2oNDF_"),
19  ),
20  cms.PSet(
21  QT = cms.string("RecHits"),
22  dir = cms.string("TrackParameters/highPurityTracks/pt_1/HitProperties"),
23  name = cms.string("NumberOfRecHitsPerTrack_"),
24  ),
25  cms.PSet(
26  QT = cms.string("Seed"),
27  dir = cms.string("TrackParameters/generalTracks/TrackBuilding"),
28  name = cms.string("NumberOfSeeds_"),
29  )
30  ),
31  TrackingLSQualityPSets = cms.VPSet(
32  cms.PSet(
33  QT = cms.string("Rate"),
34  LSdir = cms.string("TrackParameters/highPurityTracks/pt_1/GeneralProperties/LSanalysis"),
35  LSname = cms.string("NumberOfTracks_lumiFlag_"),
36  LSlowerCut = cms.double( 1.0 ),
37  LSupperCut = cms.double( 1000.0 )
38  ),
39  cms.PSet(
40  QT = cms.string("Chi2"),
41  LSdir = cms.string("TrackParameters/highPurityTracks/pt_1/GeneralProperties/LSanalysis"),
42  LSname = cms.string("Chi2oNDF_lumiFlag_"),
43  LSlowerCut = cms.double( 0.0 ),
44  LSupperCut = cms.double( 25.0 )
45  ),
46  cms.PSet(
47  QT = cms.string("RecHits"),
48  LSdir = cms.string("TrackParameters/highPurityTracks/pt_1/GeneralProperties/LSanalysis"),
49  LSname = cms.string("NumberOfRecHitsPerTrack_lumiFlag_"),
50  LSlowerCut = cms.double( 5.0 ),
51  LSupperCut = cms.double( 20.0 )
52  ),
53  cms.PSet(
54  QT = cms.string("Seed"),
55  LSdir = cms.string("TrackParameters/generalTracks/LSanalysis"),
56  LSname = cms.string("NumberOfSeeds_lumiFlag_"),
57  LSlowerCut = cms.double( 0.0 ),
58  LSupperCut = cms.double( 1000000.0 )
59  )
60  )
61 )
62 
63 from DQMServices.Core.DQMQualityTester import DQMQualityTester
64 trackingQTester = DQMQualityTester(
65  qtList = cms.untracked.FileInPath('DQM/TrackingMonitorClient/data/tracking_qualitytest_config_tier0.xml'),
66  prescaleFactor = cms.untracked.int32(1),
67  getQualityTestsFromFile = cms.untracked.bool(True)
68 )
69 
70 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
71 pp_on_AA.toModify(trackingQTester,
72  qtList = cms.untracked.FileInPath('DQM/TrackingMonitorClient/data/tracking_qualitytest_config_tier0_heavyions.xml')
73 )
74 
76 from DQM.TrackingMonitorClient.TrackingEffFromHitPatternClientConfigZeroBias_cff import trackingEffFromHitPatternZeroBias
77 
80 # Sequence
81 
82 # from DQM.TrackingMonitor.TrackEfficiencyMonitor_cfi import *
83 # TrackEffMon_ckf = TrackEffMon.clone(
84 # TKTrackCollection = 'ctfWithMaterialTracksP5',
85 # AlgoName = 'CKFTk',
86 # FolderName = 'Tracking/TrackParameters/TrackEfficiency'
87 # )
88 
90 TrackEffClient.FolderName = 'Tracking/TrackParameters/TrackEfficiency'
91 TrackEffClient.AlgoName = 'CKFTk'
92 
94 
95 TrackingOfflineDQMClient = cms.Sequence(trackingQTester*trackingOfflineAnalyser*trackingEffFromHitPattern*voMonitoringClientSequence*primaryVertexResolutionClient*TrackEffClient*foldedMapClientSeq)
96 
97 TrackingOfflineDQMClientZeroBias = cms.Sequence(trackingQTester*trackingOfflineAnalyser*trackingEffFromHitPatternZeroBias*voMonitoringClientSequence*primaryVertexResolutionClient*TrackEffClient*foldedMapClientSeq)
98 
99 # fastsim customs
100 _TrackingOfflineDQMClient_fastsim = TrackingOfflineDQMClient.copy()
101 _TrackingOfflineDQMClient_fastsim.remove(foldedMapClientSeq)
102 
103 _TrackingOfflineDQMClientZeroBias_fastsim = TrackingOfflineDQMClientZeroBias.copy()
104 _TrackingOfflineDQMClientZeroBias_fastsim.remove(foldedMapClientSeq)
105 
106 from Configuration.Eras.Modifier_fastSim_cff import fastSim
107 fastSim.toReplaceWith(TrackingOfflineDQMClient,_TrackingOfflineDQMClient_fastsim)
108 
109 from Configuration.Eras.Modifier_fastSim_cff import fastSim
110 fastSim.toReplaceWith(TrackingOfflineDQMClientZeroBias,_TrackingOfflineDQMClientZeroBias_fastsim)