PandoraAnalysis  01.02.01
AnalysisHelper.h
1 
9 #ifndef ANALYSIS_HELPER_H
10 #define ANALYSIS_HELPER_H 1
11 
12 class TH1F;
13 
14 //------------------------------------------------------------------------------------------------------------------------------------------
15 
16 namespace pandora_analysis
17 {
18 
23 {
24 public:
31  static void CalculatePerformance(const TH1F *const pTH1F, bool fixDistributionCentre = true);
32 
42  static void CalculatePerformance(const TH1F *const pTH1F, float &resolution, float &resolutionError, bool fixDistributionCentre = true, bool print = true);
43 };
44 
45 //------------------------------------------------------------------------------------------------------------------------------------------
46 
47 inline void AnalysisHelper::CalculatePerformance(const TH1F *const pTH1F, bool fixDistributionCentre)
48 {
49  float sigma(0.f), sigmasigma(0.f);
50  return CalculatePerformance(pTH1F, sigma, sigmasigma, fixDistributionCentre);
51 }
52 
53 } // namespace pandora_analysis
54 
55 #endif // #ifndef ANALYSIS_HELPER_H
static void CalculatePerformance(const TH1F *const pTH1F, bool fixDistributionCentre=true)
Calculate performance figures for an energy spectrum provided in form of a root th1f.
Definition: AnalysisHelper.h:47
analysis helper class
Definition: AnalysisHelper.h:22