source: fact/tools/rootmacros/julia.C@ 14026

Last change on this file since 14026 was 14026, checked in by neise, 12 years ago
initial comm
File size: 502 bytes
Line 
1#include <iostream>
2#include "fits.h"
3
4
5void julia()
6{
7 gROOT->SetStyle("Plain");
8
9 filename = "/fact/aux/2012/05/30/20120530_063.FTM_CONTROL_TRIGGER_RATES.fits"
10
11 fits * file = new fits(filename);
12
13 size_t NumberOfRows = file->GetNumRows();
14
15 unsigned long rate =0;
16 double time = 0;
17
18 file->SetRefAddress("TriggerRate", rate);
19 file->SetRefAddress("Time", time);
20
21 while (file->GetNextRow() )
22 {
23 cout << "time: " << time "\t" << "rate: " << rate << endl;
24 }
25}
Note: See TracBrowser for help on using the repository browser.