QualityControl  1.5.1
O2 Data Quality Control Framework
TH2XlineReductor.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_TH2XLINEREDUCTOR_H
16 #define QUALITYCONTROL_TH2XLINEREDUCTOR_H
17 
19 #include <vector>
20 
22 {
23 
29 {
30  public:
31  TH2XlineReductor() = default;
32  ~TH2XlineReductor() = default;
33 
34  void* getBranchAddress() override;
35  const char* getBranchLeafList() override;
36  void update(TObject* obj) override;
37 
38  private:
39  static constexpr int NDIM = 20;
40  struct mystat {
41  Double_t mean[NDIM]; //mean of the bin contents of each row (1 value per row)
42  Double_t stddev[NDIM]; //stddev of the bin contents of each row (1 value per row)
43  Double_t entries[NDIM]; //entries of each row (1 value per row)
44  Double_t mean_scaled[NDIM]; //mean scaled with number of active pixels in a stave to get the occupancy
45  };
46  mystat mStats;
47 };
48 
49 } // namespace o2::quality_control_modules::its
50 
51 #endif //QUALITYCONTROL_TH2XLINEREDUCTOR_H
Definition: ITSClusterTask.h:31
const char * getBranchLeafList() override
Branch leaf list getter.
Definition: TH2XlineReductor.cxx:29
void update(TObject *obj) override
Fill the data structure with new data.
Definition: TH2XlineReductor.cxx:34
A Reductor which obtains specific characteristics of TH2: mean and stddev of bin contents for each y ...
Definition: TH2XlineReductor.h:28
void * getBranchAddress() override
Branch address getter.
Definition: TH2XlineReductor.cxx:24
An interface for storing data derived from QC objects into a TTree.
Definition: Reductor.h:24