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 myMuonPostVal = DQMEDHarvester("DQMGenericClient",
14  verbose = cms.untracked.uint32(0), #set this to zero!
15  outputFileName = cms.untracked.string(''),# set this to empty!
16  #outputFileName= cms.untracked.string('MuonPostProcessor.root'),
17  commands = cms.vstring(),
18  resolution = cms.vstring(),
19  subDirs = cms.untracked.vstring('HLT/Muon/Distributions/*'),
20  efficiency = cms.vstring(
21  "EFF 'my title; my x-label; my y-label' genPassEta_L1Filtered genPassEta_All"
22  )
23 )
24 
25 
26 myEgammaPostVal = DQMEDHarvester("DQMGenericClient",
27  #outputFileName= cms.untracked.string('EgammaPostProcessor.root'),
28  commands = cms.vstring(),
29  resolution = cms.vstring(),
30  subDirs = cms.untracked.vstring('HLT/HLTEgammaValidation/*'),
31  efficiency = cms.vstring(
32  "EFF 'my title; my x-label; my y-label' hltL1sDoubleEgammaeta hltL1sDoubleEgammaeta"
33  )
34 )
35 
36 myTauPostVal = DQMEDHarvester("DQMGenericClient",
37  #outputFileName= cms.untracked.string('TauPostProcessor.root'),
38  commands = cms.vstring(),
39  resolution = cms.vstring(),
40  subDirs = cms.untracked.vstring('HLT/HLTTAU/*'),
41  efficiency = cms.vstring(
42  "EFF 'my title; my x-label; my y-label' L1Tau1Eta GenTauElecEta"
43  )
44 )
45 
46 ExamplePostVal = cms.Sequence(
47  myMuonPostVal
48  +myEgammaPostVal
49  +myTauPostVal
50 )