ATLAS Offline Software
MuonSpectrometer
MuonValidation
MuonDQA
MuonDQAUtils
MuonDQAUtils
MuonPTResolution.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 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 "TF1.h"
16
#include "TH1F.h"
17
#include <string>
18
#include <iostream>
19
#include <vector>
20
#include <map>
21
#include <math.h>
22
23
24
double
getContentInRange
(
TH1F
*
hist
,
double
centralX,
double
halfWidth);
25
26
// Uses n_max_runs = 3 and does not give the alternative HalfWidth for non-gaussian
27
//distributions
28
void
getMuonPTResolution
(
TH1F
*
hist
,
29
double
&PTResMean,
30
double
&ErrMean,
31
double
&PTSigma,
32
double
&ErrSigma,
33
double
&TailFraction);
34
35
// Gives Number of Entries in Range centralX +/- halfWidth
36
// Fits a gaussian to the given histogramm, then discards all entries more than 2 sigmas
37
// away from PTResMean. Iterates n_max_runs times. Sigma of the last fitted gaussian is
38
// returned as &PTSigma. Also goes from PTResMean and increases HalfWidth until
39
// PerCentageOfEntries % are within the range PTResMean +/- Halfwidth. This can be used as
40
// an alternative method to calculate the width of a non-gaussian pt-distribution
41
void
getMuonPTResolution
(
TH1F
*
hist
,
42
int
n_max_runs,
43
double
&PTResMean,
44
double
&ErrMean,
45
double
&PTSigma,
46
double
&ErrSigma,
47
double
&TailFraction,
48
double
PercentageOfEntriesInWidth,
49
double
&HalfWidth);
getMuonPTResolution
void getMuonPTResolution(TH1F *hist, double &PTResMean, double &ErrMean, double &PTSigma, double &ErrSigma, double &TailFraction)
Definition:
MuonPTResolution.cxx:39
plotmaker.hist
hist
Definition:
plotmaker.py:148
getContentInRange
double getContentInRange(TH1F *hist, double centralX, double halfWidth)
Definition:
MuonPTResolution.cxx:14
python.TrigEgammaMonitorHelper.TH1F
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
Definition:
TrigEgammaMonitorHelper.py:24
Generated on Mon Dec 23 2024 21:15:24 for ATLAS Offline Software by
1.8.18