NuFCDelegate Class Reference

#include <NuFCDelegate.h>

Inheritance diagram for NuFCDelegate:
NuFCDelegateArchiver NuFCDelegateOutput NuFCDelegateWriterLegacy NuFCMultiDelegate

List of all members.

Public Member Functions

 NuFCDelegate (const NuFCRunner &runner)
virtual ~NuFCDelegate ()
virtual void StartRunning (Int_t experiments)
virtual void EndRunning (void)
virtual void StartExperiment (Int_t experiment)
 Called when we start a new experiment.
virtual void EndExperiment (void)
 Called when an experiment has finished.
virtual void GotNDSpectrum (const NuFCRunInfo &run, const NuSystematicShifts &shifts, const NuMatrix *ndMatrix)
 Called when we have got the ND matrix.
virtual void GotFDSpectrum (const NuFCRunInfo &run, const NuSystematicShifts &shifts, const NuMatrix *fdMatrix)
 Called when we have got the FD matrix.
virtual void StartFitting (void)
 Called when we are about to start fitting.
virtual void GotBestFit (const NuMMParameters &bestFit, Double_t chi2)
 Called once we have generated a best fit.
virtual void GotDeltaChi2 (const NuMMParameters &bestFit, Double_t deltaChi2)
 Called when we have the final answer.
virtual void GotHistogram (TString name, const NuMatrix *matrix)
 A generic histogram passthrough for writing.
virtual void UseFitter (NuSystFitter &fitter)
 Called to give the delegate a fitter object so it can do what it wants.

Protected Member Functions

 NuFCDelegate ()

Protected Attributes

const NuFCRunnerfRunner

Private Attributes

std::vector< ResultfResults

Detailed Description

Delegate class for hooking into the FC routine. Various functions in this class are called at different stages in the feldman-cousins procedure. The intention is that custom storage and logging behaviour can be implemented without having to alter the existing classes

Definition at line 34 of file NuFCDelegate.h.


Constructor & Destructor Documentation

NuFCDelegate::NuFCDelegate (  )  [inline, protected]

Definition at line 40 of file NuFCDelegate.h.

00040 {}

NuFCDelegate::NuFCDelegate ( const NuFCRunner runner  ) 

Definition at line 28 of file NuFCDelegate.cxx.

00028                                                    : fRunner(&runner)
00029 {
00030   
00031 }

NuFCDelegate::~NuFCDelegate (  )  [virtual]

Definition at line 35 of file NuFCDelegate.cxx.

00036 {
00037 
00038 }


Member Function Documentation

void NuFCDelegate::EndExperiment ( void   )  [virtual]

Called when an experiment has finished.

Reimplemented in NuFCDelegateArchiver, and NuFCMultiDelegate.

Definition at line 121 of file NuFCDelegate.cxx.

Referenced by NuFCRunner::RunExperiments().

00122 {
00123   
00124 }

void NuFCDelegate::EndRunning ( void   )  [virtual]

Reimplemented in NuFCDelegateWriterLegacy, and NuFCMultiDelegate.

Definition at line 128 of file NuFCDelegate.cxx.

Referenced by NuFCRunner::RunExperiments().

00129 {
00130 
00131 }

void NuFCDelegate::GotBestFit ( const NuMMParameters bestFit,
Double_t  chi2 
) [virtual]

Called once we have generated a best fit.

Reimplemented in NuFCDelegateOutput, and NuFCMultiDelegate.

Definition at line 100 of file NuFCDelegate.cxx.

Referenced by NuFCRunner::RunExperiments().

00101 {
00102 
00103 }

void NuFCDelegate::GotDeltaChi2 ( const NuMMParameters bestFit,
Double_t  deltaChi2 
) [virtual]

Called when we have the final answer.

Reimplemented in NuFCDelegateArchiver, NuFCDelegateWriterLegacy, NuFCDelegateOutput, and NuFCMultiDelegate.

Definition at line 107 of file NuFCDelegate.cxx.

