QualityControl  1.5.1
O2 Data Quality Control Framework
THnSparse5Reductor.h
Go to the documentation of this file.
1 // Copyright CERN and copyright holders of ALICE O2. This software is
2 // distributed under the terms of the GNU General Public License v3 (GPL
3 // Version 3), copied verbatim in the file "COPYING".
4 //
5 // See http://alice-o2.web.cern.ch/license for full licensing information.
6 //
7 // In applying this license CERN does not waive the privileges and immunities
8 // granted to it by virtue of its status as an Intergovernmental Organization
9 // or submit itself to any jurisdiction.
10 
15 #ifndef QUALITYCONTROL_THNSPARSE5REDUCTOR_H
16 #define QUALITYCONTROL_THNSPARSE5REDUCTOR_H
17 
19 
21 {
22 
28 {
29  public:
30  THnSparse5Reductor() = default;
31  ~THnSparse5Reductor() = default;
32 
33  void* getBranchAddress() override;
34  const char* getBranchLeafList() override;
35  void update(TObject* obj) override;
36 
37  private:
38  static constexpr int NDIM = 5;
39  struct {
40  Double_t mean[NDIM]; // mean of each axis (up to 5 axes)
41  Double_t stddev[NDIM]; // stddev of each axis (up to 5 axes)
42  Double_t entries[NDIM];
43  } mStats;
44 };
45 
46 } // namespace o2::quality_control_modules::common
47 
48 #endif //QUALITYCONTROL_THNSPARSE5REDUCTOR_H
A Reductor which obtains the most popular characteristics of THnSparse up to 5 dimensions.
Definition: THnSparse5Reductor.h:27
Definition: EverIncreasingGraph.h:21
const char * getBranchLeafList() override
Branch leaf list getter.
Definition: THnSparse5Reductor.cxx:28
void update(TObject *obj) override
Fill the data structure with new data.
Definition: THnSparse5Reductor.cxx:33
void * getBranchAddress() override
Branch address getter.
Definition: THnSparse5Reductor.cxx:23
An interface for storing data derived from QC objects into a TTree.
Definition: Reductor.h:24