CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
pyrootRender.batchRender Class Reference

Public Member Functions

def __init__
 
def draw
 

Private Attributes

 __canvas
 
 __outfile
 

Detailed Description

Definition at line 38 of file pyrootRender.py.

Constructor & Destructor Documentation

def pyrootRender.batchRender.__init__ (   self,
  outputfilename 
)

Definition at line 39 of file pyrootRender.py.

39 
40  def __init__(self,outputfilename):
41  ROOT.gStyle.SetOptStat(0)
42  ROOT.gROOT.SetBatch(ROOT.kTRUE)
43  self.__canvas=TCanvas("Luminosity","",1)
44  self.__canvas.SetHighLightColor(2);
45  self.__canvas.Range(-125.6732,-0.1364721,1123.878,1.178117)
46  self.__canvas.SetFillColor(0)
47  self.__canvas.SetBorderMode(0)
48  self.__canvas.SetBorderSize(2)
49  self.__canvas.SetGridx()
50  self.__canvas.SetGridy()
51  self.__canvas.SetFrameFillColor(19)
52  self.__canvas.SetFrameBorderMode(0)
53  self.__canvas.SetFrameBorderMode(0)
self.__outfile=outputfilename

Member Function Documentation

def pyrootRender.batchRender.draw (   self,
  rootobj 
)

Definition at line 54 of file pyrootRender.py.

References pyrootRender.batchRender.__outfile.

54 
55  def draw(self,rootobj):
56  rootobj.Draw()
57  self.__canvas.Modified()
58  self.__canvas.cd()
59  self.__canvas.SetSelected(rootobj)
self.__canvas.SaveAs(self.__outfile)

Member Data Documentation

pyrootRender.batchRender.__canvas
private

Definition at line 42 of file pyrootRender.py.

pyrootRender.batchRender.__outfile
private

Definition at line 53 of file pyrootRender.py.

Referenced by pyrootRender.batchRender.draw().