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

Constructor & Destructor Documentation

def pyrootRender.interactiveRender.__init__ (   self)

Definition at line 17 of file pyrootRender.py.

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

Member Function Documentation

def pyrootRender.interactiveRender.draw (   self,
  rootobj 
)

Definition at line 32 of file pyrootRender.py.

References l1t::stage2::RegionalMuonGMTPacker.pack(), l1t::stage1::CaloSpareHFPacker.pack(), l1t::stage2::CaloTowerPacker.pack(), l1t::stage1::RCTEmRegionPacker.pack(), l1t::stage2::GlobalExtBlkPacker.pack(), l1t::stage2::IntermediateMuonPacker.pack(), l1t::stage2::GlobalAlgBlkPacker.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::TauPacker.pack(), l1t::stage2::EtSumPacker.pack(), l1t::stage2::MuonPacker.pack(), l1t::stage2::JetPacker.pack(), l1t::stage2::CaloLayer1Packer.pack(), l1t::stage2::BMTFPackerOutput.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().

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

Member Data Documentation

pyrootRender.interactiveRender.__canvas
private

Definition at line 21 of file pyrootRender.py.