Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

NuMMRunNuBar Class Reference

An extension of NuMMRun that sits below NuMMRunTransition and NuMMRunFC so they can both be used interchangeably in NuFCExperimentFactory. More...

#include <NuMMRunNuBar.h>

Inheritance diagram for NuMMRunNuBar:

NuMMRun NuMMRunFC NuMMRunTransition List of all members.

Public Member Functions

 NuMMRunNuBar ()
 NuMMRunNuBar (NuMMHelperPRL *helper, NuHistInterpolator *ndData, NuHistInterpolator *fdData)
virtual ~NuMMRunNuBar ()
virtual const std::pair< NuMatrixSpectrum,
NuMatrixSpectrum
MakeFDPred (const NuMMParameters &pars)=0
 Return a pair (NQ,PQ) of NuMatrixSpectra of the far detector prediction with oscillation parameters described in pars. Pure virtual.
virtual const NuMatrixSpectrum TrueComponents (const NuMMParameters &pars, Sample::Sample_t s)=0
 Return the individual true energy prediction of the far detector sub sample s with oscillation parameters described in pars. Pure virtual.
virtual NuMatrixSpectrumMakeFDPredNuMu (const NuMMParameters &pars)
 Get just the NuMu component of the prediction with oscillations parameters pars.
virtual NuMatrixSpectrumMakeFDPredNuBar (const NuMMParameters &pars)
 Get just the NuMuBar component of the prediction with oscillations parameters pars.
virtual void MakeFDPredNoPair (const NuMMParameters &pars, NuMatrixSpectrum **nu, NuMatrixSpectrum **nubar)
 Get the elements of the FD prediction without needing to use stl pair.
virtual const NuMatrixSpectrumGetNDNuData () const
 Get a const pointer to the ND Neutrino data spectrum.
virtual const NuMatrixSpectrumGetNDBarData () const
 Get a const pointer to the FD Neutrino data spectrum.
virtual NuMatrixSpectrumModifyNDNuData ()
 Get a copy of the ND Neutrino data spectrum that can be modified to introduce systematic effects.
virtual NuMatrixSpectrumModifyNDBarData ()
 Get a copy of the ND Antineutrino data spectrum that can be modified to introduce systematic effects.
virtual void ResetNDNuData ()
 Reset the ND Neutrino data back to the backup.
virtual void ResetNDBarData ()
 Reset the ND Neutrino data back to the backup.
virtual NuMMHelperCPTGetHelper ()
 Get a pointer to the helper object.

Protected Attributes

NuMatrixSpectrumfndNuData
NuMatrixSpectrumfndBarData
NuMatrixSpectrumffdNuData
NuMatrixSpectrumffdBarData
NuMatrixSpectrumfndNuData_orig
NuMatrixSpectrumfndBarData_orig
NuMMHelperCPTfHelper
Bool_t fCached

Static Protected Attributes

int counter = 0

Detailed Description

An extension of NuMMRun that sits below NuMMRunTransition and NuMMRunFC so they can both be used interchangeably in NuFCExperimentFactory.

Author:
Alex Himmel, Last checkin
Author
ahimmel
Version:
Revision
1.11
Date:
Date
2010/01/13 21:41:34

Definition at line 52 of file NuMMRunNuBar.h.


Constructor & Destructor Documentation

NuMMRunNuBar::NuMMRunNuBar  ) 
 

Definition at line 24 of file NuMMRunNuBar.cxx.

00025   : NuMMRun()
00026 {
00027   fCached = false;
00028   
00029   fndNuData_orig = 0;
00030   fndBarData_orig = 0;
00031 }

NuMMRunNuBar::NuMMRunNuBar NuMMHelperPRL helper,
NuHistInterpolator ndData,
NuHistInterpolator fdData
 

Definition at line 34 of file NuMMRunNuBar.cxx.

References fCached, fndBarData_orig, and fndNuData_orig.

00037   : NuMMRun(helper, ndData, fdData)
00038 {
00039   fCached = false;
00040   
00041   fndNuData_orig = 0;
00042   fndBarData_orig = 0;
00043 }

virtual NuMMRunNuBar::~NuMMRunNuBar  )  [inline, virtual]
 

Definition at line 60 of file NuMMRunNuBar.h.

00060 {};


Member Function Documentation

NuMMHelperCPT * NuMMRunNuBar::GetHelper  )  [virtual]
 

Get a pointer to the helper object.

The caching flag is set to false to the prediction will be recached with the new effects introduced taken into account.

Definition at line 197 of file NuMMRunNuBar.cxx.

References fCached.

00198 {
00199   fCached = false;
00200   return fHelper;
00201 }

virtual const NuMatrixSpectrum* NuMMRunNuBar::GetNDBarData  )  const [inline, virtual]
 

Get a const pointer to the FD Neutrino data spectrum.

Definition at line 76 of file NuMMRunNuBar.h.

Referenced by NuFCExperimentFactory::GenerateND().

00076 {return fndBarData;};

virtual const NuMatrixSpectrum* NuMMRunNuBar::GetNDNuData  )  const [inline, virtual]
 

Get a const pointer to the ND Neutrino data spectrum.

Definition at line 74 of file NuMMRunNuBar.h.

Referenced by NuFCExperimentFactory::GenerateND().

00074 {return fndNuData;};

virtual const std::pair<NuMatrixSpectrum,NuMatrixSpectrum> NuMMRunNuBar::MakeFDPred const NuMMParameters pars  )  [pure virtual]
 

Return a pair (NQ,PQ) of NuMatrixSpectra of the far detector prediction with oscillation parameters described in pars. Pure virtual.

Implemented in NuMMRunFC, and NuMMRunTransition.

Referenced by MakeFDPredNoPair(), MakeFDPredNuBar(), and MakeFDPredNuMu().

void NuMMRunNuBar::MakeFDPredNoPair const NuMMParameters pars,
NuMatrixSpectrum **  nu,
NuMatrixSpectrum **  nubar
[virtual]
 

Get the elements of the FD prediction without needing to use stl pair.

Parameters:
pars The oscillation parameters desired.
nu Will be set to the neutrino spectrum.
nubar Will be set to the antineutrino spectrum.

Definition at line 53 of file NuMMRunNuBar.cxx.

References MakeFDPred().

Referenced by NuEZFitter::MakeFDData().

00054 {
00055   pair<NuMatrixSpectrum, NuMatrixSpectrum> fits = MakeFDPred(pars);
00056   if (nu) *nu = new NuMatrixSpectrum(fits.first);
00057   if (nubar) *nubar = new NuMatrixSpectrum(fits.second);
00058 }

NuMatrixSpectrum * NuMMRunNuBar::MakeFDPredNuBar const NuMMParameters pars  )  [virtual]
 

Get just the NuMuBar component of the prediction with oscillations parameters pars.

Reimplemented in NuMMRunTransition.

Definition at line 73 of file NuMMRunNuBar.cxx.

References MakeFDPred().

Referenced by NuEZFitter::PredictionPQ().

00074 {
00075   pair<NuMatrixSpectrum, NuMatrixSpectrum> fits = MakeFDPred(pars);
00076   return new NuMatrixSpectrum(fits.second);
00077 }

NuMatrixSpectrum * NuMMRunNuBar::MakeFDPredNuMu const NuMMParameters pars  )  [virtual]
 

Get just the NuMu component of the prediction with oscillations parameters pars.

Reimplemented in NuMMRunTransition.

Definition at line 64 of file NuMMRunNuBar.cxx.

References MakeFDPred().

Referenced by NuEZFitter::PredictionNQ().

00065 {
00066   pair<NuMatrixSpectrum, NuMatrixSpectrum> fits = MakeFDPred(pars);
00067   return new NuMatrixSpectrum(fits.first);
00068 }

NuMatrixSpectrum * NuMMRunNuBar::ModifyNDBarData  )  [virtual]
 

Get a copy of the ND Antineutrino data spectrum that can be modified to introduce systematic effects.

A backup copy is created when this method is called. The backup copy is restored by calling ResetNDBarData(). If ModifyNDBarData() is called without the nd data having been Reset, ResetNDBarData() is called and a warning is issued to prevent the backup spectrum from being overwritten.

The caching flag is set to false to the prediction will be recached with the new effects introduced taken into account.

ResetNDBarData

Definition at line 128 of file NuMMRunNuBar.cxx.

References fCached, fndBarData, fndBarData_orig, MAXMSG, and ResetNDBarData().

00129 {
00130   if (fndBarData_orig) {
00131     MAXMSG("NuMMRunNuBar",Msg::kWarning, 5) << "You did not reset the Bar data after modifying it.  Data should always be reset.  Doing so now." << endl;
00132     ResetNDBarData();
00133   }
00134 
00135   if (!fQuietMode) {MAXMSG("NuMMRunNuBar",Msg::kInfo, 5) << "Making a Bar backup copy." << endl;}
00136   
00137   // Backup the original object, create a new one for modifying
00138   fndBarData_orig = fndBarData;
00139   fndBarData = new NuMatrixSpectrum(*fndBarData);
00140   
00141   // Redo caching since the ND Data has changed
00142   fCached = false;
00143   return fndBarData;
00144 }

NuMatrixSpectrum * NuMMRunNuBar::ModifyNDNuData  )  [virtual]
 

Get a copy of the ND Neutrino data spectrum that can be modified to introduce systematic effects.

A backup copy is created when this method is called. The backup copy is restored by calling ResetNDNuData(). If ModifyNDNuData() is called without the nd data having been Reset, ResetNDNuData() is called and a warning is issued to prevent the backup spectrum from being overwritten.

The caching flag is set to false to the prediction will be recached with the new effects introduced taken into account.

ResetNDNuData

Definition at line 94 of file NuMMRunNuBar.cxx.

References fCached, fndNuData, fndNuData_orig, MAXMSG, and ResetNDNuData().

