Newer
Older
TestStandRepository / Software / TbNtupleMaker / Alibava / .svn / text-base / Data.h.svn-base
@Federica Lionetto Federica Lionetto on 7 Oct 2014 534 bytes Added Software, Data, and AnalysisResults folders
  1. #ifndef DATA_H_
  2. #define DATA_H_
  3.  
  4. /**
  5. * Data is received from the USB port with this format
  6. *
  7. */
  8. struct EventBlock
  9. {
  10. unsigned int time;
  11. unsigned short temp;
  12. unsigned short data[256];
  13. };
  14.  
  15.  
  16.  
  17. /**
  18. * We add value as an estra parameter when moving the
  19. * data within the application. It tells the value of
  20. * the variables which are scanned
  21. */
  22. struct EventData : public EventBlock
  23. {
  24. double value;
  25. };
  26.  
  27. struct EventDataBlock : public EventData
  28. {
  29. unsigned short header[32];
  30. };
  31.  
  32. #endif /*DATA_H_*/