Belle II Software development
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
17namespace Belle2 {
24
25 public:
26
30 void initialize() override final;
32 void beginRun() override final;
34 void event() override final;
36 void endRun() override final;
38 void terminate() override final;
39
40 private:
41
45 void getEventT0(std::vector<std::string>, TGraphErrors*, TGraphErrors*);
47 static double fGaus(double* x, double* par);
49 void fitEventT0(TH1* hist, std::vector<double>&);
51 std::vector<std::string> s_histNameEventT0;
53 TGraph* h_EventTimingEnergyFraction = nullptr;
55 TGraphErrors* h_EventT0Mean = nullptr;
57 TGraphErrors* h_EventT0Width = nullptr;
59 TCanvas* c_TCEFraction = nullptr;
61 TCanvas* c_EventT0Mean = nullptr;
63 TCanvas* c_EventT0Width = nullptr;
64
65 };
66
68} // end namespace Belle2
DQMHistAnalysisModule()
Constructor / Destructor.
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.