Berkeley Nuclear Data Software
HistHelpers.h
Go to the documentation of this file.
1 #ifndef _HIST_HELPERS_H_
2 #define _HIST_HELPERS_H_
3 #include "TH1.h"
4 #include "TH2.h"
5 
9 {
10 public:
13  static TH1* scintResConvolve(TH1* a_hist,
14  double a_A,
15  double a_B,
16  double a_C
17  );
24  static double getIntegralCounts(double a_start,
25  double a_stop,
26  TH1* a_hist,
27  double& a_error
28  );
29 
30  //this method returns a bin weighted average of a histogram.
31  static double getBinWeightedAvg(double a_start,
32  double a_stop,
33  TH1* a_hist,
34  double& a_error
35  );
38  static std::vector<double> getGaussSeed(TH1* a_hist);
39 
40 };
41 
42 #endif
Definition: HistHelpers.h:9
static std::vector< double > getGaussSeed(TH1 *a_hist)
Definition: HistHelpers.cpp:235
static double getBinWeightedAvg(double a_start, double a_stop, TH1 *a_hist, double &a_error)
Definition: HistHelpers.cpp:137
static double getIntegralCounts(double a_start, double a_stop, TH1 *a_hist, double &a_error)
Definition: HistHelpers.cpp:40
static TH1 * scintResConvolve(TH1 *a_hist, double a_A, double a_B, double a_C)
Definition: HistHelpers.cpp:8