All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
ana::ReactorExperiment Class Reference

Very simple model allowing inclusion of reactor constraints. More...

#include <ReactorExperiment.h>

Inheritance diagram for ana::ReactorExperiment:
ana::IExperiment

Public Member Functions

 ReactorExperiment (double bestFit, double sigma)
 
virtual double ChiSq (osc::IOscCalcAdjustable *osc, const SystShifts &shift=SystShifts::Nominal()) const override
 
void SaveTo (TDirectory *dir) const override
 
- Public Member Functions inherited from ana::IExperiment
virtual ~IExperiment ()
 

Static Public Member Functions

static std::unique_ptr
< ReactorExperiment
LoadFrom (TDirectory *dir)
 

Protected Attributes

double fBestFit
 
double fSigma
 

Detailed Description

Very simple model allowing inclusion of reactor constraints.

Definition at line 10 of file ReactorExperiment.h.

Constructor & Destructor Documentation

ana::ReactorExperiment::ReactorExperiment ( double  bestFit,
double  sigma 
)
inline

Definition at line 13 of file ReactorExperiment.h.

14  : fBestFit(bestFit), fSigma(sigma)
15  {
16  }

Member Function Documentation

double ana::ReactorExperiment::ChiSq ( osc::IOscCalcAdjustable osc,
const SystShifts shift = SystShifts::Nominal() 
) const
overridevirtual

Implements ana::IExperiment.

Definition at line 16 of file ReactorExperiment.cxx.

18  {
20  }
T sqr(T x)
More efficient square function than pow(x,2)
Definition: MathUtil.h:23
virtual double GetValue(const osc::IOscCalcAdjustable *osc) const
Definition: FitVars.cxx:24
const FitSinSq2Theta13 kFitSinSq2Theta13
Definition: FitVars.h:38
std::unique_ptr< ReactorExperiment > ana::ReactorExperiment::LoadFrom ( TDirectory *  dir)
static

Definition at line 39 of file ReactorExperiment.cxx.

40  {
41  TObjString* tag = (TObjString*)dir->Get("type");
42  assert(tag);
43  assert(tag->GetString() == "ReactorExperiment");
44 
45  TH1* params = (TH1*)dir->Get("params");
46  assert(params);
47 
48  const double bestFit = params->GetBinContent(1);
49  const double sigma = params->GetBinContent(2);
50 
51  return std::unique_ptr<ReactorExperiment>(new ReactorExperiment(bestFit,
52  sigma));
53  }
tuple dir
Definition: dropbox.py:28
ReactorExperiment(double bestFit, double sigma)
void ana::ReactorExperiment::SaveTo ( TDirectory *  dir) const
overridevirtual

Reimplemented from ana::IExperiment.

Definition at line 23 of file ReactorExperiment.cxx.

24  {
25  TDirectory* tmp = dir;
26 
27  dir->cd();
28  TObjString("ReactorExperiment").Write("type");
29 
30  TH1D params("", "", 2, 0, 2);
31  params.SetBinContent(1, fBestFit);
32  params.SetBinContent(2, fSigma);
33  params.Write("params");
34 
35  tmp->cd();
36  }
tuple dir
Definition: dropbox.py:28

Member Data Documentation

double ana::ReactorExperiment::fBestFit
protected

Definition at line 24 of file ReactorExperiment.h.

double ana::ReactorExperiment::fSigma
protected

Definition at line 24 of file ReactorExperiment.h.


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