Belle II Software  release-08-01-10
DQMHistAnalysisTRGECL.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 // File : DQMHistAnalysisTRGECL.h
10 // Description : DQM analysis for ECL trigger
11 //
12 #pragma once
13 
14 #include <dqm/core/DQMHistAnalysis.h>
15 #include <TGraphErrors.h>
16 
17 namespace Belle2 {
24 
25  public:
26 
32  void initialize() override final;
34  void beginRun() override final;
36  void event() override final;
38  void endRun() override final;
40  void terminate() override final;
41 
42  private:
43 
45  int m_MinEntryForFit = 200;
47  void getEventT0(std::vector<std::string>, TGraphErrors*, TGraphErrors*);
49  static double fGaus(double* x, double* par);
51  void fitEventT0(TH1* hist, std::vector<double>&);
53  std::vector<std::string> s_histNameEventT0;
55  TGraph* h_EventTimingEnergyFraction = nullptr;
57  TGraphErrors* h_EventT0Mean = nullptr;
59  TGraphErrors* h_EventT0Width = nullptr;
61  TCanvas* c_TCEFraction = nullptr;
63  TCanvas* c_EventT0Mean = nullptr;
65  TCanvas* c_EventT0Width = nullptr;
66 
67  };
68 
70 } // end namespace Belle2
The base class for the histogram analysis module.
Module for DQM histogram of ECL trigger event timing.
TGraph * h_EventTimingEnergyFraction
fraction of event timing with different max TC selection
static double fGaus(double *x, double *par)
single Gaussian function
void initialize() override final
initialization
TGraphErrors * h_EventT0Width
graph of EventT0 width
void fitEventT0(TH1 *hist, std::vector< double > &)
fit on EventT0 histogram
TGraphErrors * h_EventT0Mean
graph of EventT0 mean
TCanvas * c_EventT0Width
canvas for EventT0 width
void terminate() override final
delete pointers
void event() override final
event function
TCanvas * c_TCEFraction
canvas for fraction of event timing with different max TC selection
int m_MinEntryForFit
minimum entry in EventT0 histogram to fit
void beginRun() override final
begin run
TCanvas * c_EventT0Mean
canvas for EventT0 mean
std::vector< std::string > s_histNameEventT0
name of EventT0 histograms
void getEventT0(std::vector< std::string >, TGraphErrors *, TGraphErrors *)
get EventT0 mean and width
Abstract base class for different kinds of events.