ATLAS Offline Software
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"
21 class TH1F;
22 
23 // this
24 #include "T0MTSettings.h"
26 
27 namespace MuonCalib {
28 
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 
87  double m_background;
88 
90  double m_a, m_b;
91 
94 
96  double m_tmax_est;
97 
100 
102  double m_t0;
103 
105  bool m_error;
106 
107  //-----------------------private member functions-------------------------------
112 
117  bool estimate_height(TH1F *hist);
118  };
119 
120 } // namespace MuonCalib
121 #endif
MuonCalib::VariableBinwidthHistogram
Definition: VariableBinwidthHistogram.h:40
MuonCalib::MTTmaxPatternRecognition::m_t0
double m_t0
t0
Definition: MTTmaxPatternRecognition.h:102
MuonCalib::MTTmaxPatternRecognition::GetFitRangeMin
double GetFitRangeMin() const
get fit range
Definition: MTTmaxPatternRecognition.h:72
T0MTSettings.h
MuonCalib::MTTmaxPatternRecognition::GetBackground
double GetBackground() const
get the background level
Definition: MTTmaxPatternRecognition.h:60
MuonCalib::MTTmaxPatternRecognition::MTTmaxPatternRecognition
MTTmaxPatternRecognition()
Default constructor.
Definition: MTTmaxPatternRecognition.h:40
MuonCalib::MTTmaxPatternRecognition::m_fit_max
double m_fit_max
Definition: MTTmaxPatternRecognition.h:93
plotmaker.hist
hist
Definition: plotmaker.py:148
MuonCalib::MTTmaxPatternRecognition::m_b
double m_b
Definition: MTTmaxPatternRecognition.h:90
VariableBinwidthHistogram.h
MuonCalib::MTTmaxPatternRecognition::m_tmax_est
double m_tmax_est
t0 estimate
Definition: MTTmaxPatternRecognition.h:96
MuonCalib::T0MTSettingsTMax
Definition: T0MTSettingsTMax.h:24
MuonCalib::MTTmaxPatternRecognition::m_background
double m_background
background level
Definition: MTTmaxPatternRecognition.h:87
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
MuonCalib::MTTmaxPatternRecognition::m_settings
const T0MTSettingsTMax * m_settings
settings
Definition: MTTmaxPatternRecognition.h:83
MuonCalib::MTTmaxPatternRecognition::GetA
double GetA() const
get parameter a in exp-function representing the end of the spectrum
Definition: MTTmaxPatternRecognition.h:63
MuonCalib::MTTmaxPatternRecognition::m_a
double m_a
parameters a, b in a*exp(b*x)
Definition: MTTmaxPatternRecognition.h:90
MuonCalib::MTTmaxPatternRecognition::m_error
bool m_error
error flag
Definition: MTTmaxPatternRecognition.h:105
MuonCalib::MTTmaxPatternRecognition::GetError
bool GetError() const
return error flag
Definition: MTTmaxPatternRecognition.h:78
MuonCalib::MTTmaxPatternRecognition::m_fit_min
double m_fit_min
fit range
Definition: MTTmaxPatternRecognition.h:93
MuonCalib::MTTmaxPatternRecognition::Initialize
bool Initialize(TH1F *hist, double t0, const T0MTSettings *settings)
Initialize class.
Definition: MTTmaxPatternRecognition.cxx:20
MuonCalib::MTTmaxPatternRecognition::m_draw_debug_graph
bool m_draw_debug_graph
Definition: MTTmaxPatternRecognition.h:84
MuonCalib::MTTmaxPatternRecognition::GetEstimatedTMax
double GetEstimatedTMax() const
get estimated t0
Definition: MTTmaxPatternRecognition.h:69
python.TrigEgammaMonitorHelper.TH1F
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
Definition: TrigEgammaMonitorHelper.py:24
MuonCalib::MTTmaxPatternRecognition::m_vbh
VariableBinwidthHistogram m_vbh
Variable binwidth histogram.
Definition: MTTmaxPatternRecognition.h:99
MuonCalib::MTTmaxPatternRecognition
Definition: MTTmaxPatternRecognition.h:36
MuonCalib::MTTmaxPatternRecognition::GetFitRangeMax
double GetFitRangeMax() const
get fit range
Definition: MTTmaxPatternRecognition.h:75
MuonCalib::MTTmaxPatternRecognition::GetB
double GetB() const
get parameter a in exp-function representing the end of the spectrum
Definition: MTTmaxPatternRecognition.h:66
MuonCalib::T0MTSettings
Definition: T0MTSettings.h:28
MuonCalib::MTTmaxPatternRecognition::estimate_height
bool estimate_height(TH1F *hist)
estimates the height of the spectrum.
Definition: MTTmaxPatternRecognition.cxx:99
MuonCalib::MTTmaxPatternRecognition::estimate_background
bool estimate_background(TH1F *hist)
estimates the background level
Definition: MTTmaxPatternRecognition.cxx:39