ATTPCROOT
0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
AtUnpack
GETDecoder2
GETCoboFrame.cxx
Go to the documentation of this file.
1
#include "
GETCoboFrame.h
"
2
3
GETCoboFrame::GETCoboFrame
() : fNumFrames(0)
4
{
5
Clear
();
6
}
7
8
void
GETCoboFrame::ReadFrame
(ifstream &stream)
9
{
10
fFrame[fNumFrames++].
Read
(stream);
11
}
12
13
void
GETCoboFrame::ReadFrame
(Int_t index, ifstream &stream)
14
{
15
fFrame[index].
Clear
();
16
fFrame[index].
Read
(stream);
17
}
18
19
Int_t
GETCoboFrame::GetEventID
()
20
{
21
Int_t eventID = fFrame[0].
GetEventID
();
22
23
for
(Int_t iFrame = 1; iFrame < fNumFrames; iFrame++)
24
if
(fFrame[0].
GetEventID
() != fFrame[iFrame].
GetEventID
())
25
return
-1;
26
27
return
eventID;
28
}
29
30
Int_t
GETCoboFrame::GetNumFrames
()
31
{
32
return
fNumFrames;
33
}
34
GETBasicFrame
*
GETCoboFrame::GetFrames
()
35
{
36
return
fFrame;
37
}
38
GETBasicFrame
*
GETCoboFrame::GetFrame
(Int_t index)
39
{
40
return
&fFrame[index];
41
}
42
43
void
GETCoboFrame::Clear
(Option_t *)
44
{
45
for
(Int_t iFrame = 0; iFrame < fNumFrames; iFrame++)
46
fFrame[iFrame].
Clear
();
47
48
fNumFrames = 0;
49
}
GETCoboFrame::GetEventID
Int_t GetEventID()
Definition:
GETCoboFrame.cxx:19
GETCoboFrame::GetNumFrames
Int_t GetNumFrames()
Definition:
GETCoboFrame.cxx:30
GETCoboFrame::GETCoboFrame
GETCoboFrame()
Definition:
GETCoboFrame.cxx:3
GETCoboFrame::Clear
void Clear(Option_t *="")
Definition:
GETCoboFrame.cxx:43
GETBasicFrame::Clear
void Clear(Option_t *="")
Definition:
GETBasicFrame.cxx:24
GETBasicFrame
Definition:
GETBasicFrame.h:14
GETCoboFrame::GetFrames
GETBasicFrame * GetFrames()
Definition:
GETCoboFrame.cxx:34
GETCoboFrame::GetFrame
GETBasicFrame * GetFrame(Int_t index)
Definition:
GETCoboFrame.cxx:38
GETCoboFrame.h
GETCoboFrame::ReadFrame
void ReadFrame(ifstream &stream)
Definition:
GETCoboFrame.cxx:8
GETBasicFrame::Read
void Read(ifstream &stream)
Definition:
GETBasicFrame.cxx:31
GETBasicFrameHeader::GetEventID
UInt_t GetEventID()
Definition:
GETBasicFrameHeader.cxx:31
Generated on Sat Nov 11 2023 15:30:39 for ATTPCROOT by
1.8.18