KaliVeda
Toolkit for HIC analysis
KVGANILDataReader.h
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 
60 protected:
61  GTGanilData* fGanilData;//object used to read GANIL acquisition file
62  TTree* fUserTree;//user TTree to fill with data
68 
69  KVUniqueNameList fParameters;//list of all data parameters contained in file
70  KVUniqueNameList fFired;//list of fired parameters in one event
71 
73 
75 
76 public:
78  {
79  init();
80  }
82  void OpenFile(const Char_t*, Option_t* dataset);
84  virtual ~KVGANILDataReader();
85 
86  void init();
87  virtual Bool_t GetNextEvent();
89 
90  virtual void SetUserTree(TTree*, Option_t* = "arrays");
91 
93  {
94  return fParameters;
95  }
96 
98  {
101  return fFired;
102  }
103 
104  static KVGANILDataReader* Open(const Char_t* filename, Option_t* opt = "");
105 
106  Bool_t HasScalerBuffer() const;
107  Int_t GetNumberOfScalers() const;
108  UInt_t GetScalerCount(Int_t index) const;
109  Int_t GetScalerStatus(Int_t index) const;
110  Int_t GetEventCount() const;
111 
113  {
114  return "EBYEDAT";
115  }
117 
118  ClassDef(KVGANILDataReader, 0) //Reads GANIL acquisition files
119 };
120 
121 #endif
int Int_t
unsigned int UInt_t
bool Bool_t
unsigned short UShort_t
char Char_t
const char Option_t
#define ClassDef(name, id)
Read GANIL formatted tapes or files.
Definition: GTGanilData.h:64
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
virtual GTGanilData * GetGanTapeInterface()
void OpenFile(const Char_t *, Option_t *dataset)
virtual ~KVGANILDataReader()
Destructor.
UInt_t GetScalerCount(Int_t index) const
KVUniqueNameList fFired
KVUniqueNameList fParameters
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.