Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
ana::FCPoint Class Reference

Represents the results of a single Feldman-Cousins pseudo-experiment. More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-03/CAFAna/FC/FCPoint.h"

Public Member Functions

 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)
 
double TrueDelta () const
 
double TrueTh23 () const
 
double TrueTh13 () const
 
double TrueDmsq () const
 
double ProfDmsq () const
 
double Up () const
 
bool operator< (const FCPoint &rhs) const
 
void ToTree (TTree *tr) const
 

Static Public Member Functions

static void InitToTree (TTree *tr)
 
static void InitFromTree (TTree *tr)
 
static FCPoint FromTree (TTree *tr, int idx)
 

Protected Attributes

double fProfDelta
 
double fProfTh23
 
double fProfTh13
 
double fProfDmsq
 
double fPreTh23
 
double fPreDmsq
 
double fTrueDelta
 
double fTrueTh23
 
double fTrueTh13
 
double fTrueDmsq
 
double fTrueChi
 
double fBestDelta
 
double fBestTh23
 
double fBestTh13
 
double fBestDmsq
 
double fBestChi
 
double fLoadTime
 
double fCalcTime
 

Detailed Description

Represents the results of a single Feldman-Cousins pseudo-experiment.

Definition at line 8 of file FCPoint.h.

Constructor & Destructor Documentation

ana::FCPoint::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 
)
inline

Definition at line 11 of file FCPoint.h.

Referenced by FromTree().

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  }
double fProfTh23
Definition: FCPoint.h:48
double fTrueTh23
Definition: FCPoint.h:50
double fProfDmsq
Definition: FCPoint.h:48
double fPreTh23
Definition: FCPoint.h:49
double fProfTh13
Definition: FCPoint.h:48
double fTrueDelta
Definition: FCPoint.h:50
double fBestChi
Definition: FCPoint.h:53
double fProfDelta
Definition: FCPoint.h:48
double fBestTh13
Definition: FCPoint.h:52
double fLoadTime
Definition: FCPoint.h:54
double fTrueTh13
Definition: FCPoint.h:50
double fBestDmsq
Definition: FCPoint.h:52
double fCalcTime
Definition: FCPoint.h:54
double fBestDelta
Definition: FCPoint.h:52
double fBestTh23
Definition: FCPoint.h:52
double fTrueChi
Definition: FCPoint.h:51
double fPreDmsq
Definition: FCPoint.h:49
double fTrueDmsq
Definition: FCPoint.h:50

Member Function Documentation

FCPoint ana::FCPoint::FromTree ( TTree *  tr,
int  idx 
)
static

Definition at line 101 of file FCPoint.cxx.

References FCPoint().

Referenced by ana::FCCollection::AddFiles(), and operator<().

102  {
103  tr->GetEntry(idx);
104 
105  return FCPoint(gProfDelta, gProfTh23, gProfTh13, gProfDmsq,
106  gPreTh23, gPreDmsq,
107  gTrueDelta, gTrueTh23, gTrueTh13, gTrueDmsq,
108  gTrueChi,
109  gBestDelta, gBestTh23, gBestTh13, gBestDmsq,
110  gBestChi,
111  gLoadTime, gCalcTime);
112  }
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
void ana::FCPoint::InitFromTree ( TTree *  tr)
static

Definition at line 75 of file FCPoint.cxx.

Referenced by ana::FCCollection::AddFiles(), and operator<().

76  {
77  tr->SetBranchAddress("profDelta", &gProfDelta);
78  tr->SetBranchAddress("profTh23", &gProfTh23);
79  tr->SetBranchAddress("profTh13", &gProfTh13);
80  tr->SetBranchAddress("profDmsq", &gProfDmsq);
81  tr->SetBranchAddress("preTh23", &gPreTh23);
82  tr->SetBranchAddress("preDmsq", &gPreDmsq);
83  tr->SetBranchAddress("trueDelta", &gTrueDelta);
84  tr->SetBranchAddress("trueTh23", &gTrueTh23);
85  tr->SetBranchAddress("trueTh13", &gTrueTh13);
86  tr->SetBranchAddress("trueDmsq", &gTrueDmsq);
87 
88  tr->SetBranchAddress("truechi", &gTrueChi);
89 
90  tr->SetBranchAddress("bestDelta", &gBestDelta);
91  tr->SetBranchAddress("bestTh23", &gBestTh23);
92  tr->SetBranchAddress("bestTh13", &gBestTh13);
93  tr->SetBranchAddress("bestDmsq", &gBestDmsq);
94 
95  tr->SetBranchAddress("bestchi", &gBestChi);
96  tr->SetBranchAddress("loadtime", &gLoadTime);
97  tr->SetBranchAddress("calctime", &gCalcTime);
98  }
void ana::FCPoint::InitToTree ( TTree *  tr)
static

