EUDAQ
 All Classes Namespaces Files Functions Variables Pages
ExampleHardware.hh
1 #ifndef EUDAQ_INCLUDED_ExampleHardware
2 #define EUDAQ_INCLUDED_ExampleHardware
3 
4 #include "eudaq/Timer.hh"
5 #include <vector>
6 
7 namespace eudaq {
8 
9  class DLLEXPORT ExampleHardware {
10  public:
12  void Setup(int);
13  void PrepareForRun();
14  bool EventsPending() const;
15  unsigned NumSensors() const;
16  std::vector<unsigned char> ReadSensor(int sensorid);
17  void CompletedEvent();
18 
19  private:
20  unsigned short m_numsensors, m_width, m_height, m_triggerid;
21  eudaq::Timer m_timer;
22  double m_nextevent;
23  };
24 
25 } // namespace eudaq
26 
27 #endif // EUDAQ_INCLUDED_ExampleHardware
Definition: ExampleHardware.hh:9
Definition: Timer.hh:8