CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
makeLayoutFileForGui Namespace Reference

Functions

def defaults
 
def eleRej
 
def layDefaults
 
def muRej
 
def sCone
 
def sizeSumpt
 

Variables

dictionary datasetNames = {'RealData' : 'QCD Jets', 'RealMuonsData' : 'muons from Z', 'RealElectronsData' : 'electrons from Z'}
 
list defaultPlots
 
list elerejplots
 
tuple layout = open('shift_pftau_T0_layout.py','w')
 
list layoutDefaultPlots
 
list layoutscone
 
list layoutSizeSumpt
 
string layoutString = 'def pftaulayout(i, p, *rows): i["RecoTauV/Layouts/" + p] = DQMItem(layout=rows)\n\n%s'
 LAYOUTS. More...
 
list muonrejplots = ['RecoTauV/hpsPFTauProducerRealMuonsData_hpsPFTauDiscriminationByLooseMuonRejection/LooseMuonRejectionEff%s', 'RecoTauV/hpsPFTauProducerRealMuonsData_hpsPFTauDiscriminationByMediumMuonRejection/MediumMuonRejectionEff%s', 'RecoTauV/hpsPFTauProducerRealMuonsData_hpsPFTauDiscriminationByTightMuonRejection/TightMuonRejectionEff%s']
 
string outputFileString = 'def shiftpftaulayout(i, p, *rows): i["00 Shift/Tau/" + p] = DQMItem(layout=rows)\n\n%s'
 
tuple stdFill = Template('shiftpftaulayout(\n\tdqmitems,\n\t"$locpath",\n\t$rows\n\t)')
 
tuple stripDiscName = lambdax:(x.split('/')[-1])
 
tuple sumVar = dict( list(zip(string.letters,[elem for elem in ['signalPFCands','isolationPFChargedHadrCands','isolationPFGammaCands','isolationPFNeutrHadrCands'] ])) )
 
list toAdd = [ defaults('SingleMu/00%s - Fake rate from muons vs %s' % item,'RealMuonsData',item[1]) for item in variables.items() ]
 
dictionary variables = {'a':'pt','b':'pileup','c':'eta','d':'phi'}
 

Function Documentation

def makeLayoutFileForGui.defaults (   locpath,
  dataType,
  var 
)

Definition at line 35 of file makeLayoutFileForGui.py.

def makeLayoutFileForGui.eleRej (   locpath,
  var 
)

Definition at line 44 of file makeLayoutFileForGui.py.

def makeLayoutFileForGui.layDefaults (   locpath,
  dataType,
  var 
)

Definition at line 110 of file makeLayoutFileForGui.py.

def makeLayoutFileForGui.muRej (   locpath,
  var 
)

Definition at line 40 of file makeLayoutFileForGui.py.

def makeLayoutFileForGui.sCone (   locpath,
  dataType,
  var 
)

Definition at line 116 of file makeLayoutFileForGui.py.

def makeLayoutFileForGui.sizeSumpt (   locpath,
  dataType,
  var 
)

Definition at line 121 of file makeLayoutFileForGui.py.

Variable Documentation

dictionary makeLayoutFileForGui.datasetNames = {'RealData' : 'QCD Jets', 'RealMuonsData' : 'muons from Z', 'RealElectronsData' : 'electrons from Z'}

Definition at line 30 of file makeLayoutFileForGui.py.

list makeLayoutFileForGui.defaultPlots
Initial value:
1 = [
2  ['RecoTauV/hpsPFTauProducer%s_hpsPFTauDiscriminationByDecayModeFinding/DecayModeFindingEff%s',
3  'RecoTauV/hpsPFTauProducer%s_hpsPFTauDiscriminationByLooseChargedIsolation/LooseChargedIsolationEff%s',
4  'RecoTauV/hpsPFTauProducer%s_hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr/LooseCombinedIsolationDBSumPtCorrEff%s'],
5  ['RecoTauV/hpsPFTauProducer%s_hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr/MediumCombinedIsolationDBSumPtCorrEff%s',
6  'RecoTauV/hpsPFTauProducer%s_hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr/TightCombinedIsolationDBSumPtCorrEff%s',
7  'RecoTauV/hpsPFTauProducer%s_hpsPFTauDiscriminationByVLooseCombinedIsolationDBSumPtCorr/VLooseCombinedIsolationDBSumPtCorrEff%s'],
8  ]

Definition at line 10 of file makeLayoutFileForGui.py.

list makeLayoutFileForGui.elerejplots
Initial value:
1 = [
2  ['RecoTauV/hpsPFTauProducerRealElectronsData_hpsPFTauDiscriminationByLooseElectronRejection/LooseElectronRejectionEff%s',
3  'RecoTauV/hpsPFTauProducerRealElectronsData_hpsPFTauDiscriminationByMVAElectronRejection/MVAElectronRejectionEff%s',],
4  ['RecoTauV/hpsPFTauProducerRealElectronsData_hpsPFTauDiscriminationByMediumElectronRejection/MediumElectronRejectionEff%s',
5  'RecoTauV/hpsPFTauProducerRealElectronsData_hpsPFTauDiscriminationByTightElectronRejection/TightElectronRejectionEff%s']
6  ]

Definition at line 21 of file makeLayoutFileForGui.py.

tuple makeLayoutFileForGui.layout = open('shift_pftau_T0_layout.py','w')

Definition at line 67 of file makeLayoutFileForGui.py.

Referenced by MSLayersKeeperX0AtEta.init().

