CMS 3D CMS Logo

Functions | Variables
makeLayoutFileForGui Namespace Reference

Functions

def defaults (locpath, dataType, var)
 
def eleRej (locpath, var)
 
def layDefaults (locpath, dataType, var)
 
def muRej (locpath, var)
 
def sCone (locpath, dataType, var)
 
def sizeSumpt (locpath, dataType, var)
 

Variables

 datasetNames
 
 defaultPlots
 
 elerejplots
 
 layout
 
 layoutDefaultPlots
 
 layoutscone
 
 layoutSizeSumpt
 
 layoutString
 LAYOUTS. More...
 
 muonrejplots
 
 outputFileString
 
 stdFill
 
 stripDiscName
 
 sumVar
 
 toAdd
 
 variables
 

Function Documentation

def makeLayoutFileForGui.defaults (   locpath,
  dataType,
  var 
)

Definition at line 35 of file makeLayoutFileForGui.py.

References join(), and stripDiscName.

Referenced by edm::ParameterSetDescription.addVPSet(), edm::ParameterSetDescription.addVPSetOptional(), edm::ParameterSetDescription.addVPSetOptionalUntracked(), edm::ParameterSetDescription.addVPSetUntracked(), HLTMuonL1RegionalFilter.fillDescriptions(), HLTMuonL1TRegionalFilter.fillDescriptions(), EgammaHLTFilteredObjProducer< OutCollType >.fillDescriptions(), TrajSeedMatcher.makePSetDescription(), and edm::ParameterSetDescription.reserve().

35 def defaults(locpath,dataType,var):
36  rows = [[{ 'path': plot % (dataType,var), 'description': '%s fake rate from %s' % (stripDiscName(plot), datasetNames[dataType]),'draw': {'drawopts': "e"}} for plot in row] for row in defaultPlots]
37  strow = ',\n\t'.join([row.__repr__() for row in rows])
38  return stdFill.substitute(locpath=locpath,rows=strow)
39 
def defaults(locpath, dataType, var)
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def makeLayoutFileForGui.eleRej (   locpath,
  var 
)

Definition at line 44 of file makeLayoutFileForGui.py.

References join(), and stripDiscName.

44 def eleRej(locpath,var):
45  rows = [[{ 'path': plot % var, 'description': '%s fake rate' % (stripDiscName(plot)),'draw': {'drawopts': "e"}} for plot in row] for row in elerejplots]
46  strow = ',\n\t'.join([row.__repr__() for row in rows])
47  return stdFill.substitute(locpath=locpath,rows=strow)
48 
49 #
50 #SingleMu
51 #
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def eleRej(locpath, var)
def makeLayoutFileForGui.layDefaults (   locpath,
  dataType,
  var 
)

Definition at line 110 of file makeLayoutFileForGui.py.

References join(), stripDiscName, and ComparisonHelper.zip().

110 def layDefaults(locpath,dataType,var):
111  framerows = [[[{ 'path': plot % (dataType,var), 'description': '%s fake rate from %s' % (stripDiscName(plot), datasetNames[dataType]),'draw': {'drawopts': "e"}} for plot in row] for row in frame] for frame in layoutDefaultPlots]
112  strows = [',\n\t'.join([row.__repr__() for row in rows]) for rows in framerows]
113  ret = [stdFill.substitute(locpath=locpath % postfix, rows=strow) for postfix,strow in zip(string.letters,strows)]
114  return '\n'.join(ret)
115 
OutputIterator zip(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, OutputIterator result, Compare comp)
def layDefaults(locpath, dataType, var)
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def makeLayoutFileForGui.muRej (   locpath,
  var 
)

Definition at line 40 of file makeLayoutFileForGui.py.

References stripDiscName.

40 def muRej(locpath,var):
41  rows = [{ 'path': plot % var, 'description': '%s fake rate' % (stripDiscName(plot)),'draw': {'drawopts': "e"}} for plot in muonrejplots]
42  return stdFill.substitute(locpath=locpath,rows=rows.__repr__())
43 
def muRej(locpath, var)
def makeLayoutFileForGui.sCone (   locpath,
  dataType,
  var 
)

Definition at line 116 of file makeLayoutFileForGui.py.

References join(), and stripDiscName.

116 def sCone(locpath,dataType,var):
117  rows = [[{ 'path': plot % (dataType,var), 'description': '%s fake rate from %s' % (stripDiscName(plot), datasetNames[dataType]),'draw': {'drawopts': "e"}} for plot in row] for row in layoutscone]
118  strow = ',\n\t'.join([row.__repr__() for row in rows])
119  return stdFill.substitute(locpath=locpath,rows=strow)
120 
def sCone(locpath, dataType, var)
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def makeLayoutFileForGui.sizeSumpt (   locpath,
  dataType,
  var 
)

Definition at line 121 of file makeLayoutFileForGui.py.

References join().

121 def sizeSumpt(locpath,dataType,var):
122  typ = lambda x: x.split('_')[-2]
123  if typ == 'SumPt':
124  typ += ' distribution'
125  rows = [[{ 'path': plot % (dataType,var), 'description': '%s faking taus %s of %s' % (datasetNames[dataType],typ(plot), var),'draw': {'drawopts': "e"}} for plot in row] for row in layoutSizeSumpt]
126  strow = ',\n\t'.join([row.__repr__() for row in rows])
127  return stdFill.substitute(locpath=locpath,rows=strow)
128 
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def sizeSumpt(locpath, dataType, var)

Variable Documentation

makeLayoutFileForGui.datasetNames
makeLayoutFileForGui.defaultPlots

Definition at line 10 of file makeLayoutFileForGui.py.

makeLayoutFileForGui.elerejplots

Definition at line 21 of file makeLayoutFileForGui.py.

makeLayoutFileForGui.layout
makeLayoutFileForGui.layoutDefaultPlots

Definition at line 77 of file makeLayoutFileForGui.py.

makeLayoutFileForGui.layoutscone

Definition at line 92 of file makeLayoutFileForGui.py.

makeLayoutFileForGui.layoutSizeSumpt

Definition at line 99 of file makeLayoutFileForGui.py.

makeLayoutFileForGui.layoutString

LAYOUTS.

Definition at line 74 of file makeLayoutFileForGui.py.

makeLayoutFileForGui.muonrejplots

Definition at line 19 of file makeLayoutFileForGui.py.

makeLayoutFileForGui.outputFileString

Definition at line 32 of file makeLayoutFileForGui.py.

makeLayoutFileForGui.stdFill

Definition at line 33 of file makeLayoutFileForGui.py.

makeLayoutFileForGui.stripDiscName

Definition at line 8 of file makeLayoutFileForGui.py.

Referenced by defaults(), eleRej(), layDefaults(), muRej(), and sCone().

makeLayoutFileForGui.sumVar

Definition at line 130 of file makeLayoutFileForGui.py.

makeLayoutFileForGui.toAdd

Definition at line 52 of file makeLayoutFileForGui.py.

makeLayoutFileForGui.variables

Definition at line 28 of file makeLayoutFileForGui.py.