NuFCMultiDelegate Class Reference

#include <NuFCMultiDelegate.h>

Inheritance diagram for NuFCMultiDelegate:
NuFCDelegate

List of all members.

Public Member Functions

 NuFCMultiDelegate (const NuFCRunner &runner)
virtual ~NuFCMultiDelegate ()
void push_back (NuFCDelegate *delegate)
virtual void StartRunning (Int_t experiments)
virtual void EndExperiment (void)
 Called when an experiment has finished.
virtual void EndRunning (void)
virtual void StartExperiment (Int_t experiment)
 Called when we start a new experiment.
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

 NuFCMultiDelegate ()

Private Attributes

std::vector< NuFCDelegate * > fDelegates

Detailed Description

Definition at line 6 of file NuFCMultiDelegate.h.


Constructor & Destructor Documentation

NuFCMultiDelegate::NuFCMultiDelegate ( const NuFCRunner runner  ) 

Definition at line 19 of file NuFCMultiDelegate.cxx.

00020   : NuFCDelegate(runner)
00021 {
00022   
00023 }

NuFCMultiDelegate::~NuFCMultiDelegate (  )  [virtual]

Definition at line 27 of file NuFCMultiDelegate.cxx.

00028 {
00029   
00030 }

NuFCMultiDelegate::NuFCMultiDelegate (  )  [inline, protected]

Definition at line 52 of file NuFCMultiDelegate.h.

00052 {}


Member Function Documentation

void NuFCMultiDelegate::EndExperiment ( void   )  [virtual]

Called when an experiment has finished.

Reimplemented from NuFCDelegate.

Definition at line 47 of file NuFCMultiDelegate.cxx.

References fDelegates, and it.

00048 {
00049   vector<NuFCDelegate*>::iterator it;
00050   for (it = fDelegates.begin(); it != fDelegates.end(); ++it)
00051   {
00052     (*it)->EndExperiment();
00053   }
00054 }

void NuFCMultiDelegate::EndRunning ( void   )  [virtual]

Reimplemented from NuFCDelegate.

Definition at line 59 of file NuFCMultiDelegate.cxx.

References fDelegates, and it.

00060 {
00061   vector<NuFCDelegate*>::iterator it;
00062   for (it = fDelegates.begin(); it != fDelegates.end(); ++it)
00063   {
00064     (*it)->EndRunning();
00065   }
00066 }

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

Called once we have generated a best fit.

Reimplemented from NuFCDelegate.

Definition at line 124 of file NuFCMultiDelegate.cxx.

References fDelegates, and it.

00125 {
00126   vector<NuFCDelegate*>::iterator it;
00127   for (it = fDelegates.begin(); it != fDelegates.end(); ++it)
00128   {
00129     (*it)->GotBestFit(bestFit, chi2);
00130   }
00131 }

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

Called when we have the final answer.

Reimplemented from NuFCDelegate.

Definition at line 137 of file NuFCMultiDelegate.cxx.

References fDelegates, and it.

00138 {
00139   vector<NuFCDelegate*>::iterator it;
00140   for (it = fDelegates.begin(); it != fDelegates.end(); ++it)
00141   {
00142     (*it)->GotDeltaChi2(bestFit, deltaChi2);
00143   }
00144 }

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

Called when we have got the FD matrix.

Reimplemented from NuFCDelegate.

Definition at line 98 of file NuFCMultiDelegate.cxx.

References fDelegates, and it.

00099 {
00100   vector<NuFCDelegate*>::iterator it;
00101   for (it = fDelegates.begin(); it != fDelegates.end(); ++it)
00102   {
00103     (*it)->GotFDSpectrum(run, shifts, fdMatrix);
00104   }
00105 }

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

A generic histogram passthrough for writing.

Reimplemented from NuFCDelegate.

Definition at line 150 of file NuFCMultiDelegate.cxx.

References fDelegates, and it.

00151 {
00152   vector<NuFCDelegate*>::iterator it;
00153   for (it = fDelegates.begin(); it != fDelegates.end(); ++it)
00154   {
00155     (*it)->GotHistogram(name, matrix);
00156   }
00157 }

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

Called when we have got the ND matrix.

Reimplemented from NuFCDelegate.

Definition at line 85 of file NuFCMultiDelegate.cxx.

References fDelegates, and it.

00086 {
00087   vector<NuFCDelegate*>::iterator it;
00088   for (it = fDelegates.begin(); it != fDelegates.end(); ++it)
00089   {
00090     (*it)->GotNDSpectrum(run, shifts, ndMatrix);
00091   }
00092 }

void NuFCMultiDelegate::push_back ( NuFCDelegate delegate  )  [inline]

Definition at line 14 of file NuFCMultiDelegate.h.

References fDelegates.

00014                                          {
00015     if (delegate) fDelegates.push_back(delegate);
00016   };

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

Called when we start a new experiment.

Reimplemented from NuFCDelegate.

Definition at line 72 of file NuFCMultiDelegate.cxx.

References fDelegates, and it.

00073 {
00074   vector<NuFCDelegate*>::iterator it;
00075   for (it = fDelegates.begin(); it != fDelegates.end(); ++it)
00076   {
00077     (*it)->StartExperiment(experiment);
00078   }
00079 }

void NuFCMultiDelegate::StartFitting ( void   )  [virtual]

Called when we are about to start fitting.

Reimplemented from NuFCDelegate.

Definition at line 111 of file NuFCMultiDelegate.cxx.

References fDelegates, and it.

00112 {
00113   vector<NuFCDelegate*>::iterator it;
00114   for (it = fDelegates.begin(); it != fDelegates.end(); ++it)
00115   {
00116     (*it)->StartFitting();
00117   }
00118 }

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

Called when we start running experiments.

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

Reimplemented from NuFCDelegate.

Definition at line 36 of file NuFCMultiDelegate.cxx.

References fDelegates, and it.

00037 {
00038   vector<NuFCDelegate*>::iterator it;
00039   for (it = fDelegates.begin(); it != fDelegates.end(); ++it)
00040   {
00041     (*it)->StartRunning(experiments);
00042   }
00043 }

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

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

Reimplemented from NuFCDelegate.

Definition at line 161 of file NuFCMultiDelegate.cxx.

References fDelegates, and it.

00162 {
00163   vector<NuFCDelegate*>::iterator it;
00164   for (it = fDelegates.begin(); it != fDelegates.end(); ++it)
00165   {
00166     (*it)->UseFitter(fitter);
00167   }
00168 }


Member Data Documentation


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1