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

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