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, Location& location) override;
49};
50
51} // namespace event_visualisation
52} // namespace o2
53
54#endif // O2EVE_VISUALISATIONEVENTROOTSERIALIZER_H
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error First event to Number of events to Number of iterations to Number of iterations to Number of initial iterations excluded from const char Directory with events to Events directory is and not inside events Show standalone event Run event generator maximum time bin of continuous for triggered for automatic continuous for automatic continuous triggered uint64_t
bool fromFile(VisualisationEvent &event, std::string fileName) override
void toFile(const VisualisationEvent &event, Location &location) 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
GLint location
Definition glcorearb.h:800
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...