ATLAS Offline Software
Loading...
Searching...
No Matches
MTTmaxPatternRecognition.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5// MTTmaxPattternRecognition.h
6// Header file for class VariableBinwidthHistogram
8// (c) ATLAS Detector software
10//
12
13#ifndef MTTMAXPATTTERNRECOGNITION_H
14#define MTTMAXPATTTERNRECOGNITION_H
15
16// c - c++
17#include "iostream"
18
19// root
20//#include "TH1.h"
21class TH1F;
22
23// this
24#include "T0MTSettings.h"
26
27namespace MuonCalib {
28
35
37 public:
38 //-------------------------constructors-----------------------------------------
41 m_settings(NULL),
42 m_draw_debug_graph(false),
43 m_background(0.),
44 m_a(0.),
45 m_b(0.),
46 m_fit_min(0.),
47 m_fit_max(0.),
48 m_tmax_est(0.),
49 m_t0(0.),
50 m_error(false) {}
51
52 //-------------------------public member functions------------------------------
57 bool Initialize(TH1F *hist, double t0, const T0MTSettings *settings);
58
60 inline double GetBackground() const { return m_background; }
61
63 inline double GetA() const { return m_a; }
64
66 inline double GetB() const { return m_b; }
67
69 inline double GetEstimatedTMax() const { return m_tmax_est; }
70
72 inline double GetFitRangeMin() const { return m_fit_min; }
73
75 inline double GetFitRangeMax() const { return m_fit_max; }
76
78 inline bool GetError() const { return m_error; }
79
80 private:
81 //------------------------private data members----------------------------------
85
88
90 double m_a, m_b;
91
94
96 double m_tmax_est;
97
100
102 double m_t0;
103
106
107 //-----------------------private member functions-------------------------------
111 bool estimate_background(TH1F *hist);
112
117 bool estimate_height(TH1F *hist);
118 };
119
120} // namespace MuonCalib
121#endif
static Double_t t0
VariableBinwidthHistogram m_vbh
Variable binwidth histogram.
double GetB() const
get parameter a in exp-function representing the end of the spectrum
const T0MTSettingsTMax * m_settings
settings
bool estimate_background(TH1F *hist)
estimates the background level
double GetEstimatedTMax() const
get estimated t0
bool Initialize(TH1F *hist, double t0, const T0MTSettings *settings)
Initialize class.
double GetBackground() const
get the background level
double m_a
parameters a, b in a*exp(b*x)
double GetA() const
get parameter a in exp-function representing the end of the spectrum
bool estimate_height(TH1F *hist)
estimates the height of the spectrum.
Settings for the T0 calibration (histogram booking and fitting parameters) Parameters for pattern rec...
A histogram where every bin has the same number of entries.
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)