KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVMFMDataFileReader.h
1
3
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
23class KVMFMDataFileReader : public KVRawDataReader, public MFMFileReader {
24
25#ifdef WITH_MESYTEC
26 mutable mesytec::buffer_reader MTEC_bufrdr;
27#endif
28
29public:
30 KVMFMDataFileReader(const Char_t* filepath);
32
35 {
36 bool ok = ReadNextFrame();
37 return ok;
38 }
39
40 static KVMFMDataFileReader* Open(const Char_t* filepath, Option_t* = "");
41
43 {
44 return "MFM";
45 }
46 void SetActionsDirectory(const string&);
47 void SetActionsExpName(const string&);
48
50
52
53#ifdef WITH_MESYTEC
54 void InitialiseMesytecConfig(const std::string& crate, const std::string& channels);
55 mesytec::buffer_reader& GetMesytecBufferReader() const
56 {
57 return MTEC_bufrdr;
58 }
59#endif
60
61 ClassDef(KVMFMDataFileReader, 0) //Read MFM format acquisition data
62};
63
64#endif
int Int_t
bool Bool_t
char Char_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 *="")
Abstract base class for reading raw (DAQ) data.