CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
12 
13 myMuonPostVal = cms.EDAnalyzer("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 = cms.EDAnalyzer("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 = cms.EDAnalyzer("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 
47 myTopPostVal = cms.EDAnalyzer("DQMGenericClient",
48  #outputFileName= cms.untracked.string('TopPostProcessor.root'),
49  commands = cms.vstring(),
50  resolution = cms.vstring(),
51  subDirs = cms.untracked.vstring('HLT/Top/'),
52  efficiency = cms.vstring(
53  "TrigEFF 'my title; my x-label; my y-label' pt_trig_off_mu pt_off_mu"
54  )
55 )
56 
57 ExamplePostVal = cms.Sequence(
58  myMuonPostVal
59  +myEgammaPostVal
60  +myTauPostVal
61  +myTopPostVal
62  )