KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVGANILDataReader.h
Go to the documentation of this file.
1 
4 #ifndef __KVGANILDATAREADER_H
5 #define __KVGANILDATAREADER_H
6 
7 #include "KVRawDataReader.h"
8 #include "KVBase.h"
9 #include "KVEBYEDAT_ACQParam.h"
10 #include "KVUniqueNameList.h"
11 #include "TTree.h"
12 class GTGanilData;
13 
59 protected:
67 
70 
72 
74 
75 public:
77  {
78  init();
79  }
81  void OpenFile(const Char_t*, Option_t* dataset);
83  virtual ~KVGANILDataReader();
84 
85  void init();
86  virtual Bool_t GetNextEvent();
88 
89  virtual void SetUserTree(TTree*, Option_t* = "arrays");
90 
92  {
93  return fParameters;
94  }
95 
97  {
100  return fFired;
101  }
102 
103  static KVGANILDataReader* Open(const Char_t* filename, Option_t* opt = "");
104 
105  Bool_t HasScalerBuffer() const;
106  Int_t GetNumberOfScalers() const;
107  UInt_t GetScalerCount(Int_t index) const;
108  Int_t GetScalerStatus(Int_t index) const;
109  Int_t GetEventCount() const;
110 
112  {
113  return "EBYEDAT";
114  }
116 
117  ClassDef(KVGANILDataReader, 0) //Reads GANIL acquisition files
118 };
119 
120 #endif
int Int_t
unsigned int UInt_t
unsigned short UShort_t
char Char_t
bool Bool_t
const char Option_t
#define ClassDef(name, id)
Read GANIL formatted tapes or files.
Definition: GTGanilData.h:63
Reads GANIL acquisition files (EBYEDAT)
Int_t GetEventCount() const
static KVGANILDataReader * Open(const Char_t *filename, Option_t *opt="")
void init()
default initialisations
virtual void SetUserTree(TTree *, Option_t *="arrays")
TString GetDataFormat() const
Bool_t HasScalerBuffer() const
void FillFiredParameterList()
clears and then fills list fFired with all fired acquisition parameters in event
const KVSeqCollection & GetFiredDataParameters() const
Int_t GetNumberOfScalers() const
Int_t GetScalerStatus(Int_t index) const
const KVSeqCollection & GetRawDataParameters() const
GTGanilData * NewGanTapeInterface(Option_t *dataset)
virtual Bool_t GetNextEvent()
Int_t GetRunNumberReadFromFile() const
GTGanilData * fGanilData
object used to read GANIL acquisition file
virtual GTGanilData * GetGanTapeInterface()
void OpenFile(const Char_t *, Option_t *dataset)
TTree * fUserTree
user TTree to fill with data
virtual ~KVGANILDataReader()
Destructor.
UInt_t GetScalerCount(Int_t index) const
KVUniqueNameList fFired
list of fired parameters in one event
KVUniqueNameList fParameters
list of all data parameters contained in file
Abstract base class for reading raw (DAQ) data.
KaliVeda extensions to ROOT collection classes.
Optimised list in which named objects can only be placed once.