NuEZFitterNSI Class Reference

Simplifies the process of setting up and running a fit. More...

#include <NuEZFitterNSI.h>

List of all members.

Public Member Functions

 NuEZFitterNSI (std::string Helper, std::string NeardetData)
 Creates the fitter for a single run.
 NuEZFitterNSI (std::string Helper, std::string NeardetData, std::string FardetData)
 Creates a fitter, using far detector data.
 NuEZFitterNSI (const NuEZFitterNSI &)
 ~NuEZFitterNSI ()
void MakeFDData (Double_t POT, Double_t dm2bar, Double_t epsilon, Double_t sn2bar=1.0, Double_t dm2=2.4e-3, Double_t sn2=1.0)
 Creates a FD data spectrum This function generates a fake FD spectrum to use as FD data by extrapolating the near detector data.
void UseFDData (std::string FardetData)
 Uses an existing Far detector data spectrum, by loading from file.
void UseFDData (const NuMatrixSpectrum &fdNQdata, const NuMatrixSpectrum &fdPQdata)
 Uses an exiting spectrum as far detector data.
void UseFDFakeData (Double_t POT, std::string FardetData, std::string FarDetTauData)
 Uses an existing far detector fake-data spectrum.
void SetPoT (Double_t POT)
 Set's the value of the far detector POT.
void ScaleToPot (Double_t POT)
 Scale the value of the far detector POT.
Double_t Chi2 (Double_t dm2bar, Double_t epsilon, Double_t sn2bar=1.0, Double_t dm2=2.4e-3, Double_t sn2=1.0) const
 Returns the Delta-chi squared of a point This function accepts a set of oscillation parameters, makes a prediction at those values and then does a log-likelihood comparison to calculate the chi2.
Double_t Chi2 (const NuMMParameters &params) const
 Returns the Delta-chi squared of a point Accepts a NuMMParameters, and returns the chi2 at the point represented.
Bool_t Fit (const NuMMParameters &Initial)
 Does a fit to the data Does a simple Minuit fit to the data. Returns a bool indicating how successful the fit was. Get the fit results through FitResults().
NuMatrixSpectrum PredictionNQ (Double_t dm2bar, Double_t epsilon, Double_t sn2bar=1.0, Double_t dm2=2.4e-3, Double_t sn2=1.0) const
 Generates an NQ prediction.
NuMatrixSpectrum PredictionNQ (const NuMMParameters &params) const
 Generates an NQ prediction.
NuMatrixSpectrum PredictionPQ (Double_t dm2bar, Double_t epsilon, Double_t sn2bar=1.0, Double_t dm2=2.4e-3, Double_t sn2=1.0) const
 Generates an PQ prediction.
NuMatrixSpectrum PredictionPQ (const NuMMParameters &params) const
 Generates an PQ prediction.
NuSystFitterFitter ()
 Returns a pointer to the fitter.
NuMMRunFCNSINubarRun ()
 Returns a pointer to the run object.
const NuMatrixSpectrumNDDataNQ () const
 Returns the NQ Near detector spectrum.
const NuMatrixSpectrumNDDataPQ () const
 Returns the PQ Near detector spectrum.
const NuMatrixSpectrumFDDataNQ () const
 Returns the NQ Far detector spectrum.
const NuMatrixSpectrumFDDataPQ () const
 Returns the PQ Far detector spectrum.
const NuMMParametersFitResult () const
 Returns the results of the fit.
const NuMMHelperCPTHelper () const
 Returns the helper object.

Private Member Functions

void Init (void)
 Initialises the class variables.
void Init_Helper_Near (std::string Helper, std::string NeardetData)
 Initialises the near detector and helper objects.
void Rebuild (void)
 Rebuilds the internal objects.

Private Attributes

NuMatrixSpectrumfNDDataPQ
 PQ ND Spectrum.
NuMatrixSpectrumfNDDataNQ
 NQ ND Spectrum.
NuMatrixSpectrumfFDDataPQ
 PQ FD Spectrum.
