Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:09:10

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         "effic_vs_{0}_TIB1  'TIB Layer1 Efficiency vs {1}'  Hits{2}_valid_TIB_Subdet1  Hits{2}_total_TIB_Subdet1" .format(suffix, quant, histoPostfix),
0022         "effic_vs_{0}_TIB2  'TIB Layer2 Efficiency vs {1}'  Hits{2}_valid_TIB_Subdet2  Hits{2}_total_TIB_Subdet2" .format(suffix, quant, histoPostfix),
0023         "effic_vs_{0}_TIB3  'TIB Layer3 Efficiency vs {1}'  Hits{2}_valid_TIB_Subdet3  Hits{2}_total_TIB_Subdet3" .format(suffix, quant, histoPostfix),
0024         "effic_vs_{0}_TIB4  'TIB Layer4 Efficiency vs {1}'  Hits{2}_valid_TIB_Subdet4  Hits{2}_total_TIB_Subdet4" .format(suffix, quant, histoPostfix),
0025         "effic_vs_{0}_TOB1  'TOB Layer1 Efficiency vs {1}'  Hits{2}_valid_TOB_Subdet1  Hits{2}_total_TOB_Subdet1" .format(suffix, quant, histoPostfix),
0026         "effic_vs_{0}_TOB2  'TOB Layer2 Efficiency vs {1}'  Hits{2}_valid_TOB_Subdet2  Hits{2}_total_TOB_Subdet2" .format(suffix, quant, histoPostfix),
0027         "effic_vs_{0}_TOB3  'TOB Layer3 Efficiency vs {1}'  Hits{2}_valid_TOB_Subdet3  Hits{2}_total_TOB_Subdet3" .format(suffix, quant, histoPostfix),
0028         "effic_vs_{0}_TOB4  'TOB Layer4 Efficiency vs {1}'  Hits{2}_valid_TOB_Subdet4  Hits{2}_total_TOB_Subdet4" .format(suffix, quant, histoPostfix),
0029         "effic_vs_{0}_TOB5  'TOB Layer5 Efficiency vs {1}'  Hits{2}_valid_TOB_Subdet5  Hits{2}_total_TOB_Subdet5" .format(suffix, quant, histoPostfix),
0030         "effic_vs_{0}_TOB6  'TOB Layer6 Efficiency vs {1}'  Hits{2}_valid_TOB_Subdet6  Hits{2}_total_TOB_Subdet6" .format(suffix, quant, histoPostfix),
0031         "effic_vs_{0}_TID1  'TID Layer1 Efficiency vs {1}'  Hits{2}_valid_TID_Subdet1  Hits{2}_total_TID_Subdet1" .format(suffix, quant, histoPostfix),
0032         "effic_vs_{0}_TID2  'TID Layer2 Efficiency vs {1}'  Hits{2}_valid_TID_Subdet2  Hits{2}_total_TID_Subdet2" .format(suffix, quant, histoPostfix),
0033         "effic_vs_{0}_TID3  'TID Layer3 Efficiency vs {1}'  Hits{2}_valid_TID_Subdet3  Hits{2}_total_TID_Subdet3" .format(suffix, quant, histoPostfix),
0034         "effic_vs_{0}_TID4  'TID Layer3 Efficiency vs {1}'  Hits{2}_valid_TID_Subdet4  Hits{2}_total_TID_Subdet4" .format(suffix, quant, histoPostfix),
0035         "effic_vs_{0}_TID5  'TID Layer3 Efficiency vs {1}'  Hits{2}_valid_TID_Subdet5  Hits{2}_total_TID_Subdet5" .format(suffix, quant, histoPostfix),
0036         "effic_vs_{0}_TEC1  'TEC Layer1 Efficiency vs {1}'  Hits{2}_valid_TEC_Subdet1  Hits{2}_total_TEC_Subdet1" .format(suffix, quant, histoPostfix),
0037         "effic_vs_{0}_TEC2  'TEC Layer2 Efficiency vs {1}'  Hits{2}_valid_TEC_Subdet2  Hits{2}_total_TEC_Subdet2" .format(suffix, quant, histoPostfix),
0038         "effic_vs_{0}_TEC3  'TEC Layer3 Efficiency vs {1}'  Hits{2}_valid_TEC_Subdet3  Hits{2}_total_TEC_Subdet3" .format(suffix, quant, histoPostfix),
0039         "effic_vs_{0}_TEC4  'TEC Layer4 Efficiency vs {1}'  Hits{2}_valid_TEC_Subdet4  Hits{2}_total_TEC_Subdet4" .format(suffix, quant, histoPostfix),
0040         "effic_vs_{0}_TEC5  'TEC Layer5 Efficiency vs {1}'  Hits{2}_valid_TEC_Subdet5  Hits{2}_total_TEC_Subdet5" .format(suffix, quant, histoPostfix),
0041         "effic_vs_{0}_TEC6  'TEC Layer6 Efficiency vs {1}'  Hits{2}_valid_TEC_Subdet6  Hits{2}_total_TEC_Subdet6" .format(suffix, quant, histoPostfix),
0042         "effic_vs_{0}_TEC7  'TEC Layer7 Efficiency vs {1}'  Hits{2}_valid_TEC_Subdet7  Hits{2}_total_TEC_Subdet7" .format(suffix, quant, histoPostfix),
0043         "effic_vs_{0}_TEC8  'TEC Layer8 Efficiency vs {1}'  Hits{2}_valid_TEC_Subdet8  Hits{2}_total_TEC_Subdet8" .format(suffix, quant, histoPostfix),
0044         "effic_vs_{0}_TEC9  'TEC Layer9 Efficiency vs {1}'  Hits{2}_valid_TEC_Subdet9  Hits{2}_total_TEC_Subdet9" .format(suffix, quant, histoPostfix),
0045     ]
0046 
0047 trackingEffFromHitPattern = DQMEDHarvester("DQMGenericClient",
0048                                            subDirs = cms.untracked.vstring(
0049         "Tracking/TrackParameters/generalTracks/HitEffFromHitPattern*",
0050         "Tracking/TrackParameters/highPurityTracks/pt_1/HitEffFromHitPattern*",
0051         "Tracking/TrackParameters/highPurityTracks/dzPV0p1/HitEffFromHitPattern*",
0052         "Muons/Tracking/innerTrack/HitEffFromHitPattern*",
0053         "Muons/globalMuons/HitEffFromHitPattern*",
0054                                            ),
0055                                            efficiency = cms.vstring(
0056         _layers("PU", "GoodNumVertices", "") +
0057         _layers("BX", "BX", "VsBX") +
0058         _layers("LUMI", "LUMI", "VsLUMI")
0059         ),
0060                                            resolution = cms.vstring(),
0061                                            verbose = cms.untracked.uint32(5),
0062                                            outputFileName = cms.untracked.string(""),
0063                                            )