Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-04-02 03:10:36

0001 import FWCore.ParameterSet.Config as cms
0002 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
0003 
0004 def _layers(suffix, quant, histoPostfix):
0005     return [
0006         "effic_vs_{0}_PXB1  'PXB Layer1 Efficiency vs {1}'  Hits{2}_valid_PXB_Subdet1  Hits{2}_total_PXB_Subdet1" .format(suffix, quant, histoPostfix),
0007         "effic_vs_{0}_PXB2  'PXB Layer2 Efficiency vs {1}'  Hits{2}_valid_PXB_Subdet2  Hits{2}_total_PXB_Subdet2" .format(suffix, quant, histoPostfix),
0008         "effic_vs_{0}_PXB3  'PXB Layer3 Efficiency vs {1}'  Hits{2}_valid_PXB_Subdet3  Hits{2}_total_PXB_Subdet3" .format(suffix, quant, histoPostfix),
0009         "effic_vs_{0}_PXB4  'PXB Layer4 Efficiency vs {1}'  Hits{2}_valid_PXB_Subdet4  Hits{2}_total_PXB_Subdet4" .format(suffix, quant, histoPostfix),
0010         "effic_vs_{0}_PXF1  'PXF Layer1 Efficiency vs {1}'  Hits{2}_valid_PXF_Subdet1  Hits{2}_total_PXF_Subdet1" .format(suffix, quant, histoPostfix),
0011         "effic_vs_{0}_PXF2  'PXF Layer2 Efficiency vs {1}'  Hits{2}_valid_PXF_Subdet2  Hits{2}_total_PXF_Subdet2" .format(suffix, quant, histoPostfix),
0012         "effic_vs_{0}_PXF3  'PXF Layer3 Efficiency vs {1}'  Hits{2}_valid_PXF_Subdet3  Hits{2}_total_PXF_Subdet3" .format(suffix, quant, histoPostfix),
0013         "effic_vs_{0}_PXF4  'PXF Layer4 Efficiency vs {1}'  Hits{2}_valid_PXF_Subdet4  Hits{2}_total_PXF_Subdet4" .format(suffix, quant, histoPostfix),
0014         "effic_vs_{0}_PXF5  'PXF Layer5 Efficiency vs {1}'  Hits{2}_valid_PXF_Subdet5  Hits{2}_total_PXF_Subdet5" .format(suffix, quant, histoPostfix),
0015         "effic_vs_{0}_PXF6  'PXF Layer6 Efficiency vs {1}'  Hits{2}_valid_PXF_Subdet6  Hits{2}_total_PXF_Subdet6" .format(suffix, quant, histoPostfix),
0016         "effic_vs_{0}_PXF7  'PXF Layer7 Efficiency vs {1}'  Hits{2}_valid_PXF_Subdet7  Hits{2}_total_PXF_Subdet7" .format(suffix, quant, histoPostfix),
0017         "effic_vs_{0}_PXF8  'PXF Layer8 Efficiency vs {1}'  Hits{2}_valid_PXF_Subdet8  Hits{2}_total_PXF_Subdet8" .format(suffix, quant, histoPostfix),
0018         "effic_vs_{0}_PXF9  'PXF Layer9 Efficiency vs {1}'  Hits{2}_valid_PXF_Subdet9  Hits{2}_total_PXF_Subdet9" .format(suffix, quant, histoPostfix),
0019         "effic_vs_{0}_PXF10 'PXF Layer10 Efficiency vs {1}' Hits{2}_valid_PXF_Subdet10 Hits{2}_total_PXF_Subdet10".format(suffix, quant, histoPostfix),
0020         "effic_vs_{0}_PXF11 'PXF Layer11 Efficiency vs {1}' Hits{2}_valid_PXF_Subdet11 Hits{2}_total_PXF_Subdet11".format(suffix, quant, histoPostfix),
0021     ]
0022 
0023 pixelTrackingEffFromHitPattern = DQMEDHarvester("DQMGenericClient",
0024     subDirs = cms.untracked.vstring("Tracking/PixelTrackParameters/pixelTracks/HitEffFromHitPattern*",
0025                                     "Tracking/PixelTrackParameters/dzPV0p1/HitEffFromHitPattern*",
0026                                     "Tracking/PixelTrackParameters/pt_0to1/HitEffFromHitPattern*",
0027                                     "Tracking/PixelTrackParameters/pt_1/HitEffFromHitPattern*"),
0028     efficiency = cms.vstring(
0029         _layers("PU", "GoodNumVertices", "") +
0030         _layers("BX", "BX", "VsBX") +
0031         _layers("LUMI", "LUMI", "VsLUMI")
0032     ),
0033     resolution = cms.vstring(),
0034     verbose = cms.untracked.uint32(5),
0035     outputFileName = cms.untracked.string(""),
0036 )