CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
pyrootRender.interactiveRender Class Reference
Inheritance diagram for pyrootRender.interactiveRender:

Public Member Functions

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

Private Attributes

 __canvas
 

Detailed Description

Definition at line 17 of file pyrootRender.py.

Constructor & Destructor Documentation

def pyrootRender.interactiveRender.__init__ (   self)

Definition at line 18 of file pyrootRender.py.

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)
32  self.__canvas.SetFrameBorderMode(0)

Member Function Documentation

def pyrootRender.interactiveRender.draw (   self,
  rootobj 
)

Definition at line 33 of file pyrootRender.py.

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

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)
38  Tk.mainloop()

Member Data Documentation

pyrootRender.interactiveRender.__canvas
private

Definition at line 22 of file pyrootRender.py.