source: fact/tools/pyscripts/sandbox/vogler/PyRoot_test1.py@ 15471

Last change on this file since 15471 was 14173, checked in by vogler, 12 years ago
inital filling of my sandbox
  • Property svn:executable set to *
File size: 708 bytes
Line 
1# ********************************
2#
3# just a test by Patrick Vogler
4#
5# ################################
6
7#from ROOT import gSystem
8#gSystem.Load("calfactfits_h.so") # according to new naming scheme
9#from ROOT import *
10
11
12#TH1F *hist1 = new TH1F("name", "Lightpulser amplitudes ", 450, 0, 450);
13#TCanvas *canv = 0;
14
15
16
17
18
19
20from ROOT import gRandom, TCanvas, TH1F
21
22c1 = TCanvas( 'c1', 'Example', 200, 10, 700, 500 )
23hpx = TH1F( 'hpx', 'px', 100, -4, 4 )
24
25for i in xrange( 25000 ):
26 px = gRandom.Gaus()
27 hpx.Fill( px )
28
29hpx.Draw()
30c1.Update()
31
32
33
34
35print " ... histogram drawn ... "
36
37
38
39
40
41answer = raw_input('type "quit" to quit ')
42while not 'quit' in answer:
43 answer = raw_input('type "quit" to quit ')
Note: See TracBrowser for help on using the repository browser.