list makeLayoutFileForGui.layoutDefaultPlots
Initial value:
1 = [
2  [
3  ['RecoTauV/hpsPFTauProducer%s_Matched/PFJetMatchingEff%s',
4  'RecoTauV/hpsPFTauProducer%s_hpsPFTauDiscriminationByDecayModeFinding/DecayModeFindingEff%s'],
5  ['RecoTauV/hpsPFTauProducer%s_hpsPFTauDiscriminationByLooseChargedIsolation/LooseChargedIsolationEff%s',
6  'RecoTauV/hpsPFTauProducer%s_hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr/LooseCombinedIsolationDBSumPtCorrEff%s'],
7  ],
8  [
9  ['RecoTauV/hpsPFTauProducer%s_hpsPFTauDiscriminationByLooseIsolation/LooseIsolationEff%s',
10  'RecoTauV/hpsPFTauProducer%s_hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr/MediumCombinedIsolationDBSumPtCorrEff%s'],
11  ['RecoTauV/hpsPFTauProducer%s_hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr/TightCombinedIsolationDBSumPtCorrEff%s',
12  'RecoTauV/hpsPFTauProducer%s_hpsPFTauDiscriminationByVLooseCombinedIsolationDBSumPtCorr/VLooseCombinedIsolationDBSumPtCorrEff%s'],
13  ]
14  ]

Definition at line 77 of file makeLayoutFileForGui.py.

list makeLayoutFileForGui.layoutscone
Initial value:
1 = [
2  ['RecoTauV/shrinkingConePFTauProducerLeadingPion%s_shrinkingConePFTauDiscriminationByECALIsolationUsingLeadingPion/ECALIsolationUsingLeadingPionEff%s',
3  'RecoTauV/shrinkingConePFTauProducerLeadingPion%s_shrinkingConePFTauDiscriminationByLeadingPionPtCut/LeadingPionPtCutEff%s'],
4  ['RecoTauV/shrinkingConePFTauProducerLeadingPion%s_shrinkingConePFTauDiscriminationByLeadingTrackFinding/LeadingTrackFindingEff%s',
5  'RecoTauV/shrinkingConePFTauProducerLeadingPion%s_shrinkingConePFTauDiscriminationByTrackIsolationUsingLeadingPion/TrackIsolationUsingLeadingPionEff%s']
6  ]

Definition at line 92 of file makeLayoutFileForGui.py.

list makeLayoutFileForGui.layoutSizeSumpt
Initial value:
1 = [
2  ['RecoTauV/hpsPFTauProducer%s_hpsPFTauDiscriminationByDecayModeFinding/hpsPFTauDiscriminationByDecayModeFinding_Size_%s',
3  'RecoTauV/hpsPFTauProducer%s_hpsPFTauDiscriminationByLooseChargedIsolation/hpsPFTauDiscriminationByLooseChargedIsolation_Size_%s',
4  'RecoTauV/hpsPFTauProducer%s_hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr/hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr_Size_%s'],
5  ['RecoTauV/hpsPFTauProducer%s_hpsPFTauDiscriminationByDecayModeFinding/hpsPFTauDiscriminationByDecayModeFinding_SumPt_%s',
6  'RecoTauV/hpsPFTauProducer%s_hpsPFTauDiscriminationByLooseChargedIsolation/hpsPFTauDiscriminationByLooseChargedIsolation_SumPt_%s',
7  'RecoTauV/hpsPFTauProducer%s_hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr/hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr_SumPt_%s'],
8  ]

Definition at line 99 of file makeLayoutFileForGui.py.

string makeLayoutFileForGui.layoutString = 'def pftaulayout(i, p, *rows): i["RecoTauV/Layouts/" + p] = DQMItem(layout=rows)\n\n%s'

LAYOUTS.

Definition at line 74 of file makeLayoutFileForGui.py.

list makeLayoutFileForGui.muonrejplots = ['RecoTauV/hpsPFTauProducerRealMuonsData_hpsPFTauDiscriminationByLooseMuonRejection/LooseMuonRejectionEff%s', 'RecoTauV/hpsPFTauProducerRealMuonsData_hpsPFTauDiscriminationByMediumMuonRejection/MediumMuonRejectionEff%s', 'RecoTauV/hpsPFTauProducerRealMuonsData_hpsPFTauDiscriminationByTightMuonRejection/TightMuonRejectionEff%s']

Definition at line 19 of file makeLayoutFileForGui.py.

string makeLayoutFileForGui.outputFileString = 'def shiftpftaulayout(i, p, *rows): i["00 Shift/Tau/" + p] = DQMItem(layout=rows)\n\n%s'

Definition at line 32 of file makeLayoutFileForGui.py.

tuple makeLayoutFileForGui.stdFill = Template('shiftpftaulayout(\n\tdqmitems,\n\t"$locpath",\n\t$rows\n\t)')

Definition at line 33 of file makeLayoutFileForGui.py.

tuple makeLayoutFileForGui.stripDiscName = lambdax:(x.split('/')[-1])

Definition at line 8 of file makeLayoutFileForGui.py.

tuple makeLayoutFileForGui.sumVar = dict( list(zip(string.letters,[elem for elem in ['signalPFCands','isolationPFChargedHadrCands','isolationPFGammaCands','isolationPFNeutrHadrCands'] ])) )

Definition at line 130 of file makeLayoutFileForGui.py.

list makeLayoutFileForGui.toAdd = [ defaults('SingleMu/00%s - Fake rate from muons vs %s' % item,'RealMuonsData',item[1]) for item in variables.items() ]

Definition at line 52 of file makeLayoutFileForGui.py.

Referenced by HcalPulseContainmentManager.correction().

dictionary makeLayoutFileForGui.variables = {'a':'pt','b':'pileup','c':'eta','d':'phi'}