NuMatrixSpectrumfFDDataNQ
 NQ FD Spectrum.
NuMMHelperCPTfHelper
 The MM helper object.
NuMMRunFCNSINubarfRun
 The run object that does the extrapolation.
NuSystFitterfFitter
 The fitter object.
NuMMParametersfFitResult

Detailed Description

Simplifies the process of setting up and running a fit.

Author:
Nick Devenish, Last checkin
Author
zisvan
Version:
Revision
1.1
Date:
Date
2011/04/05 16:11:39

Created on: Sun Dec 14, 2008

Definition at line 32 of file NuEZFitterNSI.h.


Constructor & Destructor Documentation

NuEZFitterNSI::NuEZFitterNSI ( std::string  Helper,
std::string  NeardetData 
)

Creates the fitter for a single run.

Parameters:
NeardetData The near detector data
Helper The helper file
NuEZFitterNSI::NuEZFitterNSI ( std::string  Helper,
std::string  NeardetData,
std::string  FardetData 
)

Creates a fitter, using far detector data.

NuEZFitterNSI::NuEZFitterNSI ( const NuEZFitterNSI o  ) 

Definition at line 57 of file NuEZFitterNSI.cxx.

References fFDDataNQ, fFDDataPQ, fFitResult, fFitter, fHelper, fNDDataNQ, fNDDataPQ, fRun, and Init().

00058 { 
00059   Init();
00060   
00061   if (o.fNDDataPQ) fNDDataPQ = new NuMatrixSpectrum(*o.fNDDataPQ);
00062   if (o.fNDDataNQ) fNDDataNQ = new NuMatrixSpectrum(*o.fNDDataNQ);
00063   if (o.fFDDataPQ) fFDDataPQ = new NuMatrixSpectrum(*o.fFDDataPQ);
00064   if (o.fFDDataNQ) fFDDataNQ = new NuMatrixSpectrum(*o.fFDDataNQ);
00065   
00066   if (o.fHelper) fHelper = new NuMMHelperCPT(*o.fHelper);
00067   if (o.fRun) fRun = new NuMMRunFCNSINubar(*o.fRun);
00068   if (o.fFitter) fFitter = new NuSystFitter(*o.fFitter);
00069   if (o.fFitResult) fFitResult = new NuMMParameters(*o.fFitResult);
00070 }

NuEZFitterNSI::~NuEZFitterNSI (  ) 

Definition at line 72 of file NuEZFitterNSI.cxx.

References fFDDataNQ, fFDDataPQ, fFitResult, fFitter, fHelper, fNDDataNQ, fNDDataPQ, and fRun.

00073 {
00074   // Free all of our memory
00075   if (fNDDataPQ) delete fNDDataPQ; fNDDataPQ = 0;
00076   if (fNDDataNQ) delete fNDDataNQ; fNDDataNQ = 0;
00077   
00078   if (fFDDataPQ) delete fFDDataPQ;  fFDDataPQ = 0;
00079   if (fFDDataNQ) delete fFDDataNQ;  fFDDataNQ = 0;
00080 
00081   if (fHelper) delete fHelper; fHelper = 0;
00082   if (fRun) delete fRun; fRun = 0;
00083   if (fFitter) delete fFitter; fFitter = 0;
00084 
00085   if (fFitResult) delete fFitResult; fFitResult = 0;
00086 // if () delete ;  = 0;
00087 
00088 }


Member Function Documentation

Double_t NuEZFitterNSI::Chi2 ( const NuMMParameters params  )  const

Returns the Delta-chi squared of a point Accepts a NuMMParameters, and returns the chi2 at the point represented.

Definition at line 267 of file NuEZFitterNSI.cxx.

References fFitter, Msg::kError, MSG, and NuMMParameters::VectorParameters().

00268 {
00269   if (fFitter) {
00270     return (*fFitter)(params.VectorParameters());
00271   } else {
00272     MSG("NuEZFitterNSI",Msg::kError) << "No Fitter exists. Have you added FD data?" << endl;
00273     return 0;
00274   }
00275 }