Definition at line 20 of file FCPoint.cxx.

Referenced by operator<(), and ana::FCCollection::SaveToFile().

21  {
22  tr->Branch("profDelta", &gProfDelta);
23  tr->Branch("profTh23", &gProfTh23);
24  tr->Branch("profTh13", &gProfTh13);
25  tr->Branch("profDmsq", &gProfDmsq);
26  tr->Branch("preTh23", &gPreTh23);
27  tr->Branch("preDmsq", &gPreDmsq);
28  tr->Branch("trueDelta", &gTrueDelta);
29  tr->Branch("trueTh23", &gTrueTh23);
30  tr->Branch("trueTh13", &gTrueTh13);
31  tr->Branch("trueDmsq", &gTrueDmsq);
32 
33  tr->Branch("truechi", &gTrueChi);
34 
35  tr->Branch("bestDelta", &gBestDelta);
36  tr->Branch("bestTh23", &gBestTh23);
37  tr->Branch("bestTh13", &gBestTh13);
38  tr->Branch("bestDmsq", &gBestDmsq);
39 
40  tr->Branch("bestchi", &gBestChi);
41  tr->Branch("loadtime", &gLoadTime);
42  tr->Branch("calctime", &gCalcTime);
43 
44  }
bool ana::FCPoint::operator< ( const FCPoint rhs) const
inline

Definition at line 40 of file FCPoint.h.

References FromTree(), compare_h5_caf::idx, InitFromTree(), InitToTree(), ToTree(), make_root_from_grid_output::tr, and Up().

40 {return Up() < rhs.Up();}
double Up() const
Definition: FCPoint.h:38
double ana::FCPoint::ProfDmsq ( ) const
inline

Definition at line 36 of file FCPoint.h.

References fProfDmsq.

Referenced by ana::FCSurface::Add().

36 { return fProfDmsq; }
double fProfDmsq
Definition: FCPoint.h:48
void ana::FCPoint::ToTree ( TTree *  tr) const

Definition at line 47 of file FCPoint.cxx.

References fBestChi, fBestDelta, fBestDmsq, fBestTh13, fBestTh23, fCalcTime, fLoadTime, fPreDmsq, fPreTh23, fProfDelta, fProfDmsq, fProfTh13, fProfTh23, fTrueChi, fTrueDelta, fTrueDmsq, fTrueTh13, and fTrueTh23.

Referenced by operator<().

48  {
49  gProfDelta = fProfDelta;
50  gProfTh23 = fProfTh23;
51  gProfTh13 = fProfTh13;
52  gProfDmsq = fProfDmsq;
53  gPreTh23 = fPreTh23;
54  gPreDmsq = fPreDmsq;
55  gTrueDelta = fTrueDelta;
56  gTrueTh23 = fTrueTh23;
57  gTrueTh13 = fTrueTh13;
58  gTrueDmsq = fTrueDmsq;
59 
60  gTrueChi = fTrueChi;
61 
62  gBestDelta = fBestDelta;
63  gBestTh23 = fBestTh23;
64  gBestTh13 = fBestTh13;
65  gBestDmsq = fBestDmsq;
66 
67  gBestChi = fBestChi;
68  gLoadTime = fLoadTime;
69  gCalcTime = fCalcTime;
70 
71  tr->Fill();
72  }
double fProfTh23
Definition: FCPoint.h:48
double fTrueTh23
Definition: FCPoint.h:50
double fProfDmsq
Definition: FCPoint.h:48
double fPreTh23
Definition: FCPoint.h:49
double fProfTh13
Definition: FCPoint.h:48
double fTrueDelta
Definition: FCPoint.h:50
double fBestChi
Definition: FCPoint.h:53
double fProfDelta
Definition: FCPoint.h:48
double fBestTh13
Definition: FCPoint.h:52
double fLoadTime
Definition: FCPoint.h:54
double fTrueTh13
Definition: FCPoint.h:50
double fBestDmsq
Definition: FCPoint.h:52
double fCalcTime
Definition: FCPoint.h:54
double fBestDelta
Definition: FCPoint.h:52
double fBestTh23
Definition: FCPoint.h:52
double fTrueChi
Definition: FCPoint.h:51
double fPreDmsq
Definition: FCPoint.h:49
double fTrueDmsq
Definition: FCPoint.h:50
double ana::FCPoint::TrueDelta ( ) const
inline

