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

Constructor & Destructor Documentation

def pyrootRender.batchRender.__init__ (   self,
  outputfilename 
)

Definition at line 41 of file pyrootRender.py.

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

Member Function Documentation

def pyrootRender.batchRender.draw (   self,
  rootobj 
)

Definition at line 56 of file pyrootRender.py.

References pyrootRender.batchRender.__outfile.

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

Member Data Documentation

pyrootRender.batchRender.__canvas
private

Definition at line 44 of file pyrootRender.py.

pyrootRender.batchRender.__outfile
private

Definition at line 55 of file pyrootRender.py.

Referenced by pyrootRender.batchRender.draw().