Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-09-07 04:34:25

0001 #ifndef CocoaDaqReader_h
0002 #define CocoaDaqReader_h
0003 #include <string>
0004 #include <vector>
0005 
0006 class OpticalAlignMeasurementInfo;
0007 
0008 class CocoaDaqReader {
0009 public:
0010   CocoaDaqReader() {}
0011   static CocoaDaqReader* GetDaqReader() { return theDaqReader; }
0012   static void SetDaqReader(CocoaDaqReader* reader);
0013 
0014   virtual ~CocoaDaqReader() {}
0015 
0016   virtual bool ReadNextEvent() = 0;
0017   virtual bool ReadEvent(int nev) { return false; };
0018   virtual void BuildMeasurementsFromOptAlign(std::vector<OpticalAlignMeasurementInfo>& measList);
0019 
0020 public:
0021   int GetNEvents() const { return nev; }
0022 
0023 private:
0024   static CocoaDaqReader* theDaqReader;
0025 
0026 protected:
0027   int nev;
0028   int nextEvent;
0029 };
0030 
0031 #endif