Double_t NuEZFitterNSI::Chi2 ( Double_t  dm2bar,
Double_t  epsilon,
Double_t  sn2bar = 1.0,
Double_t  dm2 = 2.4e-3,
Double_t  sn2 = 1.0 
) const

Returns the Delta-chi squared of a point This function accepts a set of oscillation parameters, makes a prediction at those values and then does a log-likelihood comparison to calculate the chi2.

Definition at line 253 of file NuEZFitterNSI.cxx.

References NuMMParameters::Dm2(), NuMMParameters::Dm2Bar(), NuMMParameters::Epsilon(), NuMMParameters::Sn2(), and NuMMParameters::Sn2Bar().

00255 {
00256   NuMMParameters mmPars;
00257   mmPars.Dm2(dm2);
00258   mmPars.Epsilon(epsilon);  
00259   mmPars.Sn2(sn2);
00260   mmPars.Dm2Bar(dm2bar);
00261   mmPars.Sn2Bar(sn2bar);
00262 
00263   // return (*fFitter)(mmPars.VectorParameters());
00264   return Chi2(mmPars);
00265 }

const NuMatrixSpectrum& NuEZFitterNSI::FDDataNQ (  )  const [inline]

Returns the NQ Far detector spectrum.

Definition at line 113 of file NuEZFitterNSI.h.

References fFDDataNQ.

00113 { return *fFDDataNQ; }

const NuMatrixSpectrum& NuEZFitterNSI::FDDataPQ (  )  const [inline]

Returns the PQ Far detector spectrum.

Definition at line 115 of file NuEZFitterNSI.h.

References fFDDataPQ.

00115 { return *fFDDataPQ; }

Bool_t NuEZFitterNSI::Fit ( const NuMMParameters Initial  ) 

Does a fit to the data Does a simple Minuit fit to the data. Returns a bool indicating how successful the fit was. Get the fit results through FitResults().

Parameters:
Initial The initial parameters of the fit

Definition at line 325 of file NuEZFitterNSI.cxx.

References fFitResult, fFitter, Msg::kError, NuSystFitter::Minimise(), NuMMParameters::MinuitPass(), and MSG.

00326 {
00327   // Can we do a fit?
00328   if (!fFitter) {
00329     MSG("NuEZFitterNSI",Msg::kError) << "No Fitter exists. Have you added FD data?" << endl;
00330     fFitResult = new NuMMParameters(Initial);
00331     return false;
00332   }
00333   
00334   // Do the fit
00335   // Bool_t minuitresult = false;
00336   NuMMParameters mmFit = fFitter->Minimise(Initial);
00337   // Copy the fit result to our class member
00338   if (fFitResult) delete fFitResult; fFitResult = 0;
00339   fFitResult = new NuMMParameters(mmFit);
00340   
00341   return fFitResult->MinuitPass();
00342 }

const NuMMParameters& NuEZFitterNSI::FitResult (  )  const [inline]

Returns the results of the fit.

Definition at line 118 of file NuEZFitterNSI.h.

References fFitResult.

00118 { return *fFitResult; }

NuSystFitter* NuEZFitterNSI::Fitter (  )  [inline]

Returns a pointer to the fitter.

Definition at line 103 of file NuEZFitterNSI.h.

References fFitter.

00103 { return fFitter; }

const NuMMHelperCPT& NuEZFitterNSI::Helper (  )  const [inline]

Returns the helper object.

Definition at line 121 of file NuEZFitterNSI.h.

References fHelper.

00121 { return *fHelper; }

void NuEZFitterNSI::Init ( void   )  [private]

Initialises the class variables.

Definition at line 19 of file NuEZFitterNSI.cxx.

References fFDDataNQ, fFDDataPQ, fFitResult, fFitter, fHelper, fNDDataNQ, fNDDataPQ, fRun, and NuMMParameters::MinuitPass().

Referenced by NuEZFitterNSI().

