KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVFzDataReader.h
1
3
4#ifndef __KVFZDATAREADER_H
5#define __KVFZDATAREADER_H
6
7#include "KVProtobufDataReader.h"
8#include <KVUniqueNameList.h>
9
10#ifndef __CINT__
11namespace DAQ {
12 class FzEvent;
13}
14#endif
15
23
24 std::unique_ptr<KVUniqueNameList> fListOfFiles;
25 std::unique_ptr<TIter> fFileListIterator;
28
30 bool read_buffer();
31
32public:
34 KVFzDataReader(const Char_t* filepath, Int_t bufSiz = 16 * 1024 * 1024);
36 {
37#if ROOT_VERSION_CODE < ROOT_VERSION(6,0,0)
40#endif
41 }
42
43#ifndef __CINT__
44 const DAQ::FzEvent& get_fazia_event() const;
45#endif
46
47 static KVFzDataReader* Open(const Char_t* filename, Option_t* opt = "");
48
50 {
51 return run_number;
52 }
53
54 ClassDef(KVFzDataReader, 1) //Read FAZIA DAQ files
55};
56
57#endif
int Int_t
#define SafeDelete(p)
char Char_t
const char Option_t
#define ClassDef(name, id)
Handle FAZIA protobuf-format raw data files.
KVString fFullFilePath
full path to files including "root:" etc. and "/run000000/"
std::unique_ptr< KVUniqueNameList > fListOfFiles
list of files for run
Int_t GetRunNumberReadFromFile() const
virtual ~KVFzDataReader()
const DAQ::FzEvent & get_fazia_event() const
int run_number
run number deduced from filename
static KVFzDataReader * Open(const Char_t *filename, Option_t *opt="")
std::unique_ptr< TIter > fFileListIterator
iterator for file list
bool read_buffer()
if previous read reached the end of a file, we try to open the next file in the list
bool parse_event_from_message()
Read Google Protobuf DAQ files.
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
Definition KVString.h:73