Belle II Software development
DQMCommonUtils.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11#include "TH1F.h"
12
13namespace Belle2 {
23
24 public:
25
26 /*********************************************************************
27 * Methods constructing histograms
28 *********************************************************************/
29
55 static int SetFlag(int Type, int bin, const double* pars, double ratio, TH1F* hist, TH1F* refhist, TH1I* flaghist);
81 static int SetFlag(int Type, int bin, const double* pars, double ratio, TH1I* hist, TH1I* refhist, TH1I* flaghist);
82
86 static void CreateDBHisto(TH1F* HistoBD);
90 static void CreateDBHisto(TH1I* HistoBD);
91
96 static void CreateDBHistoGroup(TH1F** HistoBD, int number);
101 static void CreateDBHistoGroup(TH1I** HistoBD, int number);
102
107 static int LoadDBHisto(TH1F* HistoBD);
112 static int LoadDBHisto(TH1I* HistoBD);
113
119 static int LoadDBHistoGroup(TH1F** HistoBD, int number);
125 static int LoadDBHistoGroup(TH1I** HistoBD, int number);
126
127 };
129}
The class collects utility functions for creating DQM histograms: prepared for PXD,...
static void CreateDBHisto(TH1F *HistoBD)
Function for filling of TH1F histogram to database.
static void CreateDBHistoGroup(TH1F **HistoBD, int number)
Function for filling of group of TH1F histogram to database.
static int LoadDBHistoGroup(TH1F **HistoBD, int number)
Function for loading of group of TH1F histogram from database.
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.
static int LoadDBHisto(TH1F *HistoBD)
Function for loading of TH1F histogram from database.
Abstract base class for different kinds of events.