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

NuFCConfig Class Reference

Stores configuration information for a FC process. More...

#include <NuFCConfig.h>

List of all members.

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

NuFCConfigGetConfig ()
 Retrieves the instance of NuFCConfig.

Private Member Functions

 NuFCConfig ()
 NuFCConfig (NuFCConfig &config)
NuFCConfigoperator= (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


Detailed Description

Stores configuration information for a FC process.

Definition at line 11 of file NuFCConfig.h.


Constructor & Destructor Documentation

NuFCConfig::NuFCConfig  )  [private]
 

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 }

NuFCConfig::NuFCConfig NuFCConfig config  )  [private]
 


Member Function Documentation

bool NuFCConfig::FixedSin  )  [inline]
 

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; }

NuFCConfig & NuFCConfig::GetConfig  )  [static]
 

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 }

std::string NuFCConfig::GetEventsFD  )  [inline]
 

Definition at line 31 of file NuFCConfig.h.

Referenced by NuFCGridPoint::NuFCGridPoint().

00031 { return fFCevents_Far; }

std::string NuFCConfig::GetEventsND  )  [inline]
 

Definition at line 30 of file NuFCConfig.h.

Referenced by NuFCGridPoint::NuFCGridPoint().

00030 { return fFCevents_Near; }

std::string NuFCConfig::GetEventsTau  )  [inline]
 

Definition at line 32 of file NuFCConfig.h.

Referenced by NuFCGridPoint::NuFCGridPoint().

00032 { return fFCevents_Tau; }

std::string NuFCConfig::GetHelperFileName  )  [inline]
 

Saves the configuration to a file.

Definition at line 26 of file NuFCConfig.h.

00026 { return fHelperFile; }

std::string NuFCConfig::GetNDMC  )  [inline]
 

Definition at line 27 of file NuFCConfig.h.

00027 { return fNDMC; }

void NuFCConfig::LoadConfig std::string  filename  ) 
 

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 }

NuFCConfig& NuFCConfig::operator= NuFCConfig  )  [private]
 

double NuFCConfig::POT  )  [inline]
 

Definition at line 33 of file NuFCConfig.h.

00033 { return fPOT; }

void NuFCConfig::PrintStatus  ) 
 

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 }

bool NuFCConfig::Systematics  )  [inline]
 

Definition at line 29 of file NuFCConfig.h.

Referenced by NuFCGridPoint::NuFCGridPoint().

00029 { return fFCSystematics; }


Member Data Documentation

std::string NuFCConfig::fFCevents_Far [private]
 

Definition at line 54 of file NuFCConfig.h.

Referenced by LoadConfig(), NuFCConfig(), and PrintStatus().

std::string NuFCConfig::fFCevents_Near [private]
 

Definition at line 53 of file NuFCConfig.h.

Referenced by LoadConfig(), NuFCConfig(), and PrintStatus().

std::string NuFCConfig::fFCevents_Tau [private]
 

Definition at line 55 of file NuFCConfig.h.

Referenced by LoadConfig(), NuFCConfig(), and PrintStatus().

bool NuFCConfig::fFCSystematics [private]
 

Definition at line 52 of file NuFCConfig.h.

Referenced by LoadConfig(), and NuFCConfig().

bool NuFCConfig::fFixedMixingAngle [private]
 

Definition at line 60 of file NuFCConfig.h.

Referenced by LoadConfig(), and NuFCConfig().

std::string NuFCConfig::fHelperFile [private]
 

Definition at line 48 of file NuFCConfig.h.

Referenced by LoadConfig(), NuFCConfig(), and PrintStatus().

NuFCConfig NuFCConfig::fInstance [static, private]
 

Definition at line 20 of file NuFCConfig.cxx.

std::string NuFCConfig::fNDMC [private]
 

Definition at line 49 of file NuFCConfig.h.

Referenced by LoadConfig(), NuFCConfig(), and PrintStatus().

double NuFCConfig::fPOT [private]
 

Definition at line 57 of file NuFCConfig.h.

Referenced by LoadConfig(), NuFCConfig(), and PrintStatus().


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