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

Constructor & Destructor Documentation

def pyrootRender.interactiveRender.__init__ (   self)

Definition at line 19 of file pyrootRender.py.

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

Member Function Documentation

def pyrootRender.interactiveRender.draw (   self,
  rootobj 
)

Definition at line 34 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().

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

Member Data Documentation

pyrootRender.interactiveRender.__canvas
private

Definition at line 23 of file pyrootRender.py.