00020 {
00021   fNDDataPQ = fNDDataNQ = fFDDataPQ = fFDDataNQ = 0;
00022   fHelper = 0; fRun = 0; fFitter = 0; fFitResult = 0;
00023   
00024   // Make a dummy fit result
00025   fFitResult = new NuMMParameters();
00026   fFitResult->MinuitPass(false);
00027 }

void NuEZFitterNSI::Init_Helper_Near ( std::string  Helper,
std::string  NeardetData 
) [private]

Initialises the near detector and helper objects.

void NuEZFitterNSI::MakeFDData ( Double_t  POT,
Double_t  dm2bar,
Double_t  epsilon,
Double_t  sn2bar = 1.0,
Double_t  dm2 = 2.4e-3,
Double_t  sn2 = 1.0 
)

Creates a FD data spectrum This function generates a fake FD spectrum to use as FD data by extrapolating the near detector data.

Parameters:
POT The exposure at the far detector

Definition at line 126 of file NuEZFitterNSI.cxx.

References NuMMRun::ConfigForNonStandard(), NuMMParameters::Dm2(), NuMMParameters::Dm2Bar(), NuMMParameters::Epsilon(), fFDDataNQ, fFDDataPQ, fHelper, fNDDataNQ, fNDDataPQ, NuMMRunNuBar::MakeFDPredNoPair(), NuMMRun::QuietModeOn(), Rebuild(), NuMMRun::SetMaximumEnergy(), NuMMParameters::Sn2(), and NuMMParameters::Sn2Bar().

00127 {
00128     // Make the extrapolator
00129     NuMatrixSpectrum blankpot(POT);
00130     NuMMRunFCNSINubar mmFakeFar(fHelper, fNDDataNQ, fNDDataPQ, &blankpot, &blankpot);
00131     mmFakeFar.QuietModeOn();
00132     mmFakeFar.ConfigForNonStandard();
00133     mmFakeFar.SetMaximumEnergy(49.999);
00134  
00135     NuMMParameters mmPars;
00136     mmPars.Dm2(dm2);
00137     mmPars.Epsilon(epsilon);
00138     mmPars.Sn2(sn2);
00139     mmPars.Dm2Bar(dm2bar);
00140     mmPars.Sn2Bar(sn2bar);
00141     
00142     // Clear any existing far detector spectra
00143     if (fFDDataPQ) delete fFDDataPQ; fFDDataPQ = 0;
00144     if (fFDDataNQ) delete fFDDataNQ; fFDDataNQ = 0;
00145 
00146     // Grab the extrapolations
00147     // NuMatrixSpectrum *nqms = 0;
00148     // NuMatrixSpectrum *pqms = 0;
00149     mmFakeFar.MakeFDPredNoPair(mmPars, &fFDDataNQ, &fFDDataPQ);
00150     
00151     // Rebuild the internal objects
00152     Rebuild();
00153 }

const NuMatrixSpectrum& NuEZFitterNSI::NDDataNQ (  )  const [inline]

Returns the NQ Near detector spectrum.

Definition at line 108 of file NuEZFitterNSI.h.

References fNDDataNQ.

00108 { return *fNDDataNQ; }

const NuMatrixSpectrum& NuEZFitterNSI::NDDataPQ (  )  const [inline]

Returns the PQ Near detector spectrum.

Definition at line 110 of file NuEZFitterNSI.h.

References fNDDataPQ.

00110 { return *fNDDataPQ; }

NuMatrixSpectrum NuEZFitterNSI::PredictionNQ ( const NuMMParameters params  )  const

Generates an NQ prediction.

Definition at line 305 of file NuEZFitterNSI.cxx.

References fRun, and NuMMRunNuBar::MakeFDPredNuMu().

00306 {
00307   // Generate a prediction and return it in a memory-safe way
00308   NuMatrixSpectrum *pred = fRun->MakeFDPredNuMu(params);
00309   NuMatrixSpectrum ret(*pred);
00310   if (pred) delete pred; pred = 0;
00311   
00312   return ret;
00313 }

