Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
#include <MTT0PatternRecognition.h>
Definition at line 35 of file MTT0PatternRecognition.h.
◆ MTT0PatternRecognition()
MuonCalib::MTT0PatternRecognition::MTT0PatternRecognition |
( |
| ) |
|
|
inline |
◆ estimate_background()
bool MuonCalib::MTT0PatternRecognition::estimate_background |
( |
TH1F * |
hist, |
|
|
double |
scale_min |
|
) |
| |
|
private |
estimates the background level
- Parameters
-
hist | input histogram |
scale_min | lower end of the scale region as returned from estimate_height() |
Definition at line 19 of file MTT0PatternRecognition.cxx.
23 for (
int i = 1;
i <=
hist->GetNbinsX();
i++) {
24 if (
hist->GetBinContent(
i) > 0) {
31 log << MSG::WARNING <<
"estimate_background() - No hits in input histogram!" <<
endmsg;
35 double maxx = scale_min - 40;
38 if (
max - min < m_settings->MinBackgroundBins()) {
43 if (
max - min < m_settings->MinBackgroundBins()) {
45 log << MSG::WARNING <<
"estimate_background() - Rising edge is to glose to lower histogram range!" <<
endmsg;
51 double back_squared = 0.0;
53 double referece_chi2 = 0.0;
57 back_squared +=
hist->GetBinContent(
i) *
hist->GetBinContent(
i);
60 referece_chi2 = 2 * (back_squared / n_bins - bac * bac);
64 double chi2 = 2 * (back_squared / n_bins - bac * bac);
65 if (
chi2 > 5 * referece_chi2)
break;
74 (
new TLine(
hist->GetBinCenter(
min), 0,
hist->GetBinCenter(
min),
hist->GetMaximum()))->Write(
"t0_back_left");
75 (
new TLine(
hist->GetBinCenter(
max), 0,
hist->GetBinCenter(
max),
hist->GetMaximum()))->Write(
"t0_back_right");
◆ estimate_height()
double MuonCalib::MTT0PatternRecognition::estimate_height |
( |
TH1F * |
hist | ) |
|
|
private |
estimates the height of the spectrum.
It returns the lower end of the scale region
- Parameters
-
Definition at line 85 of file MTT0PatternRecognition.cxx.
105 double left(9e9), right(-9e9);
115 if (right - left > 50 &&
i > 20)
break;
121 (
new TLine(left, 0, left,
hist->GetMaximum()))->Write(
"t0_height_left");
122 (
new TLine(right, 0, right,
hist->GetMaximum()))->Write(
"t0_height_right");
125 int bleft(
hist->FindBin(left)), bright(
hist->FindBin(right));
128 for (
int i = bleft;
i <= bright;
i++) {
134 log << MSG::WARNING <<
"estimate_height() - top region is too small! left=" << left <<
" right=" << right <<
endmsg;
◆ GetBackground()
double MuonCalib::MTT0PatternRecognition::GetBackground |
( |
| ) |
const |
|
inline |
◆ GetError()
bool MuonCalib::MTT0PatternRecognition::GetError |
( |
| ) |
const |
|
inline |
◆ GetEstimatedT0()
double MuonCalib::MTT0PatternRecognition::GetEstimatedT0 |
( |
| ) |
const |
|
inline |
◆ GetFitRangeMax()
double MuonCalib::MTT0PatternRecognition::GetFitRangeMax |
( |
| ) |
const |
|
inline |
◆ GetFitRangeMin()
double MuonCalib::MTT0PatternRecognition::GetFitRangeMin |
( |
| ) |
const |
|
inline |
◆ GetHeight()
double MuonCalib::MTT0PatternRecognition::GetHeight |
( |
| ) |
const |
|
inline |
◆ Initialize()
bool MuonCalib::MTT0PatternRecognition::Initialize |
( |
TH1F * |
hist, |
|
|
const T0MTSettings * |
settings |
|
) |
| |
|
inline |
Initialize class - returns true if pattern recognition was successfull.
- Parameters
-
hist | Histogram which is to be fitted |
Definition at line 53 of file MTT0PatternRecognition.h.
57 double scale_min = 0.;
◆ m_background
double MuonCalib::MTT0PatternRecognition::m_background |
|
private |
◆ m_draw_debug_graph
bool MuonCalib::MTT0PatternRecognition::m_draw_debug_graph |
|
private |
◆ m_error
bool MuonCalib::MTT0PatternRecognition::m_error |
|
private |
◆ m_fit_max
double MuonCalib::MTT0PatternRecognition::m_fit_max |
|
private |
◆ m_fit_min
double MuonCalib::MTT0PatternRecognition::m_fit_min |
|
private |
◆ m_height
double MuonCalib::MTT0PatternRecognition::m_height |
|
private |
◆ m_settings
◆ m_t0_est
double MuonCalib::MTT0PatternRecognition::m_t0_est |
|
private |
◆ m_vbh
The documentation for this class was generated from the following files:
const VariableBinwidthHistogramBin & GetSortedBin(unsigned int bin)
Get a bin sorted by content.
TGraph * DiffDensityGraph() const
Plot graph with differential density.
double VBHBinContent() const
Number of hits per histogram bin for the VariableBinwidthHistogram The number is given relative to th...
const T0MTSettingsT0 * m_settings
settings
double m_background
background level
TGraph * DenistyGraph() const
create density graph - density vs bin center
unsigned int GetNumberOfBins() const
Get the number of bins
IMessageSvc * getMessageSvc(bool quiet=false)
TGraph * BinContentGraph() const
Plot bin content graph - bin content vs bin center.
double MaxBinWidth() const
Maximum bin width for the VariableBinwidthHistogram The bins will not be wider than this even if it m...
double chi2(TH1 *h0, TH1 *h1)
bool Smooth(double width)
Removes steps that origin in a binning effekt.
double m_fit_min
fit range
int MinBackgroundBins() const
The minimum width of the region for the background estimation.
bool Initialize(TH1F *hist, double binc_r, double max_bin_width, double min_x=-9e9, double max_x=9e9)
Initialize with new input histogram Returns on error false.
double Left() const
Get left (lower) bin border.
TGraph * BinWidthGraph() const
Plot binwidth graph - binwidth versus bin center.
VariableBinwidthHistogram m_vbh
Variable binwidth histogram.
double Right() const
Get right (upper) bin border.
bool estimate_background(TH1F *hist, double scale_min)
estimates the background level
double estimate_height(TH1F *hist)
estimates the height of the spectrum.
double Width() const
Get width of the bin.
double m_t0_est
t0 estimate