ATLAS Offline Software
MuonPTResolution.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // Package : MuonRecValidatorAOD
7 // Author: T.A.Mueller (LMU) thomas(at)cern.ch
8 // Feb. 2007
9 //
10 // DESCRIPTION:
11 // Subject: These functions allow a common agreed way to define the muon pT-Resolution
13 
14 
15 #include <string>
16 class TH1F;
17 
18 double getContentInRange(TH1F *hist, double centralX, double halfWidth);
19 
20 // Uses n_max_runs = 3 and does not give the alternative HalfWidth for non-gaussian
21 //distributions
23  double &PTResMean,
24  double &ErrMean,
25  double &PTSigma,
26  double &ErrSigma,
27  double &TailFraction);
28 
29 // Gives Number of Entries in Range centralX +/- halfWidth
30 // Fits a gaussian to the given histogramm, then discards all entries more than 2 sigmas
31 // away from PTResMean. Iterates n_max_runs times. Sigma of the last fitted gaussian is
32 // returned as &PTSigma. Also goes from PTResMean and increases HalfWidth until
33 // PerCentageOfEntries % are within the range PTResMean +/- Halfwidth. This can be used as
34 // an alternative method to calculate the width of a non-gaussian pt-distribution
36  int n_max_runs,
37  double &PTResMean,
38  double &ErrMean,
39  double &PTSigma,
40  double &ErrSigma,
41  double &TailFraction,
42  double PercentageOfEntriesInWidth,
43  double &HalfWidth);
getMuonPTResolution
void getMuonPTResolution(TH1F *hist, double &PTResMean, double &ErrMean, double &PTSigma, double &ErrSigma, double &TailFraction)
Definition: MuonPTResolution.cxx:37
plotmaker.hist
hist
Definition: plotmaker.py:148
getContentInRange
double getContentInRange(TH1F *hist, double centralX, double halfWidth)
Definition: MuonPTResolution.cxx:12
python.TrigEgammaMonitorHelper.TH1F
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
Definition: TrigEgammaMonitorHelper.py:24