FCBin.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <vector>
4 
5 class TTree;
6 
7 namespace ana
8 {
9  class FCPoint;
10 
11  /// \brief A collection of Feldman-Cousins experiments at the same
12  /// oscillation parameters
13  class FCBin
14  {
15  public:
16  void Add(const FCPoint& pt);
17 
18  double UpValueForSignificance(double sig);
19  double SignificanceForUpValue(double up) const;
20 
21  void Draw(double maxx = 10) const;
22 
23  bool Empty() const {return fVals.empty();}
24 
25  static void InitToTree(TTree* tr);
26  void ToTree(TTree* tr) const;
27 
28  static void InitFromTree(TTree* tr);
29  static FCBin FromTree(TTree* tr, int idx);
30  protected:
31  mutable std::vector<float> fVals; // TODO fix constnesses
32  };
33 }
Cuts and Vars for the 2020 FD DiF Study.
Definition: vars.h:6
void Draw(double maxx=10) const
Definition: FCBin.cxx:76
double UpValueForSignificance(double sig)
Definition: FCBin.cxx:27
double SignificanceForUpValue(double up) const
Definition: FCBin.cxx:59
Represents the results of a single Feldman-Cousins pseudo-experiment.
Definition: FCPoint.h:8
void ToTree(TTree *tr) const
Definition: FCBin.cxx:96
A collection of Feldman-Cousins experiments at the same oscillation parameters.
Definition: FCBin.h:13
static FCBin FromTree(TTree *tr, int idx)
Definition: FCBin.cxx:125
static void InitFromTree(TTree *tr)
Definition: FCBin.cxx:107
std::vector< float > fVals
Definition: FCBin.h:31
static void InitToTree(TTree *tr)
Definition: FCBin.cxx:89
bool Empty() const
Definition: FCBin.h:23
void Add(const FCPoint &pt)
Definition: FCBin.cxx:21