NuMatrixSpectrum NuEZFitterNSI::PredictionNQ ( Double_t  dm2bar,
Double_t  epsilon,
Double_t  sn2bar = 1.0,
Double_t  dm2 = 2.4e-3,
Double_t  sn2 = 1.0 
) const

Generates an NQ prediction.

Definition at line 277 of file NuEZFitterNSI.cxx.

References NuMMParameters::Dm2(), NuMMParameters::Dm2Bar(), NuMMParameters::Epsilon(), NuMMParameters::Sn2(), and NuMMParameters::Sn2Bar().

00280 {
00281   NuMMParameters mmPars;
00282   mmPars.Dm2(dm2);
00283   mmPars.Epsilon(epsilon);
00284   mmPars.Sn2(sn2);
00285   mmPars.Dm2Bar(dm2bar);
00286   mmPars.Sn2Bar(sn2bar);
00287   
00288   return PredictionNQ(mmPars);
00289 }

NuMatrixSpectrum NuEZFitterNSI::PredictionPQ ( const NuMMParameters params  )  const

Generates an PQ prediction.

Definition at line 315 of file NuEZFitterNSI.cxx.

References fRun, and NuMMRunNuBar::MakeFDPredNuBar().

00316 {
00317   // Generate a prediction and return it in a memory-safe way
00318   NuMatrixSpectrum *pred = fRun->MakeFDPredNuBar(params);
00319   NuMatrixSpectrum ret(*pred);
00320   if (pred) delete pred; pred = 0;
00321   
00322   return ret;
00323 }

NuMatrixSpectrum NuEZFitterNSI::PredictionPQ ( Double_t  dm2bar,
Double_t  epsilon,
Double_t  sn2bar = 1.0,
Double_t  dm2 = 2.4e-3,
Double_t  sn2 = 1.0 
) const

Generates an PQ prediction.

Definition at line 291 of file NuEZFitterNSI.cxx.

References NuMMParameters::Dm2(), NuMMParameters::Dm2Bar(), NuMMParameters::Epsilon(), NuMMParameters::Sn2(), and NuMMParameters::Sn2Bar().

00294 {
00295   NuMMParameters mmPars;
00296   mmPars.Dm2(dm2);
00297   mmPars.Epsilon(epsilon);
00298   mmPars.Sn2(sn2);
00299   mmPars.Dm2Bar(dm2bar);
00300   mmPars.Sn2Bar(sn2bar);
00301   
00302   return PredictionPQ(mmPars);
00303 }

void NuEZFitterNSI::Rebuild ( void   )  [private]

Rebuilds the internal objects.

Definition at line 95 of file NuEZFitterNSI.cxx.

References NuMMRun::ConfigForNonStandard(), fFDDataNQ, fFDDataPQ, fFitter, fHelper, fNDDataNQ, fNDDataPQ, fRun, Msg::kWarning, MSG, NuSystFitter::push_back(), and NuMMRun::SetMaximumEnergy().

Referenced by MakeFDData(), ScaleToPot(), SetPoT(), UseFDData(), and UseFDFakeData().

00096 {
00097   // Check the needed plots exist
00098   if (!(fHelper || fNDDataNQ || fNDDataPQ || fFDDataNQ || fFDDataPQ)) {
00099     // We don't have all the required plots - just return without doing anything
00100     MSG("NuEZFitterNSI",Msg::kWarning) << "Rebuild() was called without all the plots in place" << endl;
00101     return;
00102   }
00103   
00104   // Delete the old objects if necessary
00105   if (fRun) delete fRun; fRun = 0;
00106   if (fFitter) delete fFitter; fFitter = 0;
00107   
00108   // Build the run object
00109   // Use a different initialisation if we have no far detector data
00110   if (!(fFDDataPQ && fFDDataNQ)) {
00111     fRun = new NuMMRunFCNSINubar(fHelper, fNDDataNQ, fNDDataPQ, 0);
00112   } else {
00113     fRun = new NuMMRunFCNSINubar(fHelper, fNDDataNQ, fNDDataPQ, fFDDataNQ, fFDDataPQ);
00114   }
00115 
00116   // Setup for non-standard oscilations
00117   fRun->ConfigForNonStandard();
00118   // Limit the maximum fitting energy
00119   fRun->SetMaximumEnergy(49.99999);
00120   
00121   // And the fitter
00122   fFitter = new NuSystFitter();
00123   fFitter->push_back(fRun);
00124 }

NuMMRunFCNSINubar* NuEZFitterNSI::Run (  )  [inline]

Returns a pointer to the run object.

Definition at line 105 of file NuEZFitterNSI.h.

References fRun.

00105 { return fRun; }

void NuEZFitterNSI::ScaleToPot ( Double_t  POT  ) 

Scale the value of the far detector POT.

Definition at line 238 of file NuEZFitterNSI.cxx.

References fFDDataNQ, fFDDataPQ, Msg::kWarning, MSG, Rebuild(), and NuMatrix1D::ScaleToPOT().

00239 {
00240     // If we don't have far detector spectra,
00241     if (!fFDDataPQ || !fFDDataNQ) {
00242         MSG("NuEZFitterNSI",Msg::kWarning) << "No far detector spectra exists. Cannot rescale pot." << endl;
00243         return;
00244     } else {
00245         fFDDataPQ->ScaleToPOT(POT);
00246         fFDDataNQ->ScaleToPOT(POT);
00247     }
00248     
00249     // Far detector spectra have changed... rebuild
00250     Rebuild();
00251 }

void NuEZFitterNSI::SetPoT ( Double_t  POT  ) 

Set's the value of the far detector POT.

Definition at line 216 of file NuEZFitterNSI.cxx.

References fFDDataNQ, fFDDataPQ, fNDDataNQ, fNDDataPQ, Msg::kWarning, MSG, Rebuild(), NuMatrix::ResetPOT(), and NuMatrixSpectrum::Spectrum().

00217 {
00218   // If we don't have far detector spectra,
00219   if (!fFDDataPQ || !fFDDataNQ) {
00220     MSG("NuEZFitterNSI",Msg::kWarning) << "No far detector spectra exists. Creating empty spectra" << endl;
00221     // In case we somehow have one of the two
00222     if (fFDDataPQ) delete fFDDataPQ; fFDDataPQ = 0;
00223     if (fFDDataNQ) delete fFDDataPQ; fFDDataPQ = 0;
00224     
00225     // Use the ND data histograms - we know what extrapolator we are using at all times
00226     // so we know that the binning will be the same
00227     fFDDataPQ = new NuMatrixSpectrum(*fNDDataPQ->Spectrum(), POT);
00228     fFDDataNQ = new NuMatrixSpectrum(*fNDDataNQ->Spectrum(), POT);
00229   } else {
00230     fFDDataPQ->ResetPOT(POT);
00231     fFDDataNQ->ResetPOT(POT);
00232   }
00233 
00234   // Far detector spectra have changed... rebuild
00235   Rebuild();
00236 }

void NuEZFitterNSI::UseFDData ( const NuMatrixSpectrum fdNQdata,
const NuMatrixSpectrum fdPQdata 
)

Uses an exiting spectrum as far detector data.

Definition at line 169 of file NuEZFitterNSI.cxx.

References fFDDataNQ, fFDDataPQ, and Rebuild().

00170 {
00171   // Clear any existing far detector spectra
00172   if (fFDDataPQ) delete fFDDataPQ; fFDDataPQ = 0;
00173   if (fFDDataNQ) delete fFDDataNQ; fFDDataNQ = 0;
00174   
00175   fFDDataNQ = new NuMatrixSpectrum(fdNQdata);
00176   fFDDataPQ = new NuMatrixSpectrum(fdPQdata);
00177   
00178   // Now rebuild the fitters
00179   Rebuild();
00180 }

void NuEZFitterNSI::UseFDData ( std::string  FardetData  ) 

Uses an existing Far detector data spectrum, by loading from file.

void NuEZFitterNSI::UseFDFakeData ( Double_t  POT,
std::string  FardetData,
std::string  FarDetTauData 
)

Uses an existing far detector fake-data spectrum.

Definition at line 182 of file NuEZFitterNSI.cxx.

References NuMatrix1D::Add(), fFDDataNQ, fFDDataPQ, NuMatrix::GetPOT(), Msg::kInfo, Msg::kWarning, MSG, Rebuild(), and NuMatrix1D::ScaleToPOT().

00183 {
00184   // Clear any existing far detector spectra
00185   if (fFDDataPQ) delete fFDDataPQ; fFDDataPQ = 0;
00186   if (fFDDataNQ) delete fFDDataNQ; fFDDataNQ = 0;
00187   
00188   // Combine the fake far data and taudata then use as the spectrum
00189   MSG("NuEZFitterNSI",Msg::kInfo) << "Reading Far detector fake-data " << FardetData << endl;
00190   MSG("NuEZFitterNSI",Msg::kInfo) << "Reading Far detector fake-Tau data " << FarDetTauData << endl;
00191   
00192   NuMatrixSpectrum *fdDataPQ = new NuMatrixSpectrum(FardetData, "RecoEnergyPQ_ND");
00193   NuMatrixSpectrum *fdDataNQ = new NuMatrixSpectrum(FardetData, "RecoEnergy_ND");
00194   NuMatrixSpectrum *fdTauDataPQ = new NuMatrixSpectrum(FarDetTauData, "RecoEnergyPQ_ND");
00195   NuMatrixSpectrum *fdTauDataNQ = new NuMatrixSpectrum(FarDetTauData, "RecoEnergy_ND");
00196 
00197   if (fdDataPQ->GetPOT() < POT || fdTauDataPQ->GetPOT() < POT) {
00198     MSG("NuEZFitterNSI",Msg::kWarning) << "Fake Data files have lower POT than requested - scaling data up" << endl;
00199   }
00200   
00201   fdDataPQ->ScaleToPOT(POT);
00202   fdDataNQ->ScaleToPOT(POT);
00203   fdTauDataPQ->ScaleToPOT(POT);
00204   fdTauDataNQ->ScaleToPOT(POT);
00205   
00206   fdDataPQ->Add(*fdTauDataPQ);
00207   fdDataNQ->Add(*fdTauDataNQ);
00208   
00209   fFDDataNQ = fdDataNQ;
00210   fFDDataPQ = fdDataPQ;
00211   
00212   // Rebuild the internal objects
00213   Rebuild();
00214 }


Member Data Documentation

Definition at line 149 of file NuEZFitterNSI.h.

Referenced by Fit(), FitResult(), Init(), NuEZFitterNSI(), and ~NuEZFitterNSI().

The fitter object.

Definition at line 146 of file NuEZFitterNSI.h.

Referenced by Chi2(), Fit(), Fitter(), Init(), NuEZFitterNSI(), Rebuild(), and ~NuEZFitterNSI().

The MM helper object.

Definition at line 141 of file NuEZFitterNSI.h.

Referenced by Helper(), Init(), MakeFDData(), NuEZFitterNSI(), Rebuild(), and ~NuEZFitterNSI().

NQ ND Spectrum.

Definition at line 134 of file NuEZFitterNSI.h.

Referenced by Init(), MakeFDData(), NDDataNQ(), NuEZFitterNSI(), Rebuild(), SetPoT(), and ~NuEZFitterNSI().

PQ ND Spectrum.

Definition at line 133 of file NuEZFitterNSI.h.

Referenced by Init(), MakeFDData(), NDDataPQ(), NuEZFitterNSI(), Rebuild(), SetPoT(), and ~NuEZFitterNSI().

The run object that does the extrapolation.

Definition at line 144 of file NuEZFitterNSI.h.

Referenced by Init(), NuEZFitterNSI(), PredictionNQ(), PredictionPQ(), Rebuild(), Run(), and ~NuEZFitterNSI().


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1