Definition at line 32 of file FCPoint.h.

References fTrueDelta.

Referenced by ana::FCSurface::Add().

32 {return fTrueDelta;}
double fTrueDelta
Definition: FCPoint.h:50
double ana::FCPoint::TrueDmsq ( ) const
inline

Definition at line 35 of file FCPoint.h.

References fTrueDmsq.

Referenced by ana::FCSurface::Add().

35 {return fTrueDmsq;}
double fTrueDmsq
Definition: FCPoint.h:50
double ana::FCPoint::TrueTh13 ( ) const
inline

Definition at line 34 of file FCPoint.h.

References fTrueTh13.

Referenced by ana::FCSurface::Add().

34 {return fTrueTh13;}
double fTrueTh13
Definition: FCPoint.h:50
double ana::FCPoint::TrueTh23 ( ) const
inline

Definition at line 33 of file FCPoint.h.

References fTrueTh23.

Referenced by ana::FCSurface::Add().

33 {return fTrueTh23;}
double fTrueTh23
Definition: FCPoint.h:50
double ana::FCPoint::Up ( ) const
inline

Definition at line 38 of file FCPoint.h.

References fBestChi, and fTrueChi.

Referenced by ana::FCBin::Add(), ana::FCSurface::Add(), and operator<().

38 {return fTrueChi-fBestChi;}
double fBestChi
Definition: FCPoint.h:53
double fTrueChi
Definition: FCPoint.h:51

Member Data Documentation

double ana::FCPoint::fBestChi
protected

Definition at line 53 of file FCPoint.h.

Referenced by ToTree(), and Up().

double ana::FCPoint::fBestDelta
protected

Definition at line 52 of file FCPoint.h.

Referenced by ToTree().

double ana::FCPoint::fBestDmsq
protected

Definition at line 52 of file FCPoint.h.

Referenced by ToTree().

double ana::FCPoint::fBestTh13
protected

Definition at line 52 of file FCPoint.h.

Referenced by ToTree().

double ana::FCPoint::fBestTh23
protected

Definition at line 52 of file FCPoint.h.

Referenced by ToTree().

double ana::FCPoint::fCalcTime
protected

Definition at line 54 of file FCPoint.h.

Referenced by ToTree().

double ana::FCPoint::fLoadTime
protected

Definition at line 54 of file FCPoint.h.

Referenced by ToTree().

double ana::FCPoint::fPreDmsq
protected

Definition at line 49 of file FCPoint.h.

Referenced by ToTree().

double ana::FCPoint::fPreTh23
protected

Definition at line 49 of file FCPoint.h.

Referenced by ToTree().

double ana::FCPoint::fProfDelta
protected

Definition at line 48 of file FCPoint.h.

Referenced by ToTree().

double ana::FCPoint::fProfDmsq
protected

Definition at line 48 of file FCPoint.h.

Referenced by ProfDmsq(), and ToTree().

double ana::FCPoint::fProfTh13
protected

Definition at line 48 of file FCPoint.h.

Referenced by ToTree().

double ana::FCPoint::fProfTh23
protected

Definition at line 48 of file FCPoint.h.

Referenced by ToTree().

double ana::FCPoint::fTrueChi
protected

Definition at line 51 of file FCPoint.h.

Referenced by ToTree(), and Up().

double ana::FCPoint::fTrueDelta
protected

Definition at line 50 of file FCPoint.h.

Referenced by ToTree(), and TrueDelta().

double ana::FCPoint::fTrueDmsq
protected

Definition at line 50 of file FCPoint.h.

Referenced by ToTree(), and TrueDmsq().

double ana::FCPoint::fTrueTh13
protected

Definition at line 50 of file FCPoint.h.

Referenced by ToTree(), and TrueTh13().

double ana::FCPoint::fTrueTh23
protected

Definition at line 50 of file FCPoint.h.

Referenced by ToTree(), and TrueTh23().


The documentation for this class was generated from the following files: