6 #include <google/protobuf/io/coded_stream.h>
7 #include "FzEventSet.pb.h"
28 google::protobuf::io::CodedInputStream codedIStream((
const uint8_t*)(
fBuffer + fEvOffset), fEvSize);
29 if (!
fFzEvSet.ParseFromCodedStream(&codedIStream)) {
30 Error(
"parse_event_from_message",
"problem parsing event set");
34 Error(
"parse_event_from_message",
"FzEventSet with %d events",
fFzEvSet.ev_size());
75 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,0,0)
91 std::map<int, std::string> filelist;
92 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,0,0)
102 for (
int i = 0; i < 2; ++i) bb.
Next();
103 filelist[bb.
Next().
Atoi()] =
b->GetName();
106 for (std::map<int, std::string>::iterator mapit = filelist.begin(); mapit != filelist.end(); ++mapit) {
KVDataRepository * gDataRepository
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
R__EXTERN TSystem * gSystem
Int_t IsRunFileName(const Char_t *filename)
Base class for KaliVeda framework.
KVBase()
Default constructor.
virtual KVUniqueNameList * GetDirectoryListing(const KVDataSet *dataset, const Char_t *datatype="", const Char_t *subdir="")
KVAvailableRunsFile * GetAvailableRunsFile(const Char_t *type) const
Handle FAZIA protobuf-format raw data files.
KVString fFullFilePath
full path to files including "root:" etc. and "/run000000/"
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="")
bool read_buffer()
if previous read reached the end of a file, we try to open the next file in the list
unique_ptr< KVUniqueNameList > fListOfFiles
list of files for run
unique_ptr< TIter > fFileListIterator
iterator for file list
Read Google Protobuf DAQ files.
void open_file(const Char_t *filepath)
virtual bool read_buffer()
read a buffer from the file
bool fReachedEndOfFile
true when we have read all bytes from file
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
void Begin(TString delim) const
KVString Next(Bool_t strip_whitespace=kFALSE) const
virtual const char * GetName() const
virtual const char * GetName() const
virtual const char * BaseName(const char *pathname)