test
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.interactiveRender Class Reference
Inheritance diagram for pyrootRender.interactiveRender:

Public Member Functions

def __init__
 
def draw
 

Private Attributes

 __canvas
 

Detailed Description

Definition at line 16 of file pyrootRender.py.

Constructor & Destructor Documentation

def pyrootRender.interactiveRender.__init__ (   self)

Definition at line 17 of file pyrootRender.py.

17 
18  def __init__(self):
19  Tk.Frame.__init__(self,master=root)
20  ROOT.gStyle.SetOptStat(0)
21  ROOT.gROOT.SetBatch(ROOT.kFALSE)
22  self.__canvas=TCanvas("Luminosity","",1)
23  self.__canvas.SetHighLightColor(2);
24  self.__canvas.Range(-125.6732,-0.1364721,1123.878,1.178117)
25  self.__canvas.SetFillColor(0)
26  self.__canvas.SetBorderMode(0)
27  self.__canvas.SetBorderSize(2)
28  self.__canvas.SetGridx()
29  self.__canvas.SetGridy()
30  self.__canvas.SetFrameFillColor(19)
31  self.__canvas.SetFrameBorderMode(0)
self.__canvas.SetFrameBorderMode(0)

Member Function Documentation

def pyrootRender.interactiveRender.draw (   self,
  rootobj 
)

Definition at line 32 of file pyrootRender.py.

References l1t::stage1::CaloSpareHFPacker.pack(), l1t::stage1::EtSumPacker.pack(), l1t::stage2::GlobalAlgBlkPacker.pack(), l1t::stage2::GlobalExtBlkPacker.pack(), l1t::stage1::HFRingPacker.pack(), l1t::stage1::MissEtPacker.pack(), l1t::stage1::MissHtPacker.pack(), l1t::stage2::RegionalMuonGMTPacker.pack(), l1t::stage2::CaloTowerPacker.pack(), l1t::stage2::MuonPacker.pack(), l1t::stage2::EGammaPacker.pack(), l1t::stage2::EtSumPacker.pack(), l1t::stage2::JetPacker.pack(), l1t::stage2::TauPacker.pack(), CastorPacker.pack(), CastorCtdcPacker.pack(), l1t::Packer.pack(), l1t::stage1::RCTEmRegionPacker.pack(), HcalPacker.pack(), ReadRepacker.pack(), CSCDCCEventData.pack(), l1t::stage1::IsoEGammaPacker.pack(), l1t::stage1::NonIsoEGammaPacker.pack(), l1t::stage1::CentralJetPacker.pack(), l1t::stage1::ForwardJetPacker.pack(), CSCDDUEventData.pack(), CSCTMBData.pack(), CastorMergerData.pack(), l1t::stage1::TauPacker.pack(), l1t::stage1::IsoTauPacker.pack(), CastorCORData.pack(), HcalUHTRData.pack(), HcalHTRData.pack(), L1CaloMipQuietRegion.pack(), CSCEventData.pack(), CSCALCTHeader.pack(), L1CaloRegion.pack(), pat::MET::PackedMETUncertainty.pack(), pat::PackedGenParticle.pack(), and pat::PackedCandidate.pack().

32 
33  def draw(self,rootobj):
34  rootobj.Draw()
35  self.pack()
36  button=Tk.Button(master=root,text='Quit',command=sys.exit)
37  button.pack(side=Tk.BOTTOM)
Tk.mainloop()

Member Data Documentation

pyrootRender.interactiveRender.__canvas
private

Definition at line 21 of file pyrootRender.py.