NuFCFittingInterface Class Reference

#include <NuFCFittingInterface.h>

Inheritance diagram for NuFCFittingInterface:
NuFCFitterNuMuBar

List of all members.

Public Member Functions

 NuFCFittingInterface (void)
virtual ~NuFCFittingInterface ()
virtual Bool_t Fit (void)
 Run the fitting routine. Returns true for success.
NuMMParameters GetFit (void)
 Retrieves the results of the fit.
void SetSystFitter (NuSystFitter *systfitter)
void SetSystFitter (std::auto_ptr< NuSystFitter > systFitter)
void AddRun (NuMMRun *run)
 Adds a run to the associated systfitter object.
NuSystFitterGetSystFitter (void)
 Retrieves the used NuSystFitter object.

Protected Attributes

NuMMParameters fBestFit
 The best fit parameters.

Private Attributes

NuSystFitterfSystFitter
 Pointer to an un-owned nusystfitter.
std::auto_ptr< NuSystFitterfInternalSystFitter
 Pointer to an internal, owned systfitter.

Detailed Description

Class to provide a universal interface for fitting

Definition at line 11 of file NuFCFittingInterface.h.


Constructor & Destructor Documentation

NuFCFittingInterface::NuFCFittingInterface ( void   ) 

Definition at line 17 of file NuFCFittingInterface.cxx.

References fInternalSystFitter.

00018   : fSystFitter(0)
00019 {
00020   // Create an internal-only systfitter object
00021   fInternalSystFitter.reset(new NuSystFitter);
00022 }

NuFCFittingInterface::~NuFCFittingInterface (  )  [virtual]

Definition at line 26 of file NuFCFittingInterface.cxx.

References fSystFitter.

00027 {
00028   fSystFitter = 0;
00029 }


Member Function Documentation

void NuFCFittingInterface::AddRun ( NuMMRun run  ) 

Adds a run to the associated systfitter object.

Definition at line 62 of file NuFCFittingInterface.cxx.

References GetSystFitter(), and NuSystFitter::push_back().

00063 {
00064   GetSystFitter()->push_back(run);
00065 }

Bool_t NuFCFittingInterface::Fit ( void   )  [virtual]

Run the fitting routine. Returns true for success.

Reimplemented in NuFCFitterNuMuBar.

Definition at line 52 of file NuFCFittingInterface.cxx.

References Msg::kWarning, and MAXMSG.

Referenced by NuFCRunner::RunFitter().

00053 {
00054   MAXMSG("NuFCFittingInterface",Msg::kWarning,5)
00055     << "Using blank fitter - fitting will not happen"
00056     << endl;
00057   return false;
00058 }

NuMMParameters NuFCFittingInterface::GetFit ( void   )  [inline]

Retrieves the results of the fit.

Definition at line 35 of file NuFCFittingInterface.h.

References fBestFit.

Referenced by NuFCRunner::RunFitter().

00035 { return fBestFit; }

NuSystFitter* NuFCFittingInterface::GetSystFitter ( void   )  [inline]

Retrieves the used NuSystFitter object.

Definition at line 46 of file NuFCFittingInterface.h.

References fInternalSystFitter, and fSystFitter.

Referenced by AddRun(), and NuFCFitterNuMuBar::Fit().

00046                                     {
00047     if (fSystFitter) return fSystFitter;
00048     return fInternalSystFitter.get();
00049   }

void NuFCFittingInterface::SetSystFitter ( std::auto_ptr< NuSystFitter systFitter  ) 

Definition at line 44 of file NuFCFittingInterface.cxx.

References fInternalSystFitter, and fSystFitter.

00045 {
00046   fSystFitter = 0;
00047   fInternalSystFitter = systFitter;
00048 }

void NuFCFittingInterface::SetSystFitter ( NuSystFitter systfitter  ) 

Sets the NuSystFitter object that is used by the class. This will erase any existing fitters

Definition at line 33 of file NuFCFittingInterface.cxx.

References fInternalSystFitter, and fSystFitter.

Referenced by NuFCRunner::RunFitter().

00034 {
00035   // Clear the internal fitter and reset the external pointer
00036   fInternalSystFitter.reset();
00037   fSystFitter = systfitter;
00038   // If this was null, create a new internal
00039   if (!fSystFitter) fInternalSystFitter.reset(new NuSystFitter);
00040 }


Member Data Documentation

The best fit parameters.

Definition at line 25 of file NuFCFittingInterface.h.

Referenced by NuFCFitterNuMuBar::Fit(), and GetFit().

Pointer to an internal, owned systfitter.

Definition at line 21 of file NuFCFittingInterface.h.

Referenced by GetSystFitter(), NuFCFittingInterface(), and SetSystFitter().

Pointer to an un-owned nusystfitter.

Definition at line 19 of file NuFCFittingInterface.h.

Referenced by GetSystFitter(), SetSystFitter(), and ~NuFCFittingInterface().


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

Generated on 21 Oct 2017 for loon by  doxygen 1.6.1