#include <NuMMRunNuBar.h>
Inheritance diagram for NuMMRunNuBar:

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 NuMatrixSpectrum * | MakeFDPredNuMu (const NuMMParameters &pars) |
| Get just the NuMu component of the prediction with oscillations parameters pars. | |
| virtual NuMatrixSpectrum * | MakeFDPredNuBar (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 NuMatrixSpectrum * | GetNDNuData () const |
| Get a const pointer to the ND Neutrino data spectrum. | |
| virtual const NuMatrixSpectrum * | GetNDBarData () const |
| Get a const pointer to the FD Neutrino data spectrum. | |
| virtual NuMatrixSpectrum * | ModifyNDNuData () |
| Get a copy of the ND Neutrino data spectrum that can be modified to introduce systematic effects. | |
| virtual NuMatrixSpectrum * | ModifyNDBarData () |
| 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 NuMMHelperCPT * | GetHelper () |
| Get a pointer to the helper object. | |
Protected Attributes | |
| NuMatrixSpectrum * | fndNuData |
| NuMatrixSpectrum * | fndBarData |
| NuMatrixSpectrum * | ffdNuData |
| NuMatrixSpectrum * | ffdBarData |
| NuMatrixSpectrum * | fndNuData_orig |
| NuMatrixSpectrum * | fndBarData_orig |
| NuMMHelperCPT * | fHelper |
| Bool_t | fCached |
Static Protected Attributes | |
| int | counter = 0 |
Definition at line 52 of file NuMMRunNuBar.h.
|
|
Definition at line 24 of file NuMMRunNuBar.cxx. 00025 : NuMMRun() 00026 { 00027 fCached = false; 00028 00029 fndNuData_orig = 0; 00030 fndBarData_orig = 0; 00031 }
|
|
||||||||||||||||
|
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 }
|
|
|
Definition at line 60 of file NuMMRunNuBar.h. 00060 {};
|
|
|
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 }
|
|
|
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;};
|
|
|
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;};
|
|
|
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(). |
|
||||||||||||||||
|
Get the elements of the FD prediction without needing to use stl pair.
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 }
|
|
|
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 }
|
|
|
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 }
|
|
|
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. 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 }
|
|
|
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. 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 }
|
|
|
Reset the ND Neutrino data back to the backup. 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 }
|
|
|
Reset the ND Neutrino data back to the backup. 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 }
|
|
||||||||||||
|
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(). |
|
|
Definition at line 21 of file NuMMRunNuBar.cxx. |
|
|
Definition at line 104 of file NuMMRunNuBar.h. Referenced by GetHelper(), ModifyNDBarData(), ModifyNDNuData(), NuMMRunNuBar(), ResetNDBarData(), and ResetNDNuData(). |
|
|
Definition at line 93 of file NuMMRunNuBar.h. Referenced by NuMMRunFC::NuMMRunFC(). |
|
|
Definition at line 92 of file NuMMRunNuBar.h. Referenced by NuMMRunFC::NuMMRunFC(). |
|
|
Reimplemented from NuMMRun. Definition at line 101 of file NuMMRunNuBar.h. |
|
|
Definition at line 91 of file NuMMRunNuBar.h. Referenced by ModifyNDBarData(), NuMMRunFC::NuMMRunFC(), and ResetNDBarData(). |
|
|
Definition at line 97 of file NuMMRunNuBar.h. Referenced by ModifyNDBarData(), NuMMRunNuBar(), and ResetNDBarData(). |
|
|
Definition at line 90 of file NuMMRunNuBar.h. Referenced by ModifyNDNuData(), NuMMRunFC::NuMMRunFC(), and ResetNDNuData(). |
|
|
Definition at line 96 of file NuMMRunNuBar.h. Referenced by ModifyNDNuData(), NuMMRunNuBar(), and ResetNDNuData(). |
1.3.9.1