CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
pyrootRender.batchRender Class Reference

Public Member Functions

def __init__ (self, outputfilename)
 
def draw (self, rootobj)
 

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

Member Function Documentation

def pyrootRender.batchRender.draw (   self,
  rootobj 
)

Definition at line 54 of file pyrootRender.py.

References pyrootRender.batchRender.__outfile.

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

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().