Project
Loading...
Searching...
No Matches
GPUErrorQA.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 AliceO2_TPC_QC_GPUERRORQA_H
18#define AliceO2_TPC_QC_GPUERRORQA_H
19
20#include <memory>
21#include <string>
22#include <vector>
23#include <unordered_map>
24
25// root includes
26
27// o2 includes
28// #include "DataFormatsTPC/Defs.h"
29
30class TH1;
31namespace o2::tpc::qc
32{
33
42{
43 public:
45 GPUErrorQA() = default;
46
48 void processErrors(std::vector<std::array<uint32_t, 4>> errors);
49
52
54 void resetHistograms();
55
57 const std::unordered_map<std::string, std::unique_ptr<TH1>>& getMapHist() const { return mMapHist; }
58
60 void dumpToFile(std::string filename);
61
62 private:
63 std::unordered_map<std::string, std::unique_ptr<TH1>> mMapHist;
64
65 ClassDefNV(GPUErrorQA, 2);
66};
67} // namespace o2::tpc::qc
68
69#endif // AliceO2_TPC_QC_GPUERRORQA_H
TPC QC task for errors from GPU reconstruction.
Definition GPUErrorQA.h:42
const std::unordered_map< std::string, std::unique_ptr< TH1 > > & getMapHist() const
return histograms
Definition GPUErrorQA.h:57
void processErrors(std::vector< std::array< uint32_t, 4 > > errors)
process gpu error reported by the reconstruction workflow
void dumpToFile(std::string filename)
Dump results to a file.
void initializeHistograms()
Initialize all histograms.
GPUErrorQA()=default
Constructor.
void resetHistograms()
Reset all histograms.
std::string filename()