- Main Page
- Classes
- Files

- File List
- File Members

# detectorData.h

Go to the documentation of this file.

    00001
    00002 #include <unistd.h>
    00003 #include <cstring>
    00004 #ifndef DETECTOR_DATA_H
    00005 #define DETECTOR_DATA_H
    00006
    00009 class detectorData {
    00010  public:
    00020   detectorData(double *val=NULL, double *err=NULL, double *ang=NULL,  double p_ind=-1, const char *fname="", int np=-1, int ny=1) : values(val), errors(err), angles(ang),  progressIndex(p_ind), npoints(np), npy(ny){
    00021          strcpy(fileName,fname);
    00022   };
    00027     ~detectorData() {if (values) delete [] values; if (errors) delete [] errors; if (angles) delete [] angles;};
    00028     //private:
    00029     double *values;
    00030     double *errors;
    00031     double *angles;
    00032     double progressIndex;
    00033     char fileName[1000];
    00034     int npoints;
    00035     int npy;
    00036 };
    00037
    00038
    00039 #endif

All Classes Files Functions Variables Defines