Changeset 12204
- Timestamp:
- 10/18/11 14:00:37 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/rootmacros/zippedfitstest.C
r12196 r12204 91 91 92 92 int zippedfitstest( 93 char *datafilename = "../ raw/20111011_026.fits.gz",94 const char *drsfilename = "../ raw/20111011_022.drs.fits.gz",93 char *datafilename = "../../20111011_026.fits.gz", 94 const char *drsfilename = "../../20111011_022.drs.fits.gz", 95 95 int pixelnr = 4, 96 96 int firstevent = 0, … … 119 119 // Open the file 120 120 //------------------------------------------- 121 fits datafile( datafilename ); 121 122 123 fits *datafile = new fits( datafilename ); 122 124 if (!datafile) { 123 125 printf( "Could not open the file: %s\n", datafilename ); 124 126 return 1; 125 127 } 126 128 129 127 130 // access data 128 NEvents = FOpenDataFile( datafile );131 NEvents = FOpenDataFile( *datafile ); 129 132 130 133 printf("number of events in file: %d\n", NEvents); … … 160 163 for ( int ev = firstevent; ev < firstevent + nevents; ev++) { 161 164 162 datafile .GetRow( ev );165 datafile->GetRow( ev ); 163 166 164 167 if (ev % 50 ==0){
Note:
See TracChangeset
for help on using the changeset viewer.