AlcapDAQ  1
TOctalFADCBankReader.h
Go to the documentation of this file.
1 #ifndef TOctalFADCBankReader_h
2 #define TOctalFADCBankReader_h
3 
4 #include <string>
5 #include <vector>
6 #include "TOctalFADCIsland.h"
7 
8 #include "midas.h"
9 
11  public:
12  explicit TOctalFADCBankReader(std::string bankname);
13 
14  std::string GetBankName() const { return fBankName; }
15 
16  int GetNIslands() const { return fData.size(); }
17  TOctalFADCIsland& at(int index) { return fData.at(index); }
18  std::vector<TOctalFADCIsland>& GetIslandVector() {return fData;}
19 
20  void ProcessEvent(EVENT_HEADER* pheader, void *pevent);
21  void ClearEvent() { fData.clear(); }
22 
23 
24  static const int kDataBlockSize = 10; // 10 bytes per block
25  static const int kSamplesArrayInitialSize = 8192;
26 
27  protected:
29  void StitchIslands();
30  std::string fBankName;
31  std::vector<TOctalFADCIsland> fData;
32 
33 };
34 
35 #endif