QRawFileHandler.hh

00001 
00002 /*
00003  * APOLLO: A complete DAQ and Online Data Analysis Framework for Cuore 
00004  * SDD created 16/4/4
00005  * 
00006  * $Id: QRawFileHandler.hh 408 2006-11-12 14:58:37Z didomiz $
00007  * 
00008  * Class QRawFileHandler.hh: read data from files
00009  */
00010 
00011 #ifndef __QRAWFILEHANDLER_HH_
00012 #define __QRAWFILEHANDLER_HH_
00013 
00014 #include "QCuore.hh"
00015 #include "gzstream.hh"
00016 
00017 class QRawFileHandler {
00018 public:
00019   QRawFileHandler(unsigned int, unsigned int);
00020   
00021   virtual ~QRawFileHandler();
00022 
00023   long GetData(long *databuff,unsigned long nsamples);
00024  
00025   unsigned int GetSamplingRate() const {return fSamplingRate;}
00026 
00027 private:
00028   igzstream fZFile;
00029   unsigned int fCh;
00030   unsigned int fRun;
00031   unsigned int fFileVersion;
00032   unsigned int fCurrentPartial;
00033   unsigned int fSamplingRate;
00034   std::string fReadFilesPath;
00035   std::string fFilePrefix;
00036 
00037   bool ReadHeader();
00038   bool OpenFile();
00039   bool CloseFile();
00040   bool CheckForEOF();
00041 
00042 };
00043 #endif

Generated on Tue Nov 16 10:49:55 2010 for CUORE Software by  doxygen 1.5.6