hpstr
The Heavy Photon Search Toolkit for Reconstruction (hpstr) provides an interface to physics data from the HPS experiment saved in the LCIO format and converts it into an ROOT based format.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
HistogramHelpers.h
Go to the documentation of this file.
1#ifndef HISTOGRAMHELPERS_H
2#define HISTOGRAMHELPERS_H
3
4
5#include "TF1.h"
6#include "TH3.h"
7#include "TH2.h"
8#include "TH1.h"
9#include "TFitResultPtr.h"
10#include "TCanvas.h"
11#include "TFile.h"
12#include "TStyle.h"
13
14using namespace std;
15
16
25 double GaussExpTails_f(double* x, double *par);
26
34 double twoGaussExp_f(double* x, double *par);
35
43 double twoGauss_f(double*x, double* par);
44
56 int IterativeGaussFit(TH1* hist, double &mu, double &mu_err, double &sigma,
57 double &sigma_err, int m_PrintLevel = 0);
58
70 TF1* IterativeGeneralFit(TH1* hist, double(*fcn)(double *, double *),
71 const std::vector<float>& initial,
72 const std::vector<float>& fitRange,
73 TFitResultPtr *fitr_p, int m_PrintLevel);
74
84 void profileYwithIterativeGaussFit(TH2* hist, TH1* mu_graph, TH1* sigma_graph,
85 int num_bins = 1, int m_PrintLevel = 0);
86
97 void profileZwithIterativeGaussFit(TH3* hist, TH2* mu_graph, TH2* sigma_graph,
98 int num_bins, TH2* mu_err_graph, TH2* sigma_err_graph);
99
106 void HistogramConditioning (TH1* hist, int m_PrintLevel =0);
107
112 void OpenProjectionFile();
113
118 void CloseProjectionFile();
119
122}
123
124#endif
void profileYwithIterativeGaussFit(TH2 *hist, TH1 *mu_graph, TH1 *sigma_graph, int num_bins=1, int m_PrintLevel=0)
description
TF1 * IterativeGeneralFit(TH1 *hist, double(*fcn)(double *, double *), const std::vector< float > &initial, const std::vector< float > &fitRange, TFitResultPtr *fitr_p, int m_PrintLevel)
description
int IterativeGaussFit(TH1 *hist, double &mu, double &mu_err, double &sigma, double &sigma_err, int m_PrintLevel=0)
description
double twoGauss_f(double *x, double *par)
description
double twoGaussExp_f(double *x, double *par)
description
void OpenProjectionFile()
description
TFile * outFile_for_projections
void CloseProjectionFile()
description
void profileZwithIterativeGaussFit(TH3 *hist, TH2 *mu_graph, TH2 *sigma_graph, int num_bins, TH2 *mu_err_graph, TH2 *sigma_err_graph)
description
double GaussExpTails_f(double *x, double *par)
description
void HistogramConditioning(TH1 *hist, int m_PrintLevel=0)
description