Referenced by NuFCRunner::RunExperiments().

00108 {
00109 
00110 }

void NuFCDelegate::GotFDSpectrum ( const NuFCRunInfo run,
const NuSystematicShifts shifts,
const NuMatrix fdMatrix 
) [virtual]

Called when we have got the FD matrix.

Reimplemented in NuFCDelegateArchiver, and NuFCMultiDelegate.

Definition at line 71 of file NuFCDelegate.cxx.

References NuFCRunInfo::GetName(), Msg::kError, and MSG.

Referenced by NuFCRunner::GenerateExperiment().

00074 {
00075   if (!fdMatrix) {
00076     MSG("NuFCDelegate",Msg::kError)
00077       << "Generated FD Spectrum for run: " << run.GetName()
00078       << " is blank." << endl;
00079     return;
00080   }
00081 
00082 }

void NuFCDelegate::GotHistogram ( TString  name,
const NuMatrix matrix 
) [virtual]

A generic histogram passthrough for writing.

Reimplemented in NuFCDelegateArchiver, and NuFCMultiDelegate.

Definition at line 86 of file NuFCDelegate.cxx.

Referenced by NuFCExperimentGenerator::GotHistogram(), and NuFCRunner::ProcessPredictions().

00087 {
00088 
00089 }

void NuFCDelegate::GotNDSpectrum ( const NuFCRunInfo run,
const NuSystematicShifts shifts,
const NuMatrix ndMatrix 
) [virtual]

Called when we have got the ND matrix.

Reimplemented in NuFCDelegateArchiver, and NuFCMultiDelegate.

Definition at line 56 of file NuFCDelegate.cxx.

References NuFCRunInfo::GetName(), Msg::kError, and MSG.

Referenced by NuFCRunner::GenerateExperiment().

00059 {
00060   if (!ndMatrix) {
00061     MSG("NuFCDelegate",Msg::kError)
00062       << "Generated ND Spectrum for run: " << run.GetName()
00063       << " is blank." << endl;
00064     return;
00065   }
00066 
00067 }

void NuFCDelegate::StartExperiment ( Int_t  experiment  )  [virtual]

Called when we start a new experiment.

Reimplemented in NuFCDelegateArchiver, NuFCDelegateOutput, and NuFCMultiDelegate.

Definition at line 49 of file NuFCDelegate.cxx.

Referenced by NuFCRunner::RunExperiments().

00050 {
00051 
00052 }

void NuFCDelegate::StartFitting ( void   )  [virtual]

Called when we are about to start fitting.

Reimplemented in NuFCMultiDelegate.

Definition at line 93 of file NuFCDelegate.cxx.

Referenced by NuFCRunner::RunExperiments().

00094 {
00095 
00096 }

void NuFCDelegate::StartRunning ( Int_t  experiments  )  [virtual]

Called when we start running experiments.

Parameters:
experiments How many experiments we have been asked to run

Reimplemented in NuFCDelegateWriterLegacy, NuFCDelegateOutput, and NuFCMultiDelegate.

Definition at line 42 of file NuFCDelegate.cxx.

Referenced by NuFCRunner::RunExperiments().

00043 {
00044 
00045 }

void NuFCDelegate::UseFitter ( NuSystFitter fitter  )  [virtual]

Called to give the delegate a fitter object so it can do what it wants.

Reimplemented in NuFCDelegateArchiver, and NuFCMultiDelegate.

Definition at line 114 of file NuFCDelegate.cxx.

Referenced by NuFCRunner::RunExperiments().

00115 {
00116     // cout << "BASE Delegate has been handed fitter" << endl;
00117 }


Member Data Documentation

std::vector<Result> NuFCDelegate::fResults [private]

Reimplemented in NuFCDelegateWriterLegacy.

Definition at line 36 of file NuFCDelegate.h.

const NuFCRunner* NuFCDelegate::fRunner [protected]

Definition at line 42 of file NuFCDelegate.h.

Referenced by NuFCDelegateArchiver::UseFitter().


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1