00001 /* @version $Revision: 1865 $ * @modifiedby $Author: jacquem $ * @lastmodified $Date: 2012-08-23 14:00:59 +0200 (Thu, 23 Aug 2012) $ */ 00002 00003 #ifndef MICROROCLABVIEWREADER_HH 00004 #define MICROROCLABVIEWREADER_HH 00005 00006 ////////////////////////////////////////////////////////////////////////// 00007 // // 00008 // MicrorocLabviewReader for MICROMEGAS READOUT // 00009 // From Labview and Crossdaq DAQ 00010 // // 00011 ////////////////////////////////////////////////////////////////////////// 00012 00013 #include "mTypes.h" 00014 #include "MicrorocMergeReader.hh" 00015 #include <map> 00016 00017 #define LABVIEWMR "labviewMR" 00018 #define NBLINE 4 00019 #define NBCHIP 16 00020 #define NBCHANNEL 64 00021 00022 00023 class Run; 00024 class Event; 00025 class Detector; 00026 00027 #include <set> 00028 00029 ////////////////////////////////////////////////////////////////////////// 00030 /// CLASS DATAREADER // 00031 ////////////////////////////////////////////////////////////////////////// 00032 class MicrorocLabviewReader : public MicrorocMergeReader { 00033 public: 00034 MicrorocLabviewReader(Run& aRun, FILE *aFile, ui32 lastEventId, bool forceAnalog,std::set<unsigned int>* = NULL); 00035 ~MicrorocLabviewReader(); 00036 static const char *type(const int subtype = 0) { return LABVIEWMR; }; 00037 00038 // int getScData(); 00039 int getNextEvent(Event& eventToFill) ; 00040 unsigned int getSpecificData(const unsigned int nBytes); 00041 00042 00043 00044 private: 00045 ui16 nbBufferedData; 00046 unsigned int bufferedData; 00047 00048 00049 00050 00051 }; // class MicrorocLabviewReader 00052 00053 #endif 00054