Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-09-28 23:48:28

0001 import FWCore.ParameterSet.Config as cms
0002 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
0003 
0004 #  TrackingOfflineDQM (for Tier0 Harvesting Step) ####
0005 trackingOfflineAnalyser = DQMEDHarvester("TrackingOfflineDQM",
0006     GlobalStatusFilling        = cms.untracked.int32(2),
0007     UsedWithEDMtoMEConverter   = cms.untracked.bool(True),
0008     TopFolderName              = cms.untracked.string("Tracking"),                                     
0009     TrackingGlobalQualityPSets = cms.VPSet(
0010          cms.PSet(
0011              QT         = cms.string("Rate"),
0012              dir        = cms.string("TrackParameters/highPurityTracks/pt_1/GeneralProperties"),
0013              name       = cms.string("NumberOfTracks_"),
0014          ),
0015          cms.PSet(
0016              QT         = cms.string("Chi2"),
0017              dir        = cms.string("TrackParameters/highPurityTracks/pt_1/GeneralProperties"),
0018              name       = cms.string("Chi2oNDF_"),
0019          ),
0020          cms.PSet(
0021              QT         = cms.string("RecHits"),
0022              dir        = cms.string("TrackParameters/highPurityTracks/pt_1/HitProperties"),
0023              name       = cms.string("NumberOfRecHitsPerTrack_"),
0024          ),
0025          cms.PSet(
0026              QT         = cms.string("Seed"),
0027              dir        = cms.string("TrackParameters/generalTracks/TrackBuilding"),
0028              name       = cms.string("NumberOfSeeds_"),
0029          )
0030     ),
0031     TrackingLSQualityPSets = cms.VPSet(
0032          cms.PSet(
0033              QT         = cms.string("Rate"),
0034              LSdir      = cms.string("TrackParameters/highPurityTracks/pt_1/GeneralProperties/LSanalysis"),
0035              LSname     = cms.string("NumberOfTracks_lumiFlag_"),
0036              LSlowerCut = cms.double(    1.0 ),
0037              LSupperCut = cms.double( 1000.0 )    
0038          ),
0039          cms.PSet(
0040              QT         = cms.string("Chi2"),
0041              LSdir      = cms.string("TrackParameters/highPurityTracks/pt_1/GeneralProperties/LSanalysis"),
0042              LSname     = cms.string("Chi2oNDF_lumiFlag_"),
0043              LSlowerCut = cms.double(  0.0 ),
0044              LSupperCut = cms.double( 25.0 )
0045          ),
0046          cms.PSet(
0047              QT         = cms.string("RecHits"),
0048              LSdir      = cms.string("TrackParameters/highPurityTracks/pt_1/GeneralProperties/LSanalysis"),
0049              LSname     = cms.string("NumberOfRecHitsPerTrack_lumiFlag_"),
0050              LSlowerCut = cms.double(  5.0 ),
0051              LSupperCut = cms.double( 20.0 )
0052          ),
0053          cms.PSet(
0054              QT         = cms.string("Seed"),
0055              LSdir      = cms.string("TrackParameters/generalTracks/LSanalysis"),
0056              LSname     = cms.string("NumberOfSeeds_lumiFlag_"),
0057              LSlowerCut = cms.double(       0.0 ),
0058              LSupperCut = cms.double( 1000000.0 )
0059          )
0060     )
0061 )
0062 
0063 from DQMServices.Core.DQMQualityTester import DQMQualityTester
0064 trackingQTester = DQMQualityTester(
0065     qtList = cms.untracked.FileInPath('DQM/TrackingMonitorClient/data/tracking_qualitytest_config_tier0.xml'),
0066     prescaleFactor = cms.untracked.int32(1),                               
0067     getQualityTestsFromFile = cms.untracked.bool(True)
0068 )
0069 
0070 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
0071 pp_on_AA.toModify(trackingQTester,
0072                   qtList = cms.untracked.FileInPath('DQM/TrackingMonitorClient/data/tracking_qualitytest_config_tier0_heavyions.xml')
0073 )
0074 
0075 from DQM.TrackingMonitorClient.TrackingEffFromHitPatternClientConfig_cff import trackingEffFromHitPattern
0076 from DQM.TrackingMonitorClient.TrackingEffFromHitPatternClientConfigZeroBias_cff import trackingEffFromHitPatternZeroBias
0077 
0078 from DQM.TrackingMonitorClient.V0MonitoringClient_cff import *
0079 from DQM.TrackingMonitorClient.primaryVertexResolutionClient_cfi import *
0080 # Sequence
0081 
0082 # from DQM.TrackingMonitor.TrackEfficiencyMonitor_cfi import *
0083 # TrackEffMon_ckf = TrackEffMon.clone(
0084 #     TKTrackCollection = 'ctfWithMaterialTracksP5',
0085 #     AlgoName = 'CKFTk',
0086 #     FolderName = 'Tracking/TrackParameters/TrackEfficiency'
0087 # )
0088 
0089 from DQM.TrackingMonitor.TrackEfficiencyClient_cfi import *
0090 TrackEffClient.FolderName = 'Tracking/TrackParameters/TrackEfficiency'
0091 TrackEffClient.AlgoName   = 'CKFTk'
0092 
0093 from DQM.TrackingMonitor.TrackFoldedOccupancyClient_cfi import *
0094 
0095 TrackingOfflineDQMClient = cms.Sequence(trackingQTester*trackingOfflineAnalyser*trackingEffFromHitPattern*voMonitoringClientSequence*primaryVertexResolutionClient*TrackEffClient*foldedMapClientSeq)
0096 
0097 TrackingOfflineDQMClientZeroBias = cms.Sequence(trackingQTester*trackingOfflineAnalyser*trackingEffFromHitPatternZeroBias*voMonitoringClientSequence*primaryVertexResolutionClient*TrackEffClient*foldedMapClientSeq)
0098 
0099 # fastsim customs
0100 _TrackingOfflineDQMClient_fastsim = TrackingOfflineDQMClient.copy()
0101 _TrackingOfflineDQMClient_fastsim.remove(foldedMapClientSeq)
0102 
0103 _TrackingOfflineDQMClientZeroBias_fastsim = TrackingOfflineDQMClientZeroBias.copy()
0104 _TrackingOfflineDQMClientZeroBias_fastsim.remove(foldedMapClientSeq)
0105 
0106 from Configuration.Eras.Modifier_fastSim_cff import fastSim
0107 fastSim.toReplaceWith(TrackingOfflineDQMClient,_TrackingOfflineDQMClient_fastsim)
0108 
0109 from Configuration.Eras.Modifier_fastSim_cff import fastSim
0110 fastSim.toReplaceWith(TrackingOfflineDQMClientZeroBias,_TrackingOfflineDQMClientZeroBias_fastsim)