- Main Page
- Namespaces
- 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){strcpy(fileName,fname);};
    00025     ~detectorData() {if (values) delete [] values; if (errors) delete [] errors; if (angles) delete [] angles;};
    00026     //private:
    00027     double *values;
    00028     double *errors;
    00029     double *angles;
    00030     double progressIndex;
    00031     char fileName[1000];
    00032     int npoints;
    00033     int npy;
    00034 };
    00035
    00036
    00037 #endif