Belle II Software  release-05-01-25
DQMCommonUtils.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Peter Kodys, Peter Kvasnicka *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include "TH1F.h"
14 
15 namespace Belle2 {
24  class DQMCommonUtils {
25 
26  public:
27 
28  /*********************************************************************
29  * Methods constructing histograms
30  *********************************************************************/
31 
57  static int SetFlag(int Type, int bin, const double* pars, double ratio, TH1F* hist, TH1F* refhist, TH1I* flaghist);
83  static int SetFlag(int Type, int bin, const double* pars, double ratio, TH1I* hist, TH1I* refhist, TH1I* flaghist);
84 
88  static void CreateDBHisto(TH1F* HistoBD);
92  static void CreateDBHisto(TH1I* HistoBD);
93 
98  static void CreateDBHistoGroup(TH1F** HistoBD, int number);
103  static void CreateDBHistoGroup(TH1I** HistoBD, int number);
104 
109  static int LoadDBHisto(TH1F* HistoBD);
114  static int LoadDBHisto(TH1I* HistoBD);
115 
121  static int LoadDBHistoGroup(TH1F** HistoBD, int number);
127  static int LoadDBHistoGroup(TH1I** HistoBD, int number);
128 
129  };
131 }
Belle2::DQMCommonUtils::CreateDBHistoGroup
static void CreateDBHistoGroup(TH1F **HistoBD, int number)
Function for filling of group of TH1F histogram to database.
Definition: DQMCommonUtils.cc:201
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::DQMCommonUtils::LoadDBHistoGroup
static int LoadDBHistoGroup(TH1F **HistoBD, int number)
Function for loading of group of TH1F histogram from database.
Definition: DQMCommonUtils.cc:289
Belle2::DQMCommonUtils::CreateDBHisto
static void CreateDBHisto(TH1F *HistoBD)
Function for filling of TH1F histogram to database.
Definition: DQMCommonUtils.cc:163
Belle2::DQMCommonUtils::SetFlag
static int SetFlag(int Type, int bin, const double *pars, double ratio, TH1F *hist, TH1F *refhist, TH1I *flaghist)
Function return flag histogram filled based on condition from TH1F source.
Definition: DQMCommonUtils.cc:23
Belle2::DQMCommonUtils::LoadDBHisto
static int LoadDBHisto(TH1F *HistoBD)
Function for loading of TH1F histogram from database.
Definition: DQMCommonUtils.cc:243