26 #ifndef GT_GTGanilData_H
27 #define GT_GTGanilData_H
36 #include "GTDataParameters.h"
37 #include "GTScalers.h"
38 #include "GanTape/GEN_TYPE.H"
39 #include "GanTape/STR_EVT.H"
40 #include "GanTape/gan_acq_buf.h"
41 #ifndef __GAN_TAPE_GENERAL_H
#define ClassDef(name, id)
const TList * GetList() const
Read GANIL formatted tapes or files.
Int_t fLun
Logical number of the device.
Int_t fRunNumber
current file run number
char fHeader[9]
Buffer header.
void ConnectFired(const Int_t index, Bool_t **p) const
Connect a pointer to a data to the defined index in the Data Array.
UShort_t * fEventBrut
Brut data buffer.
void InitDefault(const Int_t argc=0, char **argv=NULL)
bool fAllocated
True if the Tape is allocated (useless?)
Int_t fEventCount
Our event counter.
Int_t fEventNumber
Local event number in current buffer (should be renamed)
GTScalers * fScaler
Scaler array.
TString GetRunStartDate() const
Int_t fCtrlForm
Fix/variable length events.
void DumpEvent(void) const
Dump parameter index, name and value for the current event.
gan_tape_desc * fDevice
Device structure (ganil_tape interface)
void Connect(const Int_t index, UShort_t **p) const
Connect a pointer to a data to the defined index in the Data Array.
Int_t fDensity
Tape density.
char * fStructEvent
??? (ganil_tape interface)
Int_t GetRunNumber(void) const
Returns current run number.
const TList * GetListOfDataParameters() const
Int_t fStatus
Status, 0 is OK, any other value suspect.
void SetFileName(const TString filename)
TString fDateStart
Date/time of start of run read from file.
UShort_t * fEventCtrl
Control data buffer.
bool ReadNextEvent_EBYEDAT(void)
void PrintRunParameters(void) const
Print every class parameters, for now a simple dump.
GTDataParameters * GetDataParameters() const
virtual void SetUserTree(TTree *)
Not used.
bool fIsCtrl
We are currently in a CTRL buffer.
bool fIsScalerBuffer
The current buffer is a scaler buffer.
void DumpParameterName(void) const
Dump parameter index and name.
in2p3_buffer_struct * fBuffer
Brut data buffer (ganil_tape interface)
Int_t GetStatus(void) const
Bool_t IsOpen(void) const
bool IsScalerBuffer(void) const
Bool_t * fFired
fired parameters in each event
virtual void ReadParameters(void)
GTGanilData()
Default constructor.
GTDataParameters * fDataParameters
Data parameters names class.
Int_t GetEventCount() const
TString fFileName
Filename, can be a tape drive.
Int_t fBufSize
Buffer size.
GTScalers * GetScalers(void)
Int_t fDataArraySize
Data array size.
void SetScalerBuffersManagement(const ScalerWhat_t sc)
UShort_t * fDataArray
Physical data array.
Int_t fEvbsize
Size of the brut data buffer.
ScalerWhat_t fWhatScaler
What do we do with scalers buffers.
void MakeTree(const TString filename="", UInt_t nEvents=kMaxUInt)
virtual ~GTGanilData(void)
virtual bool EventUnravelling(CTRL_EVENT *)
Int_t fEvcsize
Size of the ctrl data buffer.
Int_t fCTRLEVNT_HD
size (in 16-bit words) of CTRL_EVNT header
void PrintDataParameters(void) const
TTree * fScalerTree
Scaler tree for automatic filling.
ScalerWhat_t
What to do with scaler buffer.
@ kAutoWriteScaler
have to take care of it.
Handle scaler buffers in GANIL DAQ data.