Line | |
---|
1 | #!/usr/bin/python -itt
|
---|
2 |
|
---|
3 |
|
---|
4 | from factfits import FactFits
|
---|
5 | from ROOT import TCanvas, TGraph
|
---|
6 |
|
---|
7 | #define filenames
|
---|
8 | data_filename_1 =
|
---|
9 | "/fact/aux/2012/04/17/20120417_030.FTM_CONTROL_TRIGGER_RATES.fits"
|
---|
10 | #data_filename_2 =
|
---|
11 | "/fact/aux/2012/04/17/20120417_031.FTM_CONTROL_TRIGGER_RATES.fits"
|
---|
12 |
|
---|
13 | file_handle_1 = FactFits(data_filename_1)
|
---|
14 | #file_handle_2 = FactFits(data_filename_2)
|
---|
15 |
|
---|
16 | file_handle_1.register("TriggerRate")
|
---|
17 | file_handle_1.register("Time")
|
---|
18 | #file_handle_2.register("TriggerRate")
|
---|
19 | #file_handle_2.register("Time")
|
---|
20 |
|
---|
21 | trigger_rate_array = []
|
---|
22 | time_array = []
|
---|
23 |
|
---|
24 | for row in file_handle_1:
|
---|
25 | trigger_rate_array.append(row.TriggerRate)
|
---|
26 | time_array.append(row.Time)
|
---|
27 |
|
---|
28 | #for row in file_handle_2:
|
---|
29 | # trigger_rate_array.append(row.TriggerRate)
|
---|
30 | # time_array.append(row.Time)
|
---|
31 |
|
---|
32 | canv = TCanvas("canv","title",10,10,600,400)
|
---|
33 | graph = TGraph(len(trigger_rate_array),time_array,trigger_rate_array)
|
---|
34 | graph.Draw("ap")
|
---|
35 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.