AlcapDAQ
1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
musun_analysis_code
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
10
class
TOctalFADCBankReader
{
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
:
28
TOctalFADCBankReader
() {}
29
void
StitchIslands
();
30
std::string
fBankName
;
31
std::vector<TOctalFADCIsland>
fData
;
32
33
};
34
35
#endif
Generated by
1.8.4