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 39 of file pyrootRender.py.

Constructor & Destructor Documentation

def pyrootRender.batchRender.__init__ (   self,
  outputfilename 
)

Definition at line 40 of file pyrootRender.py.

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)
54  self.__outfile=outputfilename
def __init__(self, outputfilename)
Definition: pyrootRender.py:40

Member Function Documentation

def pyrootRender.batchRender.draw (   self,
  rootobj 
)

Definition at line 55 of file pyrootRender.py.

References pyrootRender.batchRender.__outfile.

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

Member Data Documentation

pyrootRender.batchRender.__canvas
private

Definition at line 43 of file pyrootRender.py.

pyrootRender.batchRender.__outfile
private

Definition at line 54 of file pyrootRender.py.

Referenced by pyrootRender.batchRender.draw().