/data3/calcul/jacquem/working_dir/Micromegas/micromegasFrameWork/include/parser/CrcCheck.hh

Go to the documentation of this file.
00001 /* @version $Revision: 1328 $ * @modifiedby $Author: jacquem $ * @lastmodified $Date: 2011-10-03 17:04:17 +0200 (Mon, 03 Oct 2011) $ */
00002 
00003 #ifndef CRCCHECK_HH
00004 #define CRCCHECK_HH
00005 
00006 //////////////////////////////////////////////////////////////////////////
00007 //                                                                      //
00008 // CRC verification for MICROMEGAS READOUT                                //
00009 //                                                                      //
00010 //////////////////////////////////////////////////////////////////////////
00011 #include <vector>
00012 #include "mTypes.h"
00013 
00014 //////////////////////////////////////////////////////////////////////////
00015 //////////////////////////////////////////////////////////////////////////
00016 class CrcCheck
00017 {
00018   public:
00019     CrcCheck();
00020     ~CrcCheck();
00021 
00022   private :
00023   void init();
00024 
00025   public:
00026   void compute(ui16 value);
00027   void reset() { crc = 0xffff; };
00028 
00029   ui16 getCrc() { return crc; };
00030 
00031 
00032   private :
00033   std::vector<ui16> keys;
00034   ui16 crc;
00035   
00036 
00037 }; // class CrcCheck
00038 
00039 #endif
00040 

Generated on Mon Jan 7 13:15:20 2013 for MicromegasFramework by  doxygen 1.4.7