| Last change
 on this file since 13489 was             12368, checked in by neise, 14 years ago | 
        
          | added another Function to open a Datafile ... see example use in fpeak_cfd.C | 
        
          | 
              
Property                 svn:executable
 set to                 * | 
        
          | File size:
            968 bytes | 
      
      
| Line |  | 
|---|
| 1 | #ifndef __FOPENDATAFILE__H | 
|---|
| 2 | #define __FOPENDATAFILE__H | 
|---|
| 3 |  | 
|---|
| 4 | #include <cstdio> | 
|---|
| 5 |  | 
|---|
| 6 | int FOpenDataFile( | 
|---|
| 7 | fits &datafile, | 
|---|
| 8 | vector<int16_t> &data, | 
|---|
| 9 | vector<int16_t> &data_offset, | 
|---|
| 10 | unsigned int &data_num, | 
|---|
| 11 | size_t &data_n, | 
|---|
| 12 | UInt_t &data_roi, | 
|---|
| 13 | UInt_t &data_px); | 
|---|
| 14 |  | 
|---|
| 15 | size_t OpenDataFile( | 
|---|
| 16 | const char *datafilename,               // path to fits file containing FACT raw data | 
|---|
| 17 | fits * * datafile,                              // ptr to pointer, where to return the fits object | 
|---|
| 18 | vector<int16_t> &Data,                  // vector, which will be filled with raw data | 
|---|
| 19 | vector<int16_t> &StartCells,    // vector, which will be filled with DRS start positions | 
|---|
| 20 | unsigned int &EventID,                  // index of the current event | 
|---|
| 21 | UInt_t &RegionOfInterest,               // Width of the Region, read out of the DRS | 
|---|
| 22 | UInt_t &NumberOfPixels,                 // Total number of pixel, read out of the camera | 
|---|
| 23 | size_t &PXLxROI,                                // Size of column "Data" = #Pixel x ROI | 
|---|
| 24 | // this can be used, to x-check RegionOfInterest and NumberOfPixels | 
|---|
| 25 | int VerbosityLevel                              // | 
|---|
| 26 | ); | 
|---|
| 27 |  | 
|---|
| 28 | #endif //__FOPENDATAFILE__H | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.