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

◆ defaults()

def makeLayoutFileForGui.defaults (   locpath,
  dataType,
  var 
)

Definition at line 37 of file makeLayoutFileForGui.py.

References join(), and stripDiscName.

37 def defaults(locpath,dataType,var):
38  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]
39  strow = ',\n\t'.join([row.__repr__() for row in rows])
40  return stdFill.substitute(locpath=locpath,rows=strow)
41 
def defaults(locpath, dataType, var)
static std::string join(char **cmd)
Definition: RemoteFile.cc:19

◆ eleRej()

def makeLayoutFileForGui.eleRej (   locpath,
  var 
)

Definition at line 46 of file makeLayoutFileForGui.py.

References join(), and stripDiscName.

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

◆ layDefaults()

def makeLayoutFileForGui.layDefaults (   locpath,
  dataType,
  var 
)

Definition at line 112 of file makeLayoutFileForGui.py.

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

112 def layDefaults(locpath,dataType,var):
113  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]
114  strows = [',\n\t'.join([row.__repr__() for row in rows]) for rows in framerows]
115  ret = [stdFill.substitute(locpath=locpath % postfix, rows=strow) for postfix,strow in zip(string.letters,strows)]
116  return '\n'.join(ret)
117 
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:19

◆ muRej()

def makeLayoutFileForGui.muRej (   locpath,
  var 
)

Definition at line 42 of file makeLayoutFileForGui.py.

References stripDiscName.

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

◆ sCone()

def makeLayoutFileForGui.sCone (   locpath,
  dataType,
  var 
)

Definition at line 118 of file makeLayoutFileForGui.py.

References join(), and stripDiscName.

118 def sCone(locpath,dataType,var):
119  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]
120  strow = ',\n\t'.join([row.__repr__() for row in rows])
121  return stdFill.substitute(locpath=locpath,rows=strow)
122 
def sCone(locpath, dataType, var)
static std::string join(char **cmd)
Definition: RemoteFile.cc:19

◆ sizeSumpt()

def makeLayoutFileForGui.sizeSumpt (   locpath,
  dataType,
  var 
)

Definition at line 123 of file makeLayoutFileForGui.py.

References join().

123 def sizeSumpt(locpath,dataType,var):
124  typ = lambda x: x.split('_')[-2]
125  if typ == 'SumPt':
126  typ += ' distribution'
127  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]
128  strow = ',\n\t'.join([row.__repr__() for row in rows])
129  return stdFill.substitute(locpath=locpath,rows=strow)
130 
static std::string join(char **cmd)
Definition: RemoteFile.cc:19
def sizeSumpt(locpath, dataType, var)

Variable Documentation

◆ datasetNames

makeLayoutFileForGui.datasetNames

◆ defaultPlots

makeLayoutFileForGui.defaultPlots

Definition at line 10 of file makeLayoutFileForGui.py.

◆ elerejplots

makeLayoutFileForGui.elerejplots

Definition at line 23 of file makeLayoutFileForGui.py.

◆ layout

makeLayoutFileForGui.layout

◆ layoutDefaultPlots

makeLayoutFileForGui.layoutDefaultPlots

Definition at line 79 of file makeLayoutFileForGui.py.

◆ layoutscone

makeLayoutFileForGui.layoutscone

Definition at line 94 of file makeLayoutFileForGui.py.

◆ layoutSizeSumpt

makeLayoutFileForGui.layoutSizeSumpt

Definition at line 101 of file makeLayoutFileForGui.py.

◆ layoutString

makeLayoutFileForGui.layoutString

LAYOUTS.

Definition at line 76 of file makeLayoutFileForGui.py.

◆ muonrejplots

makeLayoutFileForGui.muonrejplots

Definition at line 19 of file makeLayoutFileForGui.py.

◆ outputFileString

makeLayoutFileForGui.outputFileString

Definition at line 34 of file makeLayoutFileForGui.py.

◆ stdFill

makeLayoutFileForGui.stdFill

Definition at line 35 of file makeLayoutFileForGui.py.

◆ stripDiscName

makeLayoutFileForGui.stripDiscName

Definition at line 8 of file makeLayoutFileForGui.py.

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

◆ sumVar

makeLayoutFileForGui.sumVar

Definition at line 132 of file makeLayoutFileForGui.py.

◆ toAdd

makeLayoutFileForGui.toAdd

Definition at line 54 of file makeLayoutFileForGui.py.

◆ variables

makeLayoutFileForGui.variables

Definition at line 30 of file makeLayoutFileForGui.py.