#include <TMidasFile.h>
MIDAS-file class for reading MIDAS .mid files. This is not used online.
Definition at line 18 of file TMidasFile.h.
Public Member Functions | |
TMidasFile () | |
~TMidasFile () | |
const Char_t * | GetFilename () const |
Bool_t | Open (const Char_t *) |
Bool_t | Read (TMidasEvent *) |
void | Close () |
Private Attributes | |
string | fFileName |
Bool_t | fByteSwap |
|
Default constructor. Definition at line 21 of file TMidasFile.cxx. References fByteSwap. |
|
Default destructor. Definition at line 34 of file TMidasFile.cxx. |
|
Get the MIDAS filename.
Definition at line 40 of file TMidasFile.cxx. References fFileName. |
|
Opens the file with name passed in the character array fileName.
Definition at line 48 of file TMidasFile.cxx. References fFileName. |
|
Reads one event at a time from the opened file.
Definition at line 65 of file TMidasFile.cxx. References TMidasEvent::AllocateData(), fFileName, TMidasEvent::GetData(), TMidasEvent::GetDataSize(), TMidasEvent::GetEventHeader(), TMidasEvent::IsGoodSize(), and TMidasEvent::SwapBytesEventHeader(). |
Here is the call graph for this function:
|
Close the MIDAS file opened with Open(). Definition at line 109 of file TMidasFile.cxx. |
|
The MIDAS .mid file name. Definition at line 30 of file TMidasFile.h. |
|
Whether or not the any bytes must be swapped due to endian issues. Definition at line 34 of file TMidasFile.h. |