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

Public Member Functions | |
| NuMMRun () | |
| NuMMRun (NuMMHelperPRL *helper, NuHistInterpolator *ndData, NuHistInterpolator *fdData) | |
| virtual | ~NuMMRun () |
| virtual const Double_t | ComparePredWithData (const NuMMParameters &pars)=0 |
| void | ConfigForOscillations () |
| void | ConfigForDecay () |
| void | ConfigForDecoherence () |
| virtual void | ConfigForDisappearanceModel (int mod) |
| virtual void | ConfigForFakeDataStudy () |
| virtual const std::vector< TH1D > | WriteFDPredHistos (const NuMMParameters &pars) const =0 |
| virtual void | ShowerEnergyShifter (NuHistInterpolator *showerEnergyShifter) |
| virtual void | QuietModeOn () |
| virtual void | QuietModeOff () |
| virtual void | SetMaximumEnergy (Double_t energy) |
| Sets the maximum energy to compare histograms up to. | |
Protected Member Functions | |
| virtual const Double_t | StatsLikelihood (const TH1D *fdPred, const TH1D *fdData) const |
Protected Attributes | |
| Bool_t | fFakeDataStudy |
| Bool_t | fQuietMode |
| Double_t | fNDFidMass |
| Double_t | fFDFidMass |
| Int_t | fDisappearanceModel |
| NuHistInterpolator * | fNDData |
| NuHistInterpolator * | fFDData |
| NuHistInterpolator * | fShowerEnergyShifter |
| NuMMHelperPRL * | fHelper |
| Bool_t | fConstrainEnergy |
| Double_t | fMaximumEnergy |
|
|
Definition at line 20 of file NuMMRun.cxx. References NuCuts::FiducialMass(). 00021 : fFakeDataStudy(false), 00022 fQuietMode(false), 00023 fDisappearanceModel(0), 00024 fConstrainEnergy(false), 00025 fMaximumEnergy(0.0) 00026 // fMaximumBin(0) 00027 { 00028 NuCuts nuCuts; 00029 fNDFidMass = nuCuts.FiducialMass(Detector::kNear, 00030 SimFlag::kData, 00031 NuCuts::kJJE1); 00032 fFDFidMass = nuCuts.FiducialMass(Detector::kFar, 00033 SimFlag::kData, 00034 NuCuts::kJJE1); 00035 }
|
|
||||||||||||||||
|
Definition at line 38 of file NuMMRun.cxx. References fFDData, fFDFidMass, fHelper, NuCuts::FiducialMass(), fNDData, and fNDFidMass. 00041 : fFakeDataStudy(false), 00042 fQuietMode(false), 00043 fDisappearanceModel(0) 00044 { 00045 NuCuts nuCuts; 00046 fNDFidMass = nuCuts.FiducialMass(Detector::kNear, 00047 SimFlag::kData, 00048 NuCuts::kJJE1); 00049 fFDFidMass = nuCuts.FiducialMass(Detector::kFar, 00050 SimFlag::kData, 00051 NuCuts::kJJE1); 00052 fHelper = helper; 00053 fNDData = ndData; 00054 fFDData = fdData; 00055 }
|
|
|
Definition at line 23 of file NuMMRun.h. 00023 {};
|
|
|
Implemented in NuMMRunCC2010, NuMMRunCCTutorial, NuMMRunCPT, NuMMRunCPTSyst, NuMMRunFC, NuMMRunNC2010, NuMMRunNoChargeCut, NuMMRunPRL, and NuMMRunTransition. |
|
|
Definition at line 27 of file NuMMRun.h. 00027 {ConfigForDisappearanceModel(1);}
|
|
|
Definition at line 28 of file NuMMRun.h. 00028 {ConfigForDisappearanceModel(2);}
|
|
|
Definition at line 58 of file NuMMRun.cxx. References fDisappearanceModel. 00059 {
00060 assert(model == 0 || model == 1 || model == 2);
00061 fDisappearanceModel = model;
00062 }
|
|
|
Definition at line 31 of file NuMMRun.h. 00031 {fFakeDataStudy=true;}
|
|
|
Definition at line 26 of file NuMMRun.h. 00026 {ConfigForDisappearanceModel(0);}
|
|
|
Definition at line 38 of file NuMMRun.h. 00038 {fQuietMode = false;}
|
|
|
Definition at line 37 of file NuMMRun.h. Referenced by NuFCExperimentFactory::GenerateNewExperiment(), NuEZFitter::MakeFDData(), NuFCGridPoint::PredictSpectrum(), and NuFCGridPoint::Run(). 00037 {fQuietMode = true;}
|
|
|
Sets the maximum energy to compare histograms up to.
Definition at line 41 of file NuMMRun.h. Referenced by NuEZFitter::MakeFDData(), NuFCFitter::NuFCFitter(), and NuEZFitter::Rebuild(). 00041 {
00042 fConstrainEnergy = true;
00043 fMaximumEnergy = energy;
00044 }
|
|
|
Definition at line 34 of file NuMMRun.h. 00035 {fShowerEnergyShifter = showerEnergyShifter;}
|
|
||||||||||||
|
Definition at line 65 of file NuMMRun.cxx. References fMaximumEnergy, NuUtilities::LogLikelihood(), and MAXMSG. Referenced by NuMMRunTransition::ComparePredWithData(). 00067 {
00068 /*
00069 Bool_t fConstrainEnergy;
00070 Double_t fMaximumEnergy;
00071 Int_t fMaximumBin;*/
00072 Int_t MaximumBin = 0;
00073
00074 // Are we constraining?
00075 if (fConstrainEnergy) {
00076 // Calculate the upper bin (not sure why using findfixbin... is this old?)
00077 MaximumBin = fdPred->GetXaxis()->FindFixBin(fMaximumEnergy);
00078 MAXMSG("NuMMRun", 5, Msg::kDebug) << " Calculated highest bin as "
00079 << MaximumBin << endl;
00080 } else {
00081 // In this case, we are not constraining - use the full range!
00082 MAXMSG("NuMMRun", 5, Msg::kDebug) << " Not constraining bin comparison" << endl;
00083 MaximumBin = fdPred->GetNbinsX();
00084 }
00085
00086 Double_t like = 0;
00087
00088 //Aim to minimise -2lnL. That's what I'm returning.
00089 for (Int_t i=1; i<=MaximumBin; ++i){
00090 //Bizarre limits because root histograms are silly
00091 Double_t mnu = fdPred->GetBinContent(i);
00092 Double_t dnu = fdData->GetBinContent(i);
00093
00094 // Replace the previous Log-likelihood with one that is a bit
00095 // more robust for fringe cases.
00096 like += NuUtilities::LogLikelihood(dnu,mnu);
00097 }
00098 return like;
00099 }
|
|
|
Implemented in NuMMRunCC2010, NuMMRunCCTutorial, NuMMRunCPT, NuMMRunCPTSyst, NuMMRunFC, NuMMRunNC2010, NuMMRunNoChargeCut, NuMMRunPRL, and NuMMRunTransition. |
|
|
|
|
|
Definition at line 53 of file NuMMRun.h. Referenced by ConfigForDisappearanceModel(). |
|
|
|
|
|
Reimplemented in NuMMRunCCTutorial. Definition at line 55 of file NuMMRun.h. Referenced by NuMMRun(). |
|
|
Definition at line 52 of file NuMMRun.h. Referenced by NuMMRun(). |
|
|
Reimplemented in NuMMRunCC2010, NuMMRunCCTutorial, NuMMRunCPT, NuMMRunCPTSyst, NuMMRunNC2010, NuMMRunNoChargeCut, and NuMMRunNuBar. Definition at line 57 of file NuMMRun.h. Referenced by NuMMRun(). |
|
|
Definition at line 60 of file NuMMRun.h. Referenced by StatsLikelihood(). |
|
|
Reimplemented in NuMMRunCCTutorial. Definition at line 54 of file NuMMRun.h. Referenced by NuMMRun(). |
|
|
Definition at line 51 of file NuMMRun.h. Referenced by NuMMRun(). |
|
|
|
|
|
|
1.3.9.1