KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVMFMDataFileReader.h
Go to the documentation of this file.
1 
4 #ifndef __KVMFMDATAFILEREADER_H
5 #define __KVMFMDATAFILEREADER_H
6 
7 #include "KVRawDataReader.h"
8 #include "MFMFileReader.h"
9 #include "KVNameValueList.h"
10 #ifdef WITH_MESYTEC
11 #include "mesytec_buffer_reader.h"
12 #endif
22 class KVMFMDataFileReader : public KVRawDataReader, public MFMFileReader {
23 
24 #ifdef WITH_MESYTEC
25  mutable mesytec::buffer_reader MTEC_bufrdr;
26 #endif
27 
28 public:
29  KVMFMDataFileReader(const Char_t* filepath);
30  virtual ~KVMFMDataFileReader() {}
31 
34  {
35  bool ok = ReadNextFrame();
36  return ok;
37  }
38 
39  static KVMFMDataFileReader* Open(const Char_t* filepath, Option_t* = "");
40 
42  {
43  return "MFM";
44  }
45  void SetActionsDirectory(const string&);
46  void SetActionsExpName(const string&);
47 
49 
51 
52 #ifdef WITH_MESYTEC
53  void InitialiseMesytecConfig(const std::string& crate, const std::string& channels);
54  mesytec::buffer_reader& GetMesytecBufferReader() const
55  {
56  return MTEC_bufrdr;
57  }
58 #endif
59 
60  ClassDef(KVMFMDataFileReader, 0) //Read MFM format acquisition data
61 };
62 
63 #endif
int Int_t
char Char_t
bool Bool_t
const char Option_t
#define ClassDef(name, id)
Read MFM format acquisition data.
Int_t GetRunNumberReadFromFile() const
TString GetDataFormat() const
void SetActionsExpName(const string &)
void SetActionsDirectory(const string &)
TString GetPathToLastEbyedatActionsFile()
Returns full path to last ACTIONS file used to decode Ebyedat parameters.
static KVMFMDataFileReader * Open(const Char_t *filepath, Option_t *="")
KVMFMDataFileReader(const Char_t *filepath)
Abstract base class for reading raw (DAQ) data.