Project
Loading...
Searching...
No Matches
ClusterDump.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 O2_MCH_CLUSTERDUMP_H_
18#define O2_MCH_CLUSTERDUMP_H_
19
20#include <functional>
21#include <map>
22#include <memory>
23#include <utility>
24#include <vector>
25
26// GG
27#include <fstream>
28
29namespace o2
30{
31namespace mch
32{
33// Utilities to dump a file
35{
36 public:
37 ClusterDump(const char* str, int mode);
39
40 ClusterDump(const ClusterDump&) = delete;
44
45 void flush();
46
47 void dumpFloat32(int ifile, long size, const float_t* data);
48
49 void dumpFloat64(int ifile, long size, const double_t* data);
50
51 void dumpInt32(int ifile, long size, const int32_t* data);
52
53 void dumpUInt32(int ifile, long size, const uint32_t* data);
54
55 void dumpInt16(int ifile, long size, const int16_t* data);
56
57 const std::string& getName() const { return fileName; };
58
59 private:
60 std::string fileName;
61 std::fstream dumpFiles[1];
62 int mode; // 1 write the file else don't
63};
64} // namespace mch
65} // namespace o2
66
67#endif // O2_MCH_CLUSTERDUMP_H_
ClusterDump(ClusterDump &&)=delete
ClusterDump & operator=(ClusterDump &&)=delete
const std::string & getName() const
Definition ClusterDump.h:57
void dumpInt16(int ifile, long size, const int16_t *data)
ClusterDump(const ClusterDump &)=delete
void dumpUInt32(int ifile, long size, const uint32_t *data)
void dumpFloat64(int ifile, long size, const double_t *data)
ClusterDump & operator=(const ClusterDump &)=delete
void dumpFloat32(int ifile, long size, const float_t *data)
void dumpInt32(int ifile, long size, const int32_t *data)
GLenum mode
Definition glcorearb.h:266
GLsizeiptr size
Definition glcorearb.h:659
GLboolean * data
Definition glcorearb.h:298
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
const std::string str