Last change
on this file since 17030 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 |
|
---|
20 | from ROOT import gRandom, TCanvas, TH1F
|
---|
21 |
|
---|
22 | c1 = TCanvas( 'c1', 'Example', 200, 10, 700, 500 )
|
---|
23 | hpx = TH1F( 'hpx', 'px', 100, -4, 4 )
|
---|
24 |
|
---|
25 | for i in xrange( 25000 ):
|
---|
26 | px = gRandom.Gaus()
|
---|
27 | hpx.Fill( px )
|
---|
28 |
|
---|
29 | hpx.Draw()
|
---|
30 | c1.Update()
|
---|
31 |
|
---|
32 |
|
---|
33 |
|
---|
34 |
|
---|
35 | print " ... histogram drawn ... "
|
---|
36 |
|
---|
37 |
|
---|
38 |
|
---|
39 |
|
---|
40 |
|
---|
41 | answer = raw_input('type "quit" to quit ')
|
---|
42 | while not 'quit' in answer:
|
---|
43 | answer = raw_input('type "quit" to quit ')
|
---|
Note:
See
TracBrowser
for help on using the repository browser.