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  const std::vector<TOctalFADCIsland*>& GetIslandVectorCopy() {return fData;}
18 
19  void ProcessEvent(EVENT_HEADER* pheader, void *pevent);
20  void ClearEvent();
21 
22  static const int kDataBlockSize = 10; // 10 bytes per block
23  static const int kSamplesArrayInitialSize = 32; // Guess at size of islands
24 
25  protected:
27  void StitchIslands();
28  std::string fBankName;
29  std::vector<TOctalFADCIsland*> fData;
30 
31 };
32 
33 #endif