ATTPCROOT
0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
|
#include <GETDecoder2.h>
Public Types | |
enum | EFrameType { kBasic, kCobo, kMergedID, kMergedTime } |
Frame type enumerator. More... | |
Public Member Functions | |
GETDecoder2 () | |
Constructor. More... | |
GETDecoder2 (TString filename) | |
Constructor. More... | |
void | Clear () |
Clear data information. More... | |
void | SetNumTbs (Int_t value=512) |
Setting the number of time buckets. More... | |
Bool_t | AddData (TString filename) |
Add the data file to the list of rawdata. More... | |
Bool_t | SetData (Int_t index) |
Set the data file to the class. More... | |
void | SetDiscontinuousData (Bool_t value=kTRUE) |
Bool_t | NextData () |
Search the next file and set it if exists. Returns 1 if successful. More... | |
void | SetPositivePolarity (Bool_t value=kTRUE) |
Set the positive signal polarity. More... | |
void | ShowList () |
Print rawdata file list on the screen. More... | |
Int_t | GetNumData () |
Return the number of data added in the list. More... | |
TString | GetDataName (Int_t index) |
Return the filename of data at index. More... | |
Int_t | GetNumTbs () |
Return the number of time buckets. More... | |
EFrameType | GetFrameType () |
Int_t | GetNumFrames () |
GETBasicFrame * | GetBasicFrame (Int_t frameID=-1) |
Return specific frame of the given frame number. If frameID is -1, this method returns next frame. More... | |
GETCoboFrame * | GetCoboFrame (Int_t frameID=-1) |
GETLayeredFrame * | GetLayeredFrame (Int_t frameID=-1) |
void | PrintFrameInfo (Int_t frameID=-1) |
void | PrintCoboFrameInfo (Int_t frameID=-1) |
Bool_t | SetWriteFile (TString filename, Bool_t overwrite=kFALSE) |
Set the file for writing frame. More... | |
void | WriteFrame () |
Write current frame. More... | |
void | CheckEndOfData () |
void | BackupCurrentState () |
void | RestorePreviousState () |
void | SetPseudoTopologyFrame (Int_t asadMask, Bool_t check=kFALSE) |
Read the raw file from GET electronics and process it into GETFrame class
Definition at line 38 of file GETDecoder2.h.
Frame type enumerator.
Enumerator | |
---|---|
kBasic | |
kCobo | |
kMergedID | |
kMergedTime |
Definition at line 48 of file GETDecoder2.h.
GETDecoder2::GETDecoder2 | ( | ) |
Constructor.
If you use this constructor, you have to add the rawdata using AddData() method and set the file with SetData() method, manually.
Definition at line 43 of file GETDecoder2.cxx.
GETDecoder2::GETDecoder2 | ( | TString | filename | ) |
Constructor.
Automatically add the rawdata file to the list and set the file to read.
filename | GRAW filename including path |
Definition at line 56 of file GETDecoder2.cxx.
Bool_t GETDecoder2::AddData | ( | TString | filename | ) |
Add the data file to the list of rawdata.
Check if there is a file named filename
. If exists, add it to the list.
Definition at line 184 of file GETDecoder2.cxx.
void GETDecoder2::BackupCurrentState | ( | ) |
Definition at line 724 of file GETDecoder2.cxx.
void GETDecoder2::CheckEndOfData | ( | ) |
Definition at line 708 of file GETDecoder2.cxx.
void GETDecoder2::Clear | ( | ) |
Clear data information.
Definition at line 141 of file GETDecoder2.cxx.
GETBasicFrame * GETDecoder2::GetBasicFrame | ( | Int_t | frameID = -1 | ) |
Return specific frame of the given frame number. If frameID is -1, this method returns next frame.
Definition at line 357 of file GETDecoder2.cxx.
GETCoboFrame * GETDecoder2::GetCoboFrame | ( | Int_t | frameID = -1 | ) |
Definition at line 419 of file GETDecoder2.cxx.
TString GETDecoder2::GetDataName | ( | Int_t | index | ) |
Return the filename of data at index.
Definition at line 323 of file GETDecoder2.cxx.
GETDecoder2::EFrameType GETDecoder2::GetFrameType | ( | ) |
Return GETPlot object pointer if there exists. If not, create a new one and return it. Return the frame type. This is used when drawing merged frame.
Definition at line 338 of file GETDecoder2.cxx.
GETLayeredFrame * GETDecoder2::GetLayeredFrame | ( | Int_t | frameID = -1 | ) |
Definition at line 526 of file GETDecoder2.cxx.
Int_t GETDecoder2::GetNumData | ( | ) |
Return the number of data added in the list.
Definition at line 318 of file GETDecoder2.cxx.
Int_t GETDecoder2::GetNumFrames | ( | ) |
Definition at line 343 of file GETDecoder2.cxx.
Int_t GETDecoder2::GetNumTbs | ( | ) |
Return the number of time buckets.
Definition at line 334 of file GETDecoder2.cxx.
Bool_t GETDecoder2::NextData | ( | ) |
Search the next file and set it if exists. Returns 1 if successful.
Definition at line 293 of file GETDecoder2.cxx.
void GETDecoder2::PrintCoboFrameInfo | ( | Int_t | frameID = -1 | ) |
Definition at line 608 of file GETDecoder2.cxx.
void GETDecoder2::PrintFrameInfo | ( | Int_t | frameID = -1 | ) |
Definition at line 599 of file GETDecoder2.cxx.
void GETDecoder2::RestorePreviousState | ( | ) |
Definition at line 730 of file GETDecoder2.cxx.
Bool_t GETDecoder2::SetData | ( | Int_t | index | ) |
Set the data file to the class.
Definition at line 210 of file GETDecoder2.cxx.
void GETDecoder2::SetDiscontinuousData | ( | Bool_t | value = kTRUE | ) |
Definition at line 289 of file GETDecoder2.cxx.
void GETDecoder2::SetNumTbs | ( | Int_t | value = 512 | ) |
Setting the number of time buckets.
Definition at line 179 of file GETDecoder2.cxx.
void GETDecoder2::SetPositivePolarity | ( | Bool_t | value = kTRUE | ) |
Set the positive signal polarity.
Definition at line 300 of file GETDecoder2.cxx.
void GETDecoder2::SetPseudoTopologyFrame | ( | Int_t | asadMask, |
Bool_t | check = kFALSE |
||
) |
Definition at line 741 of file GETDecoder2.cxx.
Bool_t GETDecoder2::SetWriteFile | ( | TString | filename, |
Bool_t | overwrite = kFALSE |
||
) |
Set the file for writing frame.
Definition at line 627 of file GETDecoder2.cxx.
void GETDecoder2::ShowList | ( | ) |
Print rawdata file list on the screen.
Definition at line 305 of file GETDecoder2.cxx.
void GETDecoder2::WriteFrame | ( | ) |
Write current frame.
Definition at line 665 of file GETDecoder2.cxx.