CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
Formatter.SimpleAsciiFormatter Class Reference

Public Member Functions

def __init__ (self, title="CMS SDT pages", style=None, outFile=sys.stdout)
 
def endTable (self)
 
def showLine (self)
 
def startTable (self, colSizes, colLabels)
 
def write (self, arg="")
 
def writeB (self, arg="")
 
def writeBr (self)
 
def writeH1 (self, arg="")
 
def writeH2 (self, arg="")
 
def writeH3 (self, arg="")
 
def writeRow (self, args)
 

Public Attributes

 cols
 
 format
 
 title
 

Detailed Description

Definition at line 10 of file Formatter.py.

Constructor & Destructor Documentation

◆ __init__()

def Formatter.SimpleAsciiFormatter.__init__ (   self,
  title = "CMS SDT pages",
  style = None,
  outFile = sys.stdout 
)

Definition at line 12 of file Formatter.py.

12  def __init__(self, title="CMS SDT pages", style=None, outFile=sys.stdout) :
13  self.format = ""
14  self.title = title
15  return
16 
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

Member Function Documentation

◆ endTable()

def Formatter.SimpleAsciiFormatter.endTable (   self)

Definition at line 59 of file Formatter.py.

References Formatter.SimpleAsciiFormatter.cols, ProcMatrix::Matrix.cols, and Formatter.SimpleAsciiFormatter.format.

59  def endTable(self) :
60  self.format = None
61  self.cols = None
62 
63 
64 # ================================================================================
65 

◆ showLine()

def Formatter.SimpleAsciiFormatter.showLine (   self)

Definition at line 17 of file Formatter.py.

References print().

17  def showLine(self) :
18  print("\n================================================================================\n")
19  return
20 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

◆ startTable()

def Formatter.SimpleAsciiFormatter.startTable (   self,
  colSizes,
  colLabels 
)

Definition at line 45 of file Formatter.py.

45  def startTable(self, colSizes, colLabels) :
46  self.cols = colSizes
47  self.format = ""
48  for fmt in self.cols :
49  self.format += "%"+str(fmt)+"s "
50  print(self.format % tuple(colLabels))
51 
52  return
53 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
#define str(s)

◆ write()

def Formatter.SimpleAsciiFormatter.write (   self,
  arg = "" 
)

Definition at line 21 of file Formatter.py.

References print().

21  def write(self, arg="") :
22  print(arg)
23  return
24 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

◆ writeB()

def Formatter.SimpleAsciiFormatter.writeB (   self,
  arg = "" 
)

Definition at line 25 of file Formatter.py.

References print().

Referenced by Formatter.SimpleHTMLFormatter.write().

25  def writeB(self, arg="") :
26  print(arg)
27  return
28 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

◆ writeBr()

def Formatter.SimpleAsciiFormatter.writeBr (   self)

Definition at line 29 of file Formatter.py.

References print().

29  def writeBr(self) :
30  print()
31  return
32 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

◆ writeH1()

def Formatter.SimpleAsciiFormatter.writeH1 (   self,
  arg = "" 
)

Definition at line 33 of file Formatter.py.

References print().

33  def writeH1(self, arg="") :
34  print(arg)
35  return
36 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

◆ writeH2()

def Formatter.SimpleAsciiFormatter.writeH2 (   self,
  arg = "" 
)

Definition at line 37 of file Formatter.py.

References print().

37  def writeH2(self, arg="") :
38  print(arg)
39  return
40 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

◆ writeH3()

def Formatter.SimpleAsciiFormatter.writeH3 (   self,
  arg = "" 
)

Definition at line 41 of file Formatter.py.

References print().

41  def writeH3(self, arg="") :
42  print(arg)
43  return
44 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

◆ writeRow()

def Formatter.SimpleAsciiFormatter.writeRow (   self,
  args 
)

Definition at line 54 of file Formatter.py.

References Formatter.SimpleAsciiFormatter.format, print(), and mkLumiAveragedPlots.tuple.

54  def writeRow(self, args) :
55  print(self.format % tuple(args))
56 
57  return
58 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

Member Data Documentation

◆ cols

Formatter.SimpleAsciiFormatter.cols

Definition at line 46 of file Formatter.py.

Referenced by Formatter.SimpleAsciiFormatter.endTable().

◆ format

Formatter.SimpleAsciiFormatter.format

◆ title

Formatter.SimpleAsciiFormatter.title

Definition at line 14 of file Formatter.py.

Referenced by Formatter.SimpleHTMLFormatter.headers().