#include <NuFCConfig.h>
Public Member Functions | |
| void | PrintStatus () |
| Prints out the configuration status. | |
| void | LoadConfig (std::string filename) |
| Loads a configuration file. | |
| std::string | GetHelperFileName () |
| Saves the configuration to a file. | |
| std::string | GetNDMC () |
| bool | Systematics () |
| std::string | GetEventsND () |
| std::string | GetEventsFD () |
| std::string | GetEventsTau () |
| double | POT () |
| bool | FixedSin () |
Static Public Member Functions | |
| NuFCConfig & | GetConfig () |
| Retrieves the instance of NuFCConfig. | |
Private Member Functions | |
| NuFCConfig () | |
| NuFCConfig (NuFCConfig &config) | |
| NuFCConfig & | operator= (NuFCConfig &) |
Private Attributes | |
| std::string | fHelperFile |
| std::string | fNDMC |
| bool | fFCSystematics |
| std::string | fFCevents_Near |
| std::string | fFCevents_Far |
| std::string | fFCevents_Tau |
| double | fPOT |
| bool | fFixedMixingAngle |
Static Private Attributes | |
| NuFCConfig | fInstance |
Definition at line 11 of file NuFCConfig.h.
|
|
Definition at line 22 of file NuFCConfig.cxx. References fFCevents_Far, fFCevents_Near, fFCevents_Tau, fFCSystematics, fFixedMixingAngle, fHelperFile, fNDMC, and fPOT. 00023 {
00024 // Initialise everything with defaults
00025
00026 fHelperFile = "CombinedHelpersRun1LE_bravo.root";
00027 fNDMC = "NDMCRun1LE_bravo.root";
00028
00029 // FC Systematics variables
00030 fFCSystematics = true;
00031 fFCevents_Near = "/minos/data/analysis/NuMuBar/Helpers/Bravo/near_events.root";
00032 fFCevents_Far = "/minos/data/analysis/NuMuBar/Helpers/Bravo/far_events.root";
00033 fFCevents_Tau = "/minos/data/analysis/NuMuBar/Helpers/Bravo/tau_events.root";
00034
00035 fPOT = 3.2e20;
00036
00037 fFixedMixingAngle = false;
00038 }
|
|
|
|
|
|
Definition at line 35 of file NuFCConfig.h. Referenced by NuFCFitter::CoarseGridSearch(), NuFCFitter::FineGridSearch(), NuFCFitter::GridSearch(), NuFCFitter::MinuitFit(), NuFCGridPoint::NuFCGridPoint(), and NuFCFitter::RecoverNegativeDeltaChi(). 00035 { return fFixedMixingAngle; }
|
|
|
Retrieves the instance of NuFCConfig.
Definition at line 66 of file NuFCConfig.cxx. Referenced by NuFCFitter::CoarseGridSearch(), NuFCFitter::FineGridSearch(), NuFCFitter::GridSearch(), NuFCFitter::MinuitFit(), NuFCGridPoint::NuFCGridPoint(), and NuFCFitter::RecoverNegativeDeltaChi(). 00067 {
00068 // if (fInstance == 0) {
00069 // // We need to create a configuration
00070 // fInstance = new NuFCConfig;
00071 // }
00072 // return fInstance;
00073
00074 return fInstance;
00075 }
|
|
|
Definition at line 31 of file NuFCConfig.h. Referenced by NuFCGridPoint::NuFCGridPoint(). 00031 { return fFCevents_Far; }
|
|
|
Definition at line 30 of file NuFCConfig.h. Referenced by NuFCGridPoint::NuFCGridPoint(). 00030 { return fFCevents_Near; }
|
|
|
Definition at line 32 of file NuFCConfig.h. Referenced by NuFCGridPoint::NuFCGridPoint(). 00032 { return fFCevents_Tau; }
|
|
|
Saves the configuration to a file.
Definition at line 26 of file NuFCConfig.h. 00026 { return fHelperFile; }
|
|
|
Definition at line 27 of file NuFCConfig.h. 00027 { return fNDMC; }
|
|
|
Loads a configuration file.
Definition at line 77 of file NuFCConfig.cxx. References fFCevents_Far, fFCevents_Near, fFCevents_Tau, fFCSystematics, fFixedMixingAngle, fHelperFile, fNDMC, fPOT, ConfigFile::GetBool(), ConfigFile::GetFloat(), and ConfigFile::GetString(). 00078 {
00079 ConfigFile cfg(filename);
00080
00081 // Load all the variables out of it
00082
00083 // Generation sources
00084 fHelperFile = cfg.GetString("Helper", "MC", fHelperFile);
00085 fNDMC = cfg.GetString("Neardet", "MC", fNDMC);
00086
00087 // Systematics variables
00088 fFCSystematics = cfg.GetBool("Systematics", "FC_Systematics", fFCSystematics);
00089 fFCevents_Near = cfg.GetString("Near_Events", "FC_Systematics", fFCevents_Near);
00090 fFCevents_Far = cfg.GetString("Far_Events", "FC_Systematics", fFCevents_Far);
00091 fFCevents_Tau = cfg.GetString("Tau_Events", "FC_Systematics", fFCevents_Tau);
00092
00093 fPOT = cfg.GetFloat("POT", "Generation", fPOT);
00094
00095 // Fitting variables
00096 fFixedMixingAngle = cfg.GetBool("OneParameter", "Fitting", fFixedMixingAngle);
00097 }
|
|
|
|
|
|
Definition at line 33 of file NuFCConfig.h. 00033 { return fPOT; }
|
|
|
Prints out the configuration status.
Definition at line 40 of file NuFCConfig.cxx. References fFCevents_Far, fFCevents_Near, fFCevents_Tau, fHelperFile, fNDMC, and fPOT. 00041 {
00042 // Make a nicified string for the systematics status
00043 string syststatus = "No";
00044 if (fFCSystematics) syststatus = "Yes";
00045
00046 string fixedsin = "No";
00047 if (fFixedMixingAngle) fixedsin = "Yes";
00048
00049 cout << "***************************************************" << endl;
00050 cout << "Configuration:" << endl
00051 << "POT: " << fPOT << endl
00052 << "Helper File: " << fHelperFile << endl
00053 << "ND MC: " << fNDMC << endl
00054 << "Systematics? " << syststatus << endl
00055 << "Fixed Sin? " << fixedsin << endl;
00056
00057 // Only show the systematics only vars if we want systematics
00058 cout << "FC Events" << endl
00059 << "Near Events: " << fFCevents_Near << endl
00060 << "Far Events: " << fFCevents_Far << endl
00061 << "Tau Events: " << fFCevents_Tau << endl;
00062 cout << "***************************************************" << endl;
00063 }
|
|
|
Definition at line 29 of file NuFCConfig.h. Referenced by NuFCGridPoint::NuFCGridPoint(). 00029 { return fFCSystematics; }
|
|
|
Definition at line 54 of file NuFCConfig.h. Referenced by LoadConfig(), NuFCConfig(), and PrintStatus(). |
|
|
Definition at line 53 of file NuFCConfig.h. Referenced by LoadConfig(), NuFCConfig(), and PrintStatus(). |
|
|
Definition at line 55 of file NuFCConfig.h. Referenced by LoadConfig(), NuFCConfig(), and PrintStatus(). |
|
|
Definition at line 52 of file NuFCConfig.h. Referenced by LoadConfig(), and NuFCConfig(). |
|
|
Definition at line 60 of file NuFCConfig.h. Referenced by LoadConfig(), and NuFCConfig(). |
|
|
Definition at line 48 of file NuFCConfig.h. Referenced by LoadConfig(), NuFCConfig(), and PrintStatus(). |
|
|
Definition at line 20 of file NuFCConfig.cxx. |
|
|
Definition at line 49 of file NuFCConfig.h. Referenced by LoadConfig(), NuFCConfig(), and PrintStatus(). |
|
|
Definition at line 57 of file NuFCConfig.h. Referenced by LoadConfig(), NuFCConfig(), and PrintStatus(). |
1.3.9.1