CMS 3D CMS Logo

Public Member Functions | Private Attributes

pyrootRender::batchRender Class Reference

List of all members.

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.

00040                                      :
00041         ROOT.gStyle.SetOptStat(0)
00042         ROOT.gROOT.SetBatch(ROOT.kTRUE)
00043         self.__canvas=TCanvas("Luminosity","",1)
00044         self.__canvas.SetHighLightColor(2);
00045         self.__canvas.Range(-125.6732,-0.1364721,1123.878,1.178117)
00046         self.__canvas.SetFillColor(0)
00047         self.__canvas.SetBorderMode(0)
00048         self.__canvas.SetBorderSize(2)
00049         self.__canvas.SetGridx()
00050         self.__canvas.SetGridy()
00051         self.__canvas.SetFrameFillColor(19)
00052         self.__canvas.SetFrameBorderMode(0)
00053         self.__canvas.SetFrameBorderMode(0)
        self.__outfile=outputfilename

Member Function Documentation

def pyrootRender::batchRender::draw (   self,
  rootobj 
)

Definition at line 54 of file pyrootRender.py.

00055                           :
00056         rootobj.Draw()
00057         self.__canvas.Modified()
00058         self.__canvas.cd()
00059         self.__canvas.SetSelected(rootobj)
        self.__canvas.SaveAs(self.__outfile)

Member Data Documentation

Definition at line 39 of file pyrootRender.py.

Definition at line 39 of file pyrootRender.py.