00095 {
00096   if (fndNuData_orig) {
00097     MAXMSG("NuMMRunNuBar",Msg::kWarning, 5) << "You did not reset the Nu data after modifying it.  Data should always be reset.  Doing so now." << endl;
00098     ResetNDNuData();
00099   }
00100 
00101   if (!fQuietMode) {MAXMSG("NuMMRunNuBar",Msg::kInfo, 5) << "Making a Nu backup copy." << endl;}
00102   
00103   // Backup the original object, create a new one for modifying
00104   fndNuData_orig = fndNuData;
00105   fndNuData = new NuMatrixSpectrum(*fndNuData);
00106   
00107   // Redo caching since the ND Data has changed
00108   fCached = false;
00109   
00110   return fndNuData;
00111 }

void NuMMRunNuBar::ResetNDBarData  )  [virtual]
 

Reset the ND Neutrino data back to the backup.

ModifyNDBarData

Definition at line 174 of file NuMMRunNuBar.cxx.

References fCached, fndBarData, fndBarData_orig, and MAXMSG.

Referenced by ModifyNDBarData().

00175 {
00176   if (fndBarData_orig) {
00177     if (!fQuietMode) {MAXMSG("NuMMRunNuBar",Msg::kInfo, 5) << "Reverting Bar to backup copy." << endl;}
00178     
00179     delete fndBarData;
00180     fndBarData = fndBarData_orig;
00181     fndBarData_orig = 0;
00182     
00183     // Redo caching since the ND Data has changed
00184     fCached = false;
00185   }
00186   else {
00187     MAXMSG("NuMMRunNuBar",Msg::kWarning, 5) << "Resetting unmodified Bars data.  Not harmful, just superfluous." << endl;
00188   }
00189 }

void NuMMRunNuBar::ResetNDNuData  )  [virtual]
 

Reset the ND Neutrino data back to the backup.

ModifyNDNuData

Definition at line 152 of file NuMMRunNuBar.cxx.

References fCached, fndNuData, fndNuData_orig, and MAXMSG.

Referenced by ModifyNDNuData().

00153 {
00154   if (fndNuData_orig) {
00155     if (!fQuietMode) {MAXMSG("NuMMRunNuBar",Msg::kInfo, 5) << "Reverting Nu to backup copy." << endl;}
00156     
00157     delete fndNuData;
00158     fndNuData = fndNuData_orig;
00159     fndNuData_orig = 0;
00160     
00161     // Redo caching since the ND Data has changed
00162     fCached = false;
00163   }
00164   else {
00165     MAXMSG("NuMMRunNuBar",Msg::kWarning, 5) << "Resetting unmodified Nu data.  Not harmful, just superfluous." << endl;
00166   }
00167 }

virtual const NuMatrixSpectrum NuMMRunNuBar::TrueComponents const NuMMParameters pars,
Sample::Sample_t  s
[pure virtual]
 

Return the individual true energy prediction of the far detector sub sample s with oscillation parameters described in pars. Pure virtual.

Referenced by NuFCExperimentFactory::GenerateNewExperiment().


Member Data Documentation

int NuMMRunNuBar::counter = 0 [static, protected]
 

Definition at line 21 of file NuMMRunNuBar.cxx.

Bool_t NuMMRunNuBar::fCached [protected]
 

Definition at line 104 of file NuMMRunNuBar.h.

Referenced by GetHelper(), ModifyNDBarData(), ModifyNDNuData(), NuMMRunNuBar(), ResetNDBarData(), and ResetNDNuData().

NuMatrixSpectrum* NuMMRunNuBar::ffdBarData [protected]
 

Definition at line 93 of file NuMMRunNuBar.h.

Referenced by NuMMRunFC::NuMMRunFC().

NuMatrixSpectrum* NuMMRunNuBar::ffdNuData [protected]
 

Definition at line 92 of file NuMMRunNuBar.h.

Referenced by NuMMRunFC::NuMMRunFC().

NuMMHelperCPT* NuMMRunNuBar::fHelper [protected]
 

Reimplemented from NuMMRun.

Definition at line 101 of file NuMMRunNuBar.h.

NuMatrixSpectrum* NuMMRunNuBar::fndBarData [protected]
 

Definition at line 91 of file NuMMRunNuBar.h.

Referenced by ModifyNDBarData(), NuMMRunFC::NuMMRunFC(), and ResetNDBarData().

NuMatrixSpectrum* NuMMRunNuBar::fndBarData_orig [protected]
 

Definition at line 97 of file NuMMRunNuBar.h.

Referenced by ModifyNDBarData(), NuMMRunNuBar(), and ResetNDBarData().

NuMatrixSpectrum* NuMMRunNuBar::fndNuData [protected]
 

Definition at line 90 of file NuMMRunNuBar.h.

Referenced by ModifyNDNuData(), NuMMRunFC::NuMMRunFC(), and ResetNDNuData().

NuMatrixSpectrum* NuMMRunNuBar::fndNuData_orig [protected]
 

Definition at line 96 of file NuMMRunNuBar.h.

Referenced by ModifyNDNuData(), NuMMRunNuBar(), and ResetNDNuData().


The documentation for this class was generated from the following files:
Generated on Mon Feb 15 11:09:54 2010 for loon by  doxygen 1.3.9.1