Belle II Software development
HLTFile.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#pragma once
9
10#include <framework/pcore/SeqFile.h>
11#include <cstdio>
12
13namespace Belle2 {
18 class HLTFile {
19 public:
20 bool open(const std::string& fileName, bool raw, const char* mode);
21 virtual ~HLTFile();
22
23 int put_wordbuf(int* data, int len);
24 int put(char* data, int len);
25 int get_wordbuf(int* data, int len);
26 int get(char* data, int len);
27
28 private:
29 std::unique_ptr<SeqFile> m_sfile;
30 FILE* m_rfile = nullptr;
31 };
33}
34
35
36
37
38
39
Abstract base class for different kinds of events.