CMS 3D CMS Logo

PostProcessorExample_cfi.py
Go to the documentation of this file.
1 #the sequence defined herein do not get included
2 # in the actual sequences run centrally
3 #these module instances serve as examples of postprocessing
4 # new histograms are generated as the ratio of the specified input
5 # defined thru 'efficiency = cms.vstring(arg)' where arg has the form
6 # "ratio 'histo title; x-label; y-label; numerator denominator'"
7 #the base code is in: DQMServices/ClientConfig/plugins/DQMGenericClient.cc
8 #note: output and verbose must be disabled for integration,
9 
10 import FWCore.ParameterSet.Config as cms
11 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
12 
13 
14 myMuonPostVal = DQMEDHarvester("DQMGenericClient",
15  verbose = cms.untracked.uint32(0), #set this to zero!
16  outputFileName = cms.untracked.string(''),# set this to empty!
17  #outputFileName= cms.untracked.string('MuonPostProcessor.root'),
18  commands = cms.vstring(),
19  resolution = cms.vstring(),
20  subDirs = cms.untracked.vstring('HLT/Muon/Distributions/*'),
21  efficiency = cms.vstring(
22  "EFF 'my title; my x-label; my y-label' genPassEta_L1Filtered genPassEta_All"
23  )
24 )
25 
26 
27 myEgammaPostVal = DQMEDHarvester("DQMGenericClient",
28  #outputFileName= cms.untracked.string('EgammaPostProcessor.root'),
29  commands = cms.vstring(),
30  resolution = cms.vstring(),
31  subDirs = cms.untracked.vstring('HLT/HLTEgammaValidation/*'),
32  efficiency = cms.vstring(
33  "EFF 'my title; my x-label; my y-label' hltL1sDoubleEgammaeta hltL1sDoubleEgammaeta"
34  )
35 )
36 
37 myTauPostVal = DQMEDHarvester("DQMGenericClient",
38  #outputFileName= cms.untracked.string('TauPostProcessor.root'),
39  commands = cms.vstring(),
40  resolution = cms.vstring(),
41  subDirs = cms.untracked.vstring('HLT/HLTTAU/*'),
42  efficiency = cms.vstring(
43  "EFF 'my title; my x-label; my y-label' L1Tau1Eta GenTauElecEta"
44  )
45 )
46 
47 
48 myTopPostVal = DQMEDHarvester("DQMGenericClient",
49  #outputFileName= cms.untracked.string('TopPostProcessor.root'),
50  commands = cms.vstring(),
51  resolution = cms.vstring(),
52  subDirs = cms.untracked.vstring('HLT/Top/'),
53  efficiency = cms.vstring(
54  "TrigEFF 'my title; my x-label; my y-label' pt_trig_off_mu pt_off_mu"
55  )
56 )
57 
58 ExamplePostVal = cms.Sequence(
59  myMuonPostVal
60  +myEgammaPostVal
61  +myTauPostVal
62  +myTopPostVal
63  )