Changeset 12204 for fact/tools


Ignore:
Timestamp:
10/18/11 14:00:37 (13 years ago)
Author:
neise
Message:
removed CRLF
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/tools/rootmacros/zippedfitstest.C

    r12196 r12204  
    9191
    9292int 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",
    9595        int pixelnr                     = 4,
    9696        int firstevent                  = 0,
     
    119119// Open the file
    120120//-------------------------------------------
    121         fits datafile( datafilename );
     121       
     122
     123        fits *datafile = new fits( datafilename );
    122124        if (!datafile) {
    123125            printf( "Could not open the file: %s\n", datafilename );
    124             return 1;
     126                  return 1;
    125127        }
    126128       
     129
    127130    // access data
    128         NEvents = FOpenDataFile( datafile );
     131        NEvents = FOpenDataFile( *datafile );
    129132
    130133    printf("number of events in file: %d\n", NEvents);
     
    160163    for ( int ev = firstevent; ev < firstevent + nevents; ev++) {
    161164
    162             datafile.GetRow( ev );
     165            datafile->GetRow( ev );
    163166               
    164167                if (ev % 50 ==0){
Note: See TracChangeset for help on using the changeset viewer.