Project
Loading...
Searching...
No Matches
VisualisationEventROOTSerializer.h
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
16
17#ifndef O2EVE_VISUALISATIONEVENTROOTSERIALIZER_H
18#define O2EVE_VISUALISATIONEVENTROOTSERIALIZER_H
19
22#include <string>
23#include <TFile.h>
24#include <TNtuple.h>
25
26namespace o2
27{
28namespace event_visualisation
29{
30
32{
33 static void saveInt(const char* name, int value);
34 static void saveUInt64(const char* name, uint64_t value);
35 static int readInt(TFile& f, const char* name);
36 static uint64_t readUInt64(TFile& f, const char* name);
37 static bool existUInt64(TFile& f, const char* name);
38 static void save(const char* name, const std::string& value);
39 static std::string readString(TFile& f, const char* name);
40
41 bool readClusters(VisualisationEvent& event, TFile& f, TNtuple* xyz);
42 bool readCalo(VisualisationEvent& event, TFile& f);
43
44 public:
45 [[nodiscard]] const std::string serializerName() const override { return std::string("VisualisationEventROOTSerializer"); }
46 bool fromFile(VisualisationEvent& event, std::string fileName) override;
47 void toFile(const VisualisationEvent& event, std::string fileName) override;
49};
50
51} // namespace event_visualisation
52} // namespace o2
53
54#endif // O2EVE_VISUALISATIONEVENTROOTSERIALIZER_H
bool fromFile(VisualisationEvent &event, std::string fileName) override
void toFile(const VisualisationEvent &event, std::string fileName) override
struct _cl_event * event
Definition glcorearb.h:2982
GLuint const GLchar * name
Definition glcorearb.h:781
GLdouble f
Definition glcorearb.h:310
GLsizei const GLfloat * value
Definition glcorearb.h:819
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...