FCPoint.h
Go to the documentation of this file.
1 #pragma once
2 
3 class TTree;
4 
5 namespace ana
6 {
7  /// Represents the results of a single Feldman-Cousins pseudo-experiment
8  class FCPoint
9  {
10  public:
11  FCPoint(double profdelta, double profth23, double profth13, double profdmsq,
12  double pre_th23, double pre_dmsq,
13  double tdelta, double tth23, double tth13, double tdmsq,
14  double tchi,
15  double bdelta, double bth23, double bth13, double bdmsq,
16  double bchi,
17  double loadtime, double calctime)
18  : fProfDelta(profdelta), fProfTh23(profth23),
19  fProfTh13(profth13), fProfDmsq(profdmsq),
20  fPreTh23(pre_th23), fPreDmsq(pre_dmsq),
21  fTrueDelta(tdelta), fTrueTh23(tth23),
22  fTrueTh13(tth13), fTrueDmsq(tdmsq),
23  fTrueChi(tchi),
24  fBestDelta(bdelta), fBestTh23(bth23),
25  fBestTh13(bth13), fBestDmsq(bdmsq),
26  fBestChi(bchi),
27  fLoadTime(loadtime),
28  fCalcTime(calctime)
29  {
30  }
31 
32  double TrueDelta() const {return fTrueDelta;}
33  double TrueTh23() const {return fTrueTh23;}
34  double TrueTh13() const {return fTrueTh13;}
35  double TrueDmsq() const {return fTrueDmsq;}
36  double ProfDmsq() const { return fProfDmsq; }
37 
38  double Up() const {return fTrueChi-fBestChi;}
39 
40  bool operator<(const FCPoint& rhs) const{return Up() < rhs.Up();}
41 
42  static void InitToTree(TTree* tr);
43  void ToTree(TTree* tr) const;
44 
45  static void InitFromTree(TTree* tr);
46  static FCPoint FromTree(TTree* tr, int idx);
47  protected:
49  double fPreTh23, fPreDmsq;
51  double fTrueChi;
53  double fBestChi;
55  };
56 } // namespace
Cuts and Vars for the 2020 FD DiF Study.
Definition: vars.h:6
double fProfTh23
Definition: FCPoint.h:48
double fTrueTh23
Definition: FCPoint.h:50
double fProfDmsq
Definition: FCPoint.h:48
bool operator<(const FCPoint &rhs) const
Definition: FCPoint.h:40
double fPreTh23
Definition: FCPoint.h:49
double fProfTh13
Definition: FCPoint.h:48
double TrueTh23() const
Definition: FCPoint.h:33
double fTrueDelta
Definition: FCPoint.h:50
double TrueTh13() const
Definition: FCPoint.h:34
FCPoint(double profdelta, double profth23, double profth13, double profdmsq, double pre_th23, double pre_dmsq, double tdelta, double tth23, double tth13, double tdmsq, double tchi, double bdelta, double bth23, double bth13, double bdmsq, double bchi, double loadtime, double calctime)
Definition: FCPoint.h:11
double fBestChi
Definition: FCPoint.h:53
double fProfDelta
Definition: FCPoint.h:48
double fBestTh13
Definition: FCPoint.h:52
Represents the results of a single Feldman-Cousins pseudo-experiment.
Definition: FCPoint.h:8
double fLoadTime
Definition: FCPoint.h:54
double fTrueTh13
Definition: FCPoint.h:50
static void InitToTree(TTree *tr)
Definition: FCPoint.cxx:20
double fBestDmsq
Definition: FCPoint.h:52
double TrueDelta() const
Definition: FCPoint.h:32
double fCalcTime
Definition: FCPoint.h:54
double fBestDelta
Definition: FCPoint.h:52
double TrueDmsq() const
Definition: FCPoint.h:35
double fBestTh23
Definition: FCPoint.h:52
static void InitFromTree(TTree *tr)
Definition: FCPoint.cxx:75
double ProfDmsq() const
Definition: FCPoint.h:36
double fTrueChi
Definition: FCPoint.h:51
void ToTree(TTree *tr) const
Definition: FCPoint.cxx:47
static FCPoint FromTree(TTree *tr, int idx)
Definition: FCPoint.cxx:101
double Up() const
Definition: FCPoint.h:38
double fPreDmsq
Definition: FCPoint.h:49
double fTrueDmsq
Definition: FCPoint.h:50