CMS 3D CMS Logo

CocoaDaqReader.h
Go to the documentation of this file.
1 #ifndef CocoaDaqReader_h
2 #define CocoaDaqReader_h
3 #include <string>
4 #include <vector>
5 
7 
9 public:
12  static void SetDaqReader(CocoaDaqReader* reader);
13 
14  virtual ~CocoaDaqReader() {}
15 
16  virtual bool ReadNextEvent() = 0;
17  virtual bool ReadEvent(int nev) { return false; };
18  virtual void BuildMeasurementsFromOptAlign(std::vector<OpticalAlignMeasurementInfo>& measList);
19 
20 public:
21  int GetNEvents() const { return nev; }
22 
23 private:
25 
26 protected:
27  int nev;
28  int nextEvent;
29 };
30 
31 #endif
static CocoaDaqReader * GetDaqReader()
virtual void BuildMeasurementsFromOptAlign(std::vector< OpticalAlignMeasurementInfo > &measList)
virtual bool ReadNextEvent()=0
virtual bool ReadEvent(int nev)
static CocoaDaqReader * theDaqReader
static void SetDaqReader(CocoaDaqReader *reader)
int GetNEvents() const
virtual ~CocoaDaqReader()