OscFit::Configuration Class Reference

#include <Configuration.h>

List of all members.

Public Member Functions

void UseData (Run_t run, Bool_t useme=1)
void UseAtmosData (Bool_t useme=1)
void UseBeamData (Bool_t useme=1)
void ScaleData (Run_t run, Double_t scale)
Double_t GetScale (Run_t run)
void ScaleBothDataAndMC (Bool_t yesno=1)
Bool_t ScalingBothDataAndMC ()
Bool_t UsingThisRun (Run_t run)
Bool_t UsingAtmosData ()
Bool_t UsingBeamData ()
void SetInterpolation (Interpolation_t mode)
void SetBinningScheme (BinningScheme_t scheme)
void DoDynamicLoading (Bool_t yesno=1)
Bool_t DoingDynamicLoading ()
void SetMaximumLoad (Int_t numTemplates)
Int_t GetMaximumLoad ()
void RunOnGrid (Bool_t yesno=1)
Bool_t RunningOnGrid ()
void EnableTemplateChecking ()
void DisableTemplateChecking ()
void DoFileChecks (Bool_t yesno=1)
Bool_t DoingFileChecks ()
void DoSystematics (Bool_t yesno=1)
void SwitchOnSystematics ()
void SwitchOffSystematics ()
Bool_t DoingSystematics ()
void CombineResBins (Run_t run, Bool_t yesno=1)
Bool_t CombiningResBins (Run_t run)
void CombineBeamResBinsCV (Bool_t yesno=1)
Bool_t CombiningBeamResBinsCV ()
void CombineAtmosResBinsRAF (Bool_t yesno=1)
Bool_t CombiningAtmosResBinsRAF ()
void CombineAtmosResBinsCV (Bool_t yesno=1)
Bool_t CombiningAtmosResBinsCV ()
void CombineAtmosResBins (Bool_t yesno=1)
void CombineAtmosChargeBins (Bool_t yesno=1)
Bool_t CombiningAtmosChargeBins ()
void CombineBeamChargeBins (Bool_t yesno=1)
Bool_t CombiningBeamChargeBins ()
void CombineTopologies (Bool_t yesno=1)
Bool_t CombiningTopologies ()
void DoProtonTagging (Bool_t yesno=1)
void SwitchOnProtonTagging ()
void SwitchOffProtonTagging ()
Bool_t DoingProtonTagging ()
void DoElectronTagging (Bool_t yesno=1)
void SwitchOnElectronTagging ()
void SwitchOffElectronTagging ()
Bool_t DoingElectronTagging ()
void SwitchOnAtmosResolutionBinning ()
void SwitchOffAtmosResolutionBinning ()
void UseNC (Bool_t yesno=1)
Bool_t UsingNC ()
void UseContainedVertexOnly (Bool_t yesno=1)
Bool_t UsingContainedVertexOnly ()
void UseMuonNeutrinosOnly (Bool_t yesno=1)
void UseBeamMuonNeutrinosOnly (Bool_t yesno=1)
Bool_t UsingBeamMuonNeutrinosOnly ()
void UseAtmosMuonNeutrinosOnly (Bool_t yesno=1)
Bool_t UsingAtmosMuonNeutrinosOnly ()
void UseHighResolutionOnly (Bool_t yesno=1)
Bool_t UsingHighResolutionOnly ()
void DoPerfectChargeSeparation (Bool_t yesno=1)
void SwitchOnPerfectChargeSeparation ()
void SwitchOffPerfectChargeSeparation ()
Bool_t DoingPerfectChargeSeparation ()
void DoScalingInReader (Bool_t yesno=1)
void DoScalingInCalculator (Bool_t yesno=1)
Bool_t DoingScalingInReader ()
void DoCombinationsInReader (Bool_t yesno=1)
Bool_t DoingCombinationsInReader ()
void DoCombinationsInCalculator (Bool_t yesno=1)
Bool_t DoingCombinationsInCalculator ()
void UseNewResolutionBinning (Bool_t yesno=1)
Bool_t UsingNewResolutionBinning ()
void SetNumberOfNewResolutionBins (Int_t nbins)
Int_t GetNumberOfNewResolutionBins ()
void DiscardWorstResolutionBin (Bool_t yesno=1)
Bool_t DiscardingWorstResolutionBin ()
void DoLowResolutionEnergyBins (Bool_t yesno=1)
Bool_t DoingLowResolutionEnergyBins ()
void DoRockSpectrumSystematic (Bool_t yesno=1)
void SwitchOnRockSpectrumSystematic ()
void SwitchOffRockSpectrumSystematic ()
Bool_t DoingRockSpectrumSystematic ()
void DoNueSpectrumSystematic (Bool_t yesno=1)
void SwitchOnNueSpectrumSystematic ()
void SwitchOffNueSpectrumSystematic ()
Bool_t DoingNueSpectrumSystematic ()
void DoNueEnergySystematic (Bool_t yesno=1)
void SwitchOnNueEnergySystematic ()
void SwitchOffNueEnergySystematic ()
Bool_t DoingNueEnergySystematic ()
void DoSystematicsInRecoEnergy (Bool_t yesno=1)
void ApplyShiftsToRecoEnergy ()
void ApplyShiftsToTrueEnergy ()
Bool_t DoingSystematicsInRecoEnergy ()
void DoNCBkgSystematicInMINOSPlus (Bool_t yesno=1)
void SwitchOnNCBkgSystematicInMINOSPlus ()
void SwitchOffNCBkgSystematicInMINOSPlus ()
Bool_t DoingNCBkgSystematicInMINOSPlus ()
void UseAtmosLegacyBinning (Bool_t yesno=1)
Bool_t UsingAtmosLegacyBinning ()
void UseBeamLegacyBinning (Bool_t yesno=1)
Bool_t UsingBeamLegacyBinning ()
void UseCachedOscWeights (Bool_t yesno=1)
Bool_t UsingCachedOscWeights ()
OscFit::Experiment_t GetExperiment ()

Static Public Member Functions

static ConfigurationInstance ()

Private Member Functions

 Configuration ()
virtual ~Configuration ()
void BuildSummaryOfData ()

Private Attributes

std::map< Run_t, Bool_t > fTemplateFlags
std::map< Run_t, Double_t > fTemplateScales
std::map< Run_t, Bool_t > fCombineResBins
Bool_t fUseSubsetOfData
Bool_t fUseAtmosData
Bool_t fUseBeamData
Bool_t fUseNC
Bool_t fDoSystematics
Bool_t fDoSystematicsInRecoEnergy
Bool_t fDoNewResolutionBinning
Bool_t fDiscardWorstResolutionBin
Bool_t fDoLowResolutionEnergyBins
Bool_t fCombineAtmosResBinsRAF
Bool_t fCombineAtmosResBinsCV
Bool_t fCombineAtmosChargeBins
Bool_t fCombineBeamChargeBins
Bool_t fCombineTopologies
Bool_t fDoProtonTagging
Bool_t fDoElectronTagging
Bool_t fContainedVertexOnly
Bool_t fHighResolutionOnly
Bool_t fAtmosMuonNeutrinosOnly
Bool_t fBeamMuonNeutrinosOnly
Bool_t fPerfectChargeSeparation
Bool_t fDoRockSpectrumSystematic
Bool_t fDoNueSpectrumSystematic
Bool_t fDoNueEnergySystematic
Bool_t fDoNCBkgSystematicInMINOSPlus
Bool_t fDoScalingInReader
Bool_t fScaleBothDataAndMC
Bool_t fDoCombinationsInReader
Bool_t fDoCombinationsInCalculator
Bool_t fDoAtmosLegacyBinning
Bool_t fDoBeamLegacyBinning
Bool_t fDoDynamicLoading
Bool_t fDoCachedOscWeights
Bool_t fDoFileChecks
Int_t fNumResBins
Int_t fMaxNumTemplates
Int_t fRunOnGrid
OscFit::Experiment_t fExperiment

Detailed Description

Definition at line 10 of file Configuration.h.


Constructor & Destructor Documentation

Configuration::Configuration (  )  [private]

Definition at line 22 of file Configuration.cxx.

References fAtmosMuonNeutrinosOnly, fBeamMuonNeutrinosOnly, fCombineAtmosChargeBins, fCombineAtmosResBinsCV, fCombineAtmosResBinsRAF, fCombineBeamChargeBins, fCombineTopologies, fContainedVertexOnly, fDiscardWorstResolutionBin, fDoAtmosLegacyBinning, fDoBeamLegacyBinning, fDoCachedOscWeights, fDoCombinationsInCalculator, fDoCombinationsInReader, fDoDynamicLoading, fDoElectronTagging, fDoFileChecks, fDoLowResolutionEnergyBins, fDoNCBkgSystematicInMINOSPlus, fDoNewResolutionBinning, fDoNueEnergySystematic, fDoNueSpectrumSystematic, fDoProtonTagging, fDoRockSpectrumSystematic, fDoScalingInReader, fDoSystematics, fDoSystematicsInRecoEnergy, fExperiment, fHighResolutionOnly, fMaxNumTemplates, fNumResBins, fPerfectChargeSeparation, fRunOnGrid, fScaleBothDataAndMC, fUseAtmosData, fUseBeamData, fUseNC, fUseSubsetOfData, and OscFit::kUnknownExperiment.

00023 {
00024   fUseAtmosData = 1;
00025   fUseBeamData = 1;
00026 
00027   fUseNC = 0; // switched OFF by default
00028 
00029   fUseSubsetOfData = 0;
00030 
00031   fDoSystematics  = 1; // switched ON by default   
00032 
00033   fDoSystematicsInRecoEnergy = 0; // switched OFF by default
00034   fDoNewResolutionBinning    = 0; // switched OFF by default
00035   fDiscardWorstResolutionBin = 0; // switched OFF by default
00036   fDoLowResolutionEnergyBins = 0; // switched OFF by default
00037 
00038   fCombineAtmosResBinsRAF = 0;     // switched OFF by default
00039   fCombineAtmosResBinsCV  = 0;     // switched OFF by default
00040   fCombineAtmosChargeBins = 0;     // switched OFF by default
00041   fCombineBeamChargeBins  = 0;     // switched OFF by default
00042   fCombineTopologies      = 0;     // switched OFF by default
00043 
00044   fDoProtonTagging        = 0;     // switched OFF by default
00045   fDoElectronTagging      = 0;     // switched OFF by default  
00046 
00047   fContainedVertexOnly = 0;        // switched OFF by default
00048   fHighResolutionOnly  = 0;        // switched OFF by default
00049 
00050   fAtmosMuonNeutrinosOnly = 0;     // switched OFF by default
00051   fBeamMuonNeutrinosOnly  = 0;     // switched OFF by default
00052 
00053   fPerfectChargeSeparation = 0;    // switched OFF by default
00054 
00055   fDoRockSpectrumSystematic = 1;   // switched ON by default
00056   fDoNueSpectrumSystematic = 1;    // switched ON by default
00057   fDoNueEnergySystematic = 1;      // switched ON by default
00058   fDoNCBkgSystematicInMINOSPlus = 0; // switched OFF by default
00059 
00060   fDoCombinationsInReader     = 1; // switched ON by default
00061   fDoCombinationsInCalculator = 0; // switched OFF by default
00062 
00063   fDoScalingInReader = 1;          // switched ON by default
00064   fScaleBothDataAndMC = 0;         // switched OFF by default
00065 
00066   fDoAtmosLegacyBinning = 0;       // switched OFF by default
00067   fDoBeamLegacyBinning = 0;        // switched OFF by default
00068 
00069   fDoDynamicLoading = 1;           // switched ON by default
00070   fDoCachedOscWeights = 1;         // switched ON by default
00071 
00072   fDoFileChecks = 1;               // switched ON by default
00073 
00074   fRunOnGrid = 0;
00075 
00076   fNumResBins = 8;
00077 
00078   fMaxNumTemplates = 256;    
00079 
00080   fExperiment = OscFit::kUnknownExperiment;  
00081 }

Configuration::~Configuration (  )  [private, virtual]

Definition at line 83 of file Configuration.cxx.

00084 {
00085   
00086 }


Member Function Documentation

void OscFit::Configuration::ApplyShiftsToRecoEnergy (  )  [inline]

Definition at line 150 of file Configuration.h.

References DoSystematicsInRecoEnergy().

00150 { DoSystematicsInRecoEnergy(true); }

void OscFit::Configuration::ApplyShiftsToTrueEnergy (  )  [inline]

Definition at line 151 of file Configuration.h.

References DoSystematicsInRecoEnergy().

00151 { DoSystematicsInRecoEnergy(false); }

void Configuration::BuildSummaryOfData (  )  [private]

Definition at line 218 of file Configuration.cxx.

References fTemplateFlags, fUseAtmosData, fUseBeamData, OscFit::GetSource(), OscFit::kAtmosData, OscFit::kBeamData, and run().

Referenced by UseData().

00219 {
00220   fUseAtmosData = 0;
00221   fUseBeamData  = 0;
00222 
00223   std::map<Run_t,Bool_t>::iterator myIter = fTemplateFlags.begin();
00224 
00225   for( ; myIter!=fTemplateFlags.end(); myIter++ ){
00226     Run_t  run   = myIter->first;
00227     Bool_t useme = myIter->second;
00228 
00229     if( useme ){
00230       if( OscFit::GetSource(run)==OscFit::kAtmosData ) fUseAtmosData = 1;
00231       if( OscFit::GetSource(run)==OscFit::kBeamData  ) fUseBeamData  = 1;
00232     }
00233   }
00234 
00235   return;
00236 }

void Configuration::CombineAtmosChargeBins ( Bool_t  yesno = 1  ) 

Definition at line 362 of file Configuration.cxx.

References fCombineAtmosChargeBins.

00363 {
00364   std::cout << " --- Configuration: Combine Atmos Charge Bins [";
00365     if( yesno==0 ) std::cout << "OFF"; else std::cout << "ON";
00366   std::cout << "] --- " << std::endl;
00367 
00368   fCombineAtmosChargeBins = yesno; 
00369 }

void OscFit::Configuration::CombineAtmosResBins ( Bool_t  yesno = 1  )  [inline]

Definition at line 63 of file Configuration.h.

References CombineAtmosResBinsCV(), and CombineAtmosResBinsRAF().

Referenced by SwitchOffAtmosResolutionBinning(), and SwitchOnAtmosResolutionBinning().

00063                                                  {
00064       CombineAtmosResBinsRAF( yesno );
00065       CombineAtmosResBinsCV( yesno );
00066     }

void Configuration::CombineAtmosResBinsCV ( Bool_t  yesno = 1  ) 

Definition at line 335 of file Configuration.cxx.

References fCombineAtmosResBinsCV.

Referenced by CombineAtmosResBins(), and SetBinningScheme().

00336 {
00337   std::cout << " --- Configuration: Combine Atmos CV Resolution Bins [";
00338     if( yesno==0 ) std::cout << "OFF"; else std::cout << "ON";
00339   std::cout << "] --- " << std::endl;
00340 
00341   fCombineAtmosResBinsCV = yesno; 
00342 }

void Configuration::CombineAtmosResBinsRAF ( Bool_t  yesno = 1  ) 

Definition at line 344 of file Configuration.cxx.

References fCombineAtmosResBinsRAF.

Referenced by CombineAtmosResBins().

00345 {
00346   std::cout << " --- Configuration: Combine Atmos RAF Resolution Bins [";
00347     if( yesno==0 ) std::cout << "OFF"; else std::cout << "ON";
00348   std::cout << "] --- " << std::endl;
00349 
00350   fCombineAtmosResBinsRAF = yesno; 
00351 }

void Configuration::CombineBeamChargeBins ( Bool_t  yesno = 1  ) 

Definition at line 353 of file Configuration.cxx.

References fCombineBeamChargeBins.

00354 {
00355   std::cout << " --- Configuration: Combine Beam Charge Bins [";
00356     if( yesno==0 ) std::cout << "OFF"; else std::cout << "ON";
00357   std::cout << "] --- " << std::endl;
00358 
00359   fCombineBeamChargeBins = yesno; 
00360 }

void Configuration::CombineBeamResBinsCV ( Bool_t  yesno = 1  ) 

Definition at line 88 of file Configuration.cxx.

References CombineResBins(), OscFit::GetNumRuns(), OscFit::GetSource(), OscFit::kBeamData, and run().

Referenced by SetBinningScheme().

00089 {
00090   std::cout << " --- Configuration: Combine Beam CV Resolution Bins [";
00091     if( yesno==0 ) std::cout << "OFF"; else std::cout << "ON";
00092   std::cout << "] --- " << std::endl;
00093 
00094   for (Int_t i = 0; i < GetNumRuns(); i++) {
00095     Run_t run = static_cast<Run_t>(i);
00096     if (GetSource(run) == kBeamData) {
00097       CombineResBins(run, yesno);
00098     }
00099   }
00100 }

void Configuration::CombineResBins ( Run_t  run,
Bool_t  yesno = 1 
)

Definition at line 114 of file Configuration.cxx.

References fCombineResBins.

Referenced by CombineBeamResBinsCV().

00115 {
00116   std::map<Run_t,Bool_t>::iterator myEntry = fCombineResBins.find(run);
00117   
00118   if( myEntry==fCombineResBins.end() ){
00119     fCombineResBins.insert( std::pair<Run_t,Bool_t>(run, yesno) );
00120   }
00121   else {
00122     myEntry->second = yesno;    
00123   }
00124 }

void Configuration::CombineTopologies ( Bool_t  yesno = 1  ) 

Definition at line 371 of file Configuration.cxx.

References fCombineTopologies.

00372 {
00373   std::cout << " --- Configuration: Combine Topology Bins [";
00374     if( yesno==0 ) std::cout << "OFF"; else std::cout << "ON";
00375   std::cout << "] --- " << std::endl;
00376 
00377   fCombineTopologies = yesno; 
00378 }

Bool_t OscFit::Configuration::CombiningAtmosChargeBins (  )  [inline]

Definition at line 69 of file Configuration.h.

References fCombineAtmosChargeBins.

00069 { return fCombineAtmosChargeBins; }

Bool_t OscFit::Configuration::CombiningAtmosResBinsCV (  )  [inline]

Definition at line 61 of file Configuration.h.

References fCombineAtmosResBinsCV.

00061 { return fCombineAtmosResBinsCV; }

Bool_t OscFit::Configuration::CombiningAtmosResBinsRAF (  )  [inline]

Definition at line 58 of file Configuration.h.

References fCombineAtmosResBinsRAF.

00058 { return fCombineAtmosResBinsRAF; }

Bool_t OscFit::Configuration::CombiningBeamChargeBins (  )  [inline]

Definition at line 72 of file Configuration.h.

References fCombineBeamChargeBins.

00072 { return fCombineBeamChargeBins; }

Bool_t Configuration::CombiningBeamResBinsCV (  ) 

Definition at line 102 of file Configuration.cxx.

References CombiningResBins(), OscFit::GetNumRuns(), OscFit::GetSource(), OscFit::kBeamData, and run().

00103 {
00104   // NB will only return true if ALL POSSIBLE beam runs (listed in OscFit.h) are mapped to true
00105   for (Int_t i = 0; i < GetNumRuns(); i++) {
00106     Run_t run = static_cast<Run_t>(i);
00107     if (GetSource(run) == kBeamData) {
00108       if (CombiningResBins(run) == false) return false;
00109     }
00110   }
00111   return true;
00112 }

Bool_t Configuration::CombiningResBins ( Run_t  run  ) 

Definition at line 126 of file Configuration.cxx.

References fCombineResBins.

Referenced by CombiningBeamResBinsCV().

00127 {
00128   std::map<Run_t,Bool_t>::iterator myEntry = fCombineResBins.find(run);
00129 
00130   if( myEntry != fCombineResBins.end() ){
00131     return myEntry->second;
00132   }
00133 
00134   else return false;
00135 }

Bool_t OscFit::Configuration::CombiningTopologies (  )  [inline]

Definition at line 75 of file Configuration.h.

References fCombineTopologies.

00075 { return fCombineTopologies; }

void OscFit::Configuration::DisableTemplateChecking (  )  [inline]

Definition at line 42 of file Configuration.h.

References DoFileChecks().

00042 { DoFileChecks(0); }

Bool_t OscFit::Configuration::DiscardingWorstResolutionBin (  )  [inline]

Definition at line 129 of file Configuration.h.

References fDiscardWorstResolutionBin.

00129 { return fDiscardWorstResolutionBin; }

void Configuration::DiscardWorstResolutionBin ( Bool_t  yesno = 1  ) 

Definition at line 499 of file Configuration.cxx.

References fDiscardWorstResolutionBin.

00500 {
00501   std::cout << " --- Configuration: Discarding Worst Resolution Bin [";
00502     if( yesno==0 ) std::cout << "OFF"; else std::cout << "ON";
00503   std::cout << "] --- " << std::endl;
00504 
00505   fDiscardWorstResolutionBin = yesno; 
00506 }

void OscFit::Configuration::DoCombinationsInCalculator ( Bool_t  yesno = 1  )  [inline]

Definition at line 119 of file Configuration.h.

References fDoCombinationsInCalculator.

00119 { fDoCombinationsInCalculator = yesno; }

void OscFit::Configuration::DoCombinationsInReader ( Bool_t  yesno = 1  )  [inline]

Definition at line 116 of file Configuration.h.

References fDoCombinationsInReader.

00116 { fDoCombinationsInReader = yesno; }

void Configuration::DoDynamicLoading ( Bool_t  yesno = 1  ) 

Definition at line 398 of file Configuration.cxx.

References fDoDynamicLoading.

00399 {
00400   std::cout << " --- Configuration: Doing Dynamic Loading [";
00401     if( yesno==0 ) std::cout << "OFF"; else std::cout << "ON";
00402   std::cout << "] --- " << std::endl;
00403 
00404   fDoDynamicLoading = yesno; 
00405 }

void Configuration::DoElectronTagging ( Bool_t  yesno = 1  ) 

Definition at line 389 of file Configuration.cxx.

References fDoElectronTagging.

Referenced by SwitchOffElectronTagging(), and SwitchOnElectronTagging().

00390 { 
00391   std::cout << " --- Configuration: Doing Electron Tagging [";
00392     if( yesno==0 ) std::cout << "OFF"; else std::cout << "ON";
00393   std::cout << "] --- " << std::endl;
00394 
00395   fDoElectronTagging = yesno; 
00396 }

void Configuration::DoFileChecks ( Bool_t  yesno = 1  ) 

Definition at line 416 of file Configuration.cxx.

References fDoFileChecks.

Referenced by DisableTemplateChecking(), and EnableTemplateChecking().

00417 {
00418   std::cout << " --- Configuration: Checking Template Files [";
00419     if( yesno==0 ) std::cout << "OFF"; else std::cout << "ON";
00420   std::cout << "] --- " << std::endl;
00421 
00422   fDoFileChecks = yesno;
00423 }

Bool_t OscFit::Configuration::DoingCombinationsInCalculator (  )  [inline]

Definition at line 120 of file Configuration.h.

References fDoCombinationsInCalculator.

00120 { return fDoCombinationsInCalculator; }

Bool_t OscFit::Configuration::DoingCombinationsInReader (  )  [inline]

Definition at line 117 of file Configuration.h.

References fDoCombinationsInReader.

00117 { return fDoCombinationsInReader; }

Bool_t OscFit::Configuration::DoingDynamicLoading (  )  [inline]

Definition at line 33 of file Configuration.h.

References fDoDynamicLoading.

00033 { return fDoDynamicLoading; }

Bool_t OscFit::Configuration::DoingElectronTagging (  )  [inline]

Definition at line 85 of file Configuration.h.

References fDoElectronTagging.

00085 { return fDoElectronTagging; }

Bool_t OscFit::Configuration::DoingFileChecks (  )  [inline]

Definition at line 44 of file Configuration.h.

References fDoFileChecks.

00044 { return fDoFileChecks; }

Bool_t OscFit::Configuration::DoingLowResolutionEnergyBins (  )  [inline]

Definition at line 132 of file Configuration.h.

References fDoLowResolutionEnergyBins.

00132 { return fDoLowResolutionEnergyBins; }

Bool_t OscFit::Configuration::DoingNCBkgSystematicInMINOSPlus (  )  [inline]

Definition at line 157 of file Configuration.h.

References fDoNCBkgSystematicInMINOSPlus.

Bool_t OscFit::Configuration::DoingNueEnergySystematic (  )  [inline]

Definition at line 147 of file Configuration.h.

References fDoNueEnergySystematic.

00147 { return fDoNueEnergySystematic; }

Bool_t OscFit::Configuration::DoingNueSpectrumSystematic (  )  [inline]

Definition at line 142 of file Configuration.h.

References fDoNueSpectrumSystematic.

00142 { return fDoNueSpectrumSystematic; }

Bool_t OscFit::Configuration::DoingPerfectChargeSeparation (  )  [inline]

Definition at line 110 of file Configuration.h.

References fPerfectChargeSeparation.

00110 { return fPerfectChargeSeparation; }

Bool_t OscFit::Configuration::DoingProtonTagging (  )  [inline]

Definition at line 80 of file Configuration.h.

References fDoProtonTagging.

00080 { return fDoProtonTagging; }

Bool_t OscFit::Configuration::DoingRockSpectrumSystematic (  )  [inline]

Definition at line 137 of file Configuration.h.

References fDoRockSpectrumSystematic.

00137 { return fDoRockSpectrumSystematic; }

Bool_t OscFit::Configuration::DoingScalingInReader (  )  [inline]

Definition at line 114 of file Configuration.h.

References fDoScalingInReader.

Referenced by OscFit::TemplateIO::ReadFromFile().

00114 { return fDoScalingInReader; }

Bool_t OscFit::Configuration::DoingSystematics (  )  [inline]

Definition at line 49 of file Configuration.h.

References fDoSystematics.

00049 { return fDoSystematics; }

Bool_t OscFit::Configuration::DoingSystematicsInRecoEnergy (  )  [inline]

Definition at line 152 of file Configuration.h.

References fDoSystematicsInRecoEnergy.

00152 { return fDoSystematicsInRecoEnergy; }

void Configuration::DoLowResolutionEnergyBins ( Bool_t  yesno = 1  ) 

Definition at line 508 of file Configuration.cxx.

References fDoLowResolutionEnergyBins.

00509 {
00510   std::cout << " --- Configuration: Doing Low Resolution Energy Bins [";
00511     if( yesno==0 ) std::cout << "OFF"; else std::cout << "ON";
00512   std::cout << "] --- " << std::endl;
00513 
00514   fDoLowResolutionEnergyBins = yesno; 
00515 }

void Configuration::DoNCBkgSystematicInMINOSPlus ( Bool_t  yesno = 1  ) 

Definition at line 544 of file Configuration.cxx.

References fDoNCBkgSystematicInMINOSPlus.

Referenced by SwitchOffNCBkgSystematicInMINOSPlus(), and SwitchOnNCBkgSystematicInMINOSPlus().

00545 {
00546   std::cout << " --- Configuration: Including NC Background Systematic in MINOSPlus [";
00547     if( yesno==0 ) std::cout << "OFF"; else std::cout << "ON";
00548   std::cout << "] --- " << std::endl;
00549 
00550   fDoNCBkgSystematicInMINOSPlus = yesno;
00551 }

void Configuration::DoNueEnergySystematic ( Bool_t  yesno = 1  ) 

Definition at line 535 of file Configuration.cxx.

References fDoNueEnergySystematic.

Referenced by SwitchOffNueEnergySystematic(), and SwitchOnNueEnergySystematic().

00536 {
00537   std::cout << " --- Configuration: Including Nue Energy Systematic [";
00538     if( yesno==0 ) std::cout << "OFF"; else std::cout << "ON";
00539   std::cout << "] --- " << std::endl;
00540 
00541   fDoNueEnergySystematic = yesno; 
00542 }

void Configuration::DoNueSpectrumSystematic ( Bool_t  yesno = 1  ) 

Definition at line 526 of file Configuration.cxx.

References fDoNueSpectrumSystematic.

Referenced by SwitchOffNueSpectrumSystematic(), and SwitchOnNueSpectrumSystematic().

00527 {
00528   std::cout << " --- Configuration: Including Nue Spectrum Systematic [";
00529     if( yesno==0 ) std::cout << "OFF"; else std::cout << "ON";
00530   std::cout << "] --- " << std::endl;
00531 
00532   fDoNueSpectrumSystematic = yesno; 
00533 }

void Configuration::DoPerfectChargeSeparation ( Bool_t  yesno = 1  ) 

Definition at line 467 of file Configuration.cxx.

References fPerfectChargeSeparation.

Referenced by SwitchOffPerfectChargeSeparation(), and SwitchOnPerfectChargeSeparation().

00468 {
00469   std::cout << " --- Configuration: Using Perfect Charge Separation [";
00470     if( yesno==0 ) std::cout << "OFF"; else std::cout << "ON";
00471   std::cout << "] --- " << std::endl;
00472 
00473   if( yesno==true ){
00474     std::cout << " *** Warning: Perfect Charge Separation only works for MC Studies! *** " << std::endl;
00475   }
00476 
00477   fPerfectChargeSeparation = yesno;
00478 }

void Configuration::DoProtonTagging ( Bool_t  yesno = 1  ) 

Definition at line 380 of file Configuration.cxx.

References fDoProtonTagging.

Referenced by SwitchOffProtonTagging(), and SwitchOnProtonTagging().

00381 { 
00382   std::cout << " --- Configuration: Doing Proton Tagging [";
00383     if( yesno==0 ) std::cout << "OFF"; else std::cout << "ON";
00384   std::cout << "] --- " << std::endl;
00385 
00386   fDoProtonTagging = yesno; 
00387 }

void Configuration::DoRockSpectrumSystematic ( Bool_t  yesno = 1  ) 

Definition at line 517 of file Configuration.cxx.

References fDoRockSpectrumSystematic.

Referenced by SwitchOffRockSpectrumSystematic(), and SwitchOnRockSpectrumSystematic().

00518 {
00519   std::cout << " --- Configuration: Including Rock Spectrum Systematic [";
00520     if( yesno==0 ) std::cout << "OFF"; else std::cout << "ON";
00521   std::cout << "] --- " << std::endl;
00522 
00523   fDoRockSpectrumSystematic = yesno; 
00524 }

void OscFit::Configuration::DoScalingInCalculator ( Bool_t  yesno = 1  )  [inline]

Definition at line 113 of file Configuration.h.

References fDoScalingInReader.

00113 { fDoScalingInReader = !yesno; }

void OscFit::Configuration::DoScalingInReader ( Bool_t  yesno = 1  )  [inline]

Definition at line 112 of file Configuration.h.

References fDoScalingInReader.

00112 { fDoScalingInReader = yesno; }

void Configuration::DoSystematics ( Bool_t  yesno = 1  ) 

Definition at line 260 of file Configuration.cxx.

References fDoSystematics.

Referenced by SwitchOffSystematics(), and SwitchOnSystematics().

00261 {
00262   std::cout << " --- Configuration: Doing Systematics [";
00263     if( yesno==0 ) std::cout << "OFF"; else std::cout << "ON";
00264   std::cout << "] --- " << std::endl;
00265 
00266   fDoSystematics = yesno;
00267 }

void Configuration::DoSystematicsInRecoEnergy ( Bool_t  yesno = 1  ) 

Definition at line 553 of file Configuration.cxx.

References fDoSystematicsInRecoEnergy.

Referenced by ApplyShiftsToRecoEnergy(), and ApplyShiftsToTrueEnergy().

00554 {
00555   if( yesno==true ){
00556     std::cout << " --- Configuration: Applying Systematics to Reco Energy --- " << std::endl;
00557     fDoSystematicsInRecoEnergy = 1;
00558   }
00559   else{
00560     std::cout << " --- Configuration: Applying Systematics to True Energy --- " << std::endl;
00561     fDoSystematicsInRecoEnergy = 0;
00562   }
00563 }

void OscFit::Configuration::EnableTemplateChecking (  )  [inline]

Definition at line 41 of file Configuration.h.

References DoFileChecks().

00041 { DoFileChecks(1); }

OscFit::Experiment_t OscFit::Configuration::GetExperiment (  )  [inline]
Int_t OscFit::Configuration::GetMaximumLoad (  )  [inline]

Definition at line 36 of file Configuration.h.

References fMaxNumTemplates.

00036 { return fMaxNumTemplates; }

Int_t OscFit::Configuration::GetNumberOfNewResolutionBins (  )  [inline]

Definition at line 126 of file Configuration.h.

References fNumResBins.

00126 { return fNumResBins; }

Double_t Configuration::GetScale ( Run_t  run  ) 

Definition at line 150 of file Configuration.cxx.

References fTemplateScales.

00151 {
00152   std::map<Run_t,Double_t>::iterator myEntry = fTemplateScales.find(run);
00153 
00154   if( myEntry != fTemplateScales.end() ){
00155     return myEntry->second;
00156   }
00157   
00158   else return 1.0;
00159 }

Configuration * Configuration::Instance (  )  [static]

Definition at line 13 of file Configuration.cxx.

Referenced by OscFit::TemplateMaker::AddEvent(), OscFit::AtmosData::BuildEvent(), OscFit::ArgonData::BuildEvent(), OscFit::TwoFlavourFitter::BuildExptFromMC(), OscFit::ThreeFlavourFitter::BuildExptFromMC(), OscFit::TemplateMaker::BuildFakeAtmosData(), OscFit::TemplateMaker::BuildFakeBeamData(), OscFit::TemplatesForBeamData::BuildFakeData(), OscFit::TemplateMaker::BuildFakeData(), OscFit::TemplatesForBeamData::BuildTemplate(), OscFit::TemplatesForBeamData::BuildTemplates(), OscFit::TemplateMaker::BuildTemplates(), OscFit::TemplatesForBeamData::BuildTemplatesCC2010(), OscFit::TemplatesForBeamData::BuildTemplatesCC2012(), OscFit::TemplatesForBeamData::BuildTemplatesMINOSPlus(), OscFit::TemplatesForBeamData::BuildTemplatesRAF2010(), OscFit::TemplateCalculator::CombineBins(), OscFit::Interface::Fill(), OscFit::TemplateCalculator::GetData(), OscFit::TemplateCalculator::GetDeltaExpectation(), OscFit::TemplateCalculator::GetExpectation(), OscFit::TwoFlavourFitter::GetLnL(), OscFit::ThreeFlavourFitter::GetLnL(), OscFit::TemplateCalculator::Initialise(), OscFit::BinningScheme::LookupBinningUsingScheme1(), OscFit::BinningScheme::LookupBinningUsingScheme2(), OscFit::TemplateIO::ReadFromFile(), OscFit::EventCalculator::ReweightAtmosData(), OscFit::EventCalculator::ReweightBeamData(), OscFit::TwoFlavourFitter::RunFitWithMinuit(), OscFit::ThreeFlavourFitter::RunFitWithMinuit(), SetBinningScheme(), SetInterpolation(), OscFit::TemplateMaker::SetupTemplatesForLBNE(), OscFit::TemplateMaker::SetupTemplatesForMINOS(), OscFit::TwoFlavourFitter::UsingAtmosData(), OscFit::ThreeFlavourFitter::UsingAtmosData(), OscFit::TemplateCalculator::UsingAtmosData(), OscFit::TwoFlavourFitter::UsingBeamData(), OscFit::ThreeFlavourFitter::UsingBeamData(), OscFit::TemplateCalculator::UsingBeamData(), and OscFit::TemplateWriter::WriteSystematics().

00014 {
00015   if( !fgConfiguration ){
00016     fgConfiguration = new Configuration();
00017   }
00018 
00019   return fgConfiguration;
00020 }

Bool_t OscFit::Configuration::RunningOnGrid (  )  [inline]

Definition at line 39 of file Configuration.h.

References fRunOnGrid.

00039 { return fRunOnGrid; }

void Configuration::RunOnGrid ( Bool_t  yesno = 1  ) 

Definition at line 407 of file Configuration.cxx.

References fRunOnGrid.

00408 {
00409   std::cout << " --- Configuration: Running On Grid [";
00410     if( yesno==0 ) std::cout << "OFF"; else std::cout << "ON";
00411   std::cout << "] --- " << std::endl;
00412 
00413   fRunOnGrid = yesno; 
00414 }

void Configuration::ScaleBothDataAndMC ( Bool_t  yesno = 1  ) 

Definition at line 161 of file Configuration.cxx.

References fScaleBothDataAndMC.

00162 {
00163   fScaleBothDataAndMC = yesno;
00164 
00165   std::cout << " --- Configuration: Scaling Both Data and MC [";
00166     if( yesno==0 ) std::cout << "NO"; else std::cout << "YES";
00167   std::cout << "] --- " << std::endl;
00168 
00169   return;
00170 }

void Configuration::ScaleData ( Run_t  run,
Double_t  scale 
)

Definition at line 137 of file Configuration.cxx.

References OscFit::AsString(), fTemplateScales, and UseData().

00138 {
00139   UseData(run); // use this data!
00140 
00141   std::cout << " --- Configuration: Scale " << AsString(run) << " Data By " << scale << std::endl;
00142   
00143   std::map<Run_t,Double_t>::iterator myEntry = fTemplateScales.find(run);
00144   
00145   if( myEntry==fTemplateScales.end() ){
00146     fTemplateScales.insert( std::pair<Run_t,Double_t>(run,scale) );
00147   }
00148 }

Bool_t OscFit::Configuration::ScalingBothDataAndMC (  )  [inline]

Definition at line 23 of file Configuration.h.

References fScaleBothDataAndMC.

Referenced by OscFit::TemplateIO::ReadFromFile().

00023 { return fScaleBothDataAndMC; }

void Configuration::SetBinningScheme ( BinningScheme_t  scheme  ) 

Definition at line 276 of file Configuration.cxx.

References OscFit::AsString(), CombineAtmosResBinsCV(), CombineBeamResBinsCV(), fExperiment, Instance(), OscFit::kCounterForLBNE, OscFit::kCounterForMINOS, OscFit::kLBNE, OscFit::kMINOS, OscFit::kScheme0, OscFit::kScheme1, OscFit::kScheme1A, OscFit::kScheme2, OscFit::kScheme2A, SetBinningScheme(), SwitchOffNueEnergySystematic(), and SwitchOffNueSpectrumSystematic().

Referenced by SetBinningScheme().

00277 {
00278   std::cout << " --- Configuration: Set Binning Scheme [" << AsString(scheme) << "] --- " << std::endl;
00279 
00280   BinningScheme::Instance()->SetBinningScheme( scheme );
00281 
00282   // MINOS Binning Schemes
00283   // =====================
00284   if( scheme==OscFit::kScheme0
00285    || scheme==OscFit::kScheme1
00286    || scheme==OscFit::kScheme1A ){
00287 
00288      // Set Experiment: MINOS
00289      fExperiment = OscFit::kMINOS;
00290 
00291      // Switch off LBNE systematics 
00292      // (just in case...)
00293      SwitchOffNueSpectrumSystematic();
00294      SwitchOffNueEnergySystematic();
00295 
00296      // (Could/should switch off as well...)
00297      //SwitchOffRockSpectrumSystematic();
00298      
00299      // Scheme 1A: 
00300      //  Switch off resbins in Atmos CV sample
00301      if( scheme==OscFit::kScheme1A ){
00302        //       CombineAtmosResBinsCV(true);
00303      }
00304   }
00305 
00306   // LBNE Binning Schemes
00307   // ====================
00308   if( scheme==OscFit::kScheme2 
00309    || scheme==OscFit::kScheme2A ){
00310 
00311     // Set Experiment: LBNE 
00312     fExperiment = OscFit::kLBNE;
00313 
00314     // Scheme 2A:
00315     //  Switch off resbins in Atmos CV sample AND Beam CV sample
00316     if( scheme==OscFit::kScheme2A ){
00317       CombineAtmosResBinsCV(true);
00318       CombineBeamResBinsCV(true);
00319     }
00320   }
00321 
00322   // Event Counters
00323   // ==============
00324   if( scheme==OscFit::kCounterForMINOS ){
00325     fExperiment = OscFit::kMINOS;
00326   }
00327 
00328   if( scheme==OscFit::kCounterForLBNE ){
00329     fExperiment = OscFit::kLBNE;
00330   }
00331 
00332   std::cout << " --- Configuration: Set Experiment [" << AsString(fExperiment) << "] --- " << std::endl;
00333 }

void Configuration::SetInterpolation ( Interpolation_t  mode  ) 

Definition at line 269 of file Configuration.cxx.

References OscFit::AsString(), and Instance().

00270 {
00271   std::cout << " --- Configuration: Set Interpolation Mode [" << AsString(mode) << "] --- " << std::endl;
00272 
00273   Spectrum::Instance()->UseInterpolation( mode );
00274 }

void OscFit::Configuration::SetMaximumLoad ( Int_t  numTemplates  )  [inline]

Definition at line 35 of file Configuration.h.

References fMaxNumTemplates.

00035 { fMaxNumTemplates = numTemplates; }

void Configuration::SetNumberOfNewResolutionBins ( Int_t  nbins  ) 

Definition at line 489 of file Configuration.cxx.

References fNumResBins.

00490 { 
00491        if( nbins>4 ) fNumResBins = 8;
00492   else if( nbins>2 ) fNumResBins = 4;
00493   else if( nbins>1 ) fNumResBins = 2;
00494   else               fNumResBins = 1;
00495 
00496   std::cout << " --- Configuration: Number of New Resolution Bins [" << fNumResBins << "] --- " << std::endl; 
00497 }

void OscFit::Configuration::SwitchOffAtmosResolutionBinning (  )  [inline]

Definition at line 88 of file Configuration.h.

References CombineAtmosResBins().

00088 { CombineAtmosResBins(true);  }

void OscFit::Configuration::SwitchOffElectronTagging (  )  [inline]

Definition at line 84 of file Configuration.h.

References DoElectronTagging().

00084 { DoElectronTagging(0); }

void OscFit::Configuration::SwitchOffNCBkgSystematicInMINOSPlus (  )  [inline]

Definition at line 156 of file Configuration.h.

References DoNCBkgSystematicInMINOSPlus().

00156 { DoNCBkgSystematicInMINOSPlus(false); }

void OscFit::Configuration::SwitchOffNueEnergySystematic (  )  [inline]

Definition at line 146 of file Configuration.h.

References DoNueEnergySystematic().

Referenced by SetBinningScheme().

00146 { DoNueEnergySystematic(0); }

void OscFit::Configuration::SwitchOffNueSpectrumSystematic (  )  [inline]

Definition at line 141 of file Configuration.h.

References DoNueSpectrumSystematic().

Referenced by SetBinningScheme().

void OscFit::Configuration::SwitchOffPerfectChargeSeparation (  )  [inline]

Definition at line 109 of file Configuration.h.

References DoPerfectChargeSeparation().

void OscFit::Configuration::SwitchOffProtonTagging (  )  [inline]

Definition at line 79 of file Configuration.h.

References DoProtonTagging().

00079 { DoProtonTagging(0); }

void OscFit::Configuration::SwitchOffRockSpectrumSystematic (  )  [inline]

Definition at line 136 of file Configuration.h.

References DoRockSpectrumSystematic().

Referenced by UseAtmosLegacyBinning().

void OscFit::Configuration::SwitchOffSystematics (  )  [inline]

Definition at line 48 of file Configuration.h.

References DoSystematics().

00048 { DoSystematics(0); }

void OscFit::Configuration::SwitchOnAtmosResolutionBinning (  )  [inline]

Definition at line 87 of file Configuration.h.

References CombineAtmosResBins().

00087 { CombineAtmosResBins(false); }

void OscFit::Configuration::SwitchOnElectronTagging (  )  [inline]

Definition at line 83 of file Configuration.h.

References DoElectronTagging().

00083 { DoElectronTagging(1); }

void OscFit::Configuration::SwitchOnNCBkgSystematicInMINOSPlus (  )  [inline]

Definition at line 155 of file Configuration.h.

References DoNCBkgSystematicInMINOSPlus().

void OscFit::Configuration::SwitchOnNueEnergySystematic (  )  [inline]

Definition at line 145 of file Configuration.h.

References DoNueEnergySystematic().

00145 { DoNueEnergySystematic(1); }

void OscFit::Configuration::SwitchOnNueSpectrumSystematic (  )  [inline]

Definition at line 140 of file Configuration.h.

References DoNueSpectrumSystematic().

void OscFit::Configuration::SwitchOnPerfectChargeSeparation (  )  [inline]

Definition at line 108 of file Configuration.h.

References DoPerfectChargeSeparation().

void OscFit::Configuration::SwitchOnProtonTagging (  )  [inline]

Definition at line 78 of file Configuration.h.

References DoProtonTagging().

00078 { DoProtonTagging(1); }

void OscFit::Configuration::SwitchOnRockSpectrumSystematic (  )  [inline]

Definition at line 135 of file Configuration.h.

References DoRockSpectrumSystematic().

void OscFit::Configuration::SwitchOnSystematics (  )  [inline]

Definition at line 47 of file Configuration.h.

References DoSystematics().

00047 { DoSystematics(1); }

void Configuration::UseAtmosData ( Bool_t  useme = 1  ) 

Definition at line 191 of file Configuration.cxx.

References OscFit::kAtmos, and UseData().

00192 {
00193   UseData( OscFit::kAtmos,  useme );
00194 }

void Configuration::UseAtmosLegacyBinning ( Bool_t  yesno = 1  ) 

Definition at line 565 of file Configuration.cxx.

References fDoAtmosLegacyBinning, and SwitchOffRockSpectrumSystematic().

00566 {
00567   std::cout << " --- Configuration: Using Atmos Legacy Binning [";
00568     if( yesno==0 ) std::cout << "OFF"; else std::cout << "ON";
00569   std::cout << "] --- " << std::endl;
00570 
00571   fDoAtmosLegacyBinning = yesno; 
00572 
00573   if( yesno ){
00574     SwitchOffRockSpectrumSystematic();
00575   }
00576 }

void Configuration::UseAtmosMuonNeutrinosOnly ( Bool_t  yesno = 1  ) 

Definition at line 440 of file Configuration.cxx.

References fAtmosMuonNeutrinosOnly.

Referenced by UseMuonNeutrinosOnly().

00441 {
00442   std::cout << " --- Configuration: Using Atmos Muon Neutrinos Only [";
00443     if( yesno==0 ) std::cout << "OFF"; else std::cout << "ON";
00444   std::cout << "] --- " << std::endl;
00445 
00446   fAtmosMuonNeutrinosOnly = yesno;
00447 }

void Configuration::UseBeamData ( Bool_t  useme = 1  ) 
void Configuration::UseBeamLegacyBinning ( Bool_t  yesno = 1  ) 

Definition at line 578 of file Configuration.cxx.

References fDoBeamLegacyBinning.

00579 {
00580   std::cout << " --- Configuration: Using Beam Legacy Binning [";
00581     if( yesno==0 ) std::cout << "OFF"; else std::cout << "ON";
00582   std::cout << "] --- " << std::endl;
00583 
00584   fDoBeamLegacyBinning = yesno; 
00585 }

void Configuration::UseBeamMuonNeutrinosOnly ( Bool_t  yesno = 1  ) 

Definition at line 449 of file Configuration.cxx.

References fBeamMuonNeutrinosOnly.

Referenced by UseMuonNeutrinosOnly().

00450 {
00451   std::cout << " --- Configuration: Using Beam Muon Neutrinos Only [";
00452     if( yesno==0 ) std::cout << "OFF"; else std::cout << "ON";
00453   std::cout << "] --- " << std::endl;
00454 
00455   fBeamMuonNeutrinosOnly = yesno;
00456 }

void Configuration::UseCachedOscWeights ( Bool_t  yesno = 1  ) 

Definition at line 587 of file Configuration.cxx.

References fDoCachedOscWeights.

00588 {
00589   std::cout << " --- Configuration: Using Cached Osc Weights [";
00590     if( yesno==0 ) std::cout << "OFF"; else std::cout << "ON";
00591   std::cout << "] --- " << std::endl;
00592 
00593   fDoCachedOscWeights = yesno; 
00594 }

void Configuration::UseContainedVertexOnly ( Bool_t  yesno = 1  ) 

Definition at line 425 of file Configuration.cxx.

References fContainedVertexOnly.

00426 {
00427   std::cout << " --- Configuration: Using Contained Vertex Only [";
00428     if( yesno==0 ) std::cout << "OFF"; else std::cout << "ON";
00429   std::cout << "] --- " << std::endl;
00430 
00431   fContainedVertexOnly = yesno;
00432 }

void Configuration::UseData ( Run_t  run,
Bool_t  useme = 1 
)

Definition at line 172 of file Configuration.cxx.

References OscFit::AsString(), BuildSummaryOfData(), fTemplateFlags, and fUseSubsetOfData.

Referenced by ScaleData(), UseAtmosData(), and UseBeamData().

00173 {
00174   fUseSubsetOfData = 1;
00175 
00176   std::cout << " --- Configuration: Using " << AsString(run) << " Data [";
00177     if( useme==0 ) std::cout << "NO"; else std::cout << "YES";
00178   std::cout << "] --- " << std::endl;
00179   
00180   std::map<Run_t,Bool_t>::iterator myEntry = fTemplateFlags.find(run);
00181   
00182   if( myEntry==fTemplateFlags.end() ){
00183     fTemplateFlags.insert( std::pair<Run_t,Bool_t>(run,useme) );
00184   }
00185 
00186   BuildSummaryOfData();
00187 
00188   return;
00189 }

void Configuration::UseHighResolutionOnly ( Bool_t  yesno = 1  ) 

Definition at line 458 of file Configuration.cxx.

References fHighResolutionOnly.

00459 {
00460   std::cout << " --- Configuration: Using High Resolution Only [";
00461     if( yesno==0 ) std::cout << "OFF"; else std::cout << "ON";
00462   std::cout << "] --- " << std::endl;
00463 
00464   fHighResolutionOnly = yesno;
00465 }

void Configuration::UseMuonNeutrinosOnly ( Bool_t  yesno = 1  ) 

Definition at line 434 of file Configuration.cxx.

References UseAtmosMuonNeutrinosOnly(), and UseBeamMuonNeutrinosOnly().

00435 {
00436   UseAtmosMuonNeutrinosOnly(yesno);
00437   UseBeamMuonNeutrinosOnly(yesno);
00438 }

void Configuration::UseNC ( Bool_t  yesno = 1  ) 

Definition at line 251 of file Configuration.cxx.

References fUseNC.

00252 {
00253   std::cout << " --- Configuration: Using NC Events [";
00254     if( useme==0 ) std::cout << "NO"; else std::cout << "YES";
00255   std::cout << "] --- " << std::endl; 
00256 
00257   fUseNC = useme;
00258 }

void Configuration::UseNewResolutionBinning ( Bool_t  yesno = 1  ) 

Definition at line 480 of file Configuration.cxx.

References fDoNewResolutionBinning.

00481 {
00482   std::cout << " --- Configuration: Using New Resolution Binning [";
00483     if( yesno==0 ) std::cout << "OFF"; else std::cout << "ON";
00484   std::cout << "] --- " << std::endl;
00485 
00486   fDoNewResolutionBinning = yesno; 
00487 }

Bool_t OscFit::Configuration::UsingAtmosData (  )  [inline]

Definition at line 26 of file Configuration.h.

References fUseAtmosData.

00026 { return fUseAtmosData; }

Bool_t OscFit::Configuration::UsingAtmosLegacyBinning (  )  [inline]

Definition at line 160 of file Configuration.h.

References fDoAtmosLegacyBinning.

00160 { return fDoAtmosLegacyBinning; }

Bool_t OscFit::Configuration::UsingAtmosMuonNeutrinosOnly (  )  [inline]

Definition at line 102 of file Configuration.h.

References fAtmosMuonNeutrinosOnly.

00102 { return fAtmosMuonNeutrinosOnly; }

Bool_t OscFit::Configuration::UsingBeamData (  )  [inline]

Definition at line 27 of file Configuration.h.

References fUseBeamData.

00027 { return fUseBeamData; }

Bool_t OscFit::Configuration::UsingBeamLegacyBinning (  )  [inline]

Definition at line 163 of file Configuration.h.

References fDoBeamLegacyBinning.

00163 { return fDoBeamLegacyBinning; }

Bool_t OscFit::Configuration::UsingBeamMuonNeutrinosOnly (  )  [inline]

Definition at line 99 of file Configuration.h.

References fBeamMuonNeutrinosOnly.

00099 { return fBeamMuonNeutrinosOnly; }

Bool_t OscFit::Configuration::UsingCachedOscWeights (  )  [inline]

Definition at line 166 of file Configuration.h.

References fDoCachedOscWeights.

00166 { return fDoCachedOscWeights; }

Bool_t OscFit::Configuration::UsingContainedVertexOnly (  )  [inline]

Definition at line 94 of file Configuration.h.

References fContainedVertexOnly.

00094 { return fContainedVertexOnly; }

Bool_t OscFit::Configuration::UsingHighResolutionOnly (  )  [inline]

Definition at line 105 of file Configuration.h.

References fHighResolutionOnly.

00105 { return fHighResolutionOnly; }

Bool_t OscFit::Configuration::UsingNC (  )  [inline]

Definition at line 91 of file Configuration.h.

References fUseNC.

00091 { return fUseNC; }

Bool_t OscFit::Configuration::UsingNewResolutionBinning (  )  [inline]

Definition at line 123 of file Configuration.h.

References fDoNewResolutionBinning.

Referenced by OscFit::AtmosData::BuildEvent().

00123 { return fDoNewResolutionBinning; }

Bool_t Configuration::UsingThisRun ( Run_t  run  ) 

Definition at line 238 of file Configuration.cxx.

References fTemplateFlags, and fUseSubsetOfData.

Referenced by OscFit::TemplateIO::ReadFromFile().

00239 {
00240   if( fUseSubsetOfData==0 ) return true;
00241 
00242   std::map<Run_t,Bool_t>::iterator myEntry = fTemplateFlags.find(run);
00243 
00244   if( myEntry != fTemplateFlags.end() ){
00245     return myEntry->second;
00246   }
00247   
00248   return false;
00249 }


Member Data Documentation

Definition at line 196 of file Configuration.h.

Referenced by CombineAtmosResBinsCV(), CombiningAtmosResBinsCV(), and Configuration().

Definition at line 198 of file Configuration.h.

Referenced by CombineBeamChargeBins(), CombiningBeamChargeBins(), and Configuration().

std::map<Run_t,Bool_t> OscFit::Configuration::fCombineResBins [private]

Definition at line 179 of file Configuration.h.

Referenced by CombineResBins(), and CombiningResBins().

Definition at line 199 of file Configuration.h.

Referenced by CombineTopologies(), CombiningTopologies(), and Configuration().

Definition at line 222 of file Configuration.h.

Referenced by Configuration(), UseAtmosLegacyBinning(), and UsingAtmosLegacyBinning().

Definition at line 223 of file Configuration.h.

Referenced by Configuration(), UseBeamLegacyBinning(), and UsingBeamLegacyBinning().

Definition at line 227 of file Configuration.h.

Referenced by Configuration(), UseCachedOscWeights(), and UsingCachedOscWeights().

Definition at line 225 of file Configuration.h.

Referenced by Configuration(), DoDynamicLoading(), and DoingDynamicLoading().

Definition at line 201 of file Configuration.h.

Referenced by Configuration(), DoElectronTagging(), and DoingElectronTagging().

Definition at line 229 of file Configuration.h.

Referenced by Configuration(), DoFileChecks(), and DoingFileChecks().

Definition at line 213 of file Configuration.h.

Referenced by Configuration(), DoingNueEnergySystematic(), and DoNueEnergySystematic().

Definition at line 200 of file Configuration.h.

Referenced by Configuration(), DoingProtonTagging(), and DoProtonTagging().

Definition at line 188 of file Configuration.h.

Referenced by Configuration(), DoingSystematics(), and DoSystematics().

Definition at line 237 of file Configuration.h.

Referenced by Configuration(), GetExperiment(), and SetBinningScheme().

Definition at line 204 of file Configuration.h.

Referenced by Configuration(), UseHighResolutionOnly(), and UsingHighResolutionOnly().

Definition at line 233 of file Configuration.h.

Referenced by Configuration(), GetMaximumLoad(), and SetMaximumLoad().

Definition at line 235 of file Configuration.h.

Referenced by Configuration(), RunningOnGrid(), and RunOnGrid().

Definition at line 217 of file Configuration.h.

Referenced by Configuration(), ScaleBothDataAndMC(), and ScalingBothDataAndMC().

std::map<Run_t,Bool_t> OscFit::Configuration::fTemplateFlags [private]

Definition at line 177 of file Configuration.h.

Referenced by BuildSummaryOfData(), UseData(), and UsingThisRun().

std::map<Run_t,Double_t> OscFit::Configuration::fTemplateScales [private]

Definition at line 178 of file Configuration.h.

Referenced by GetScale(), and ScaleData().

Definition at line 183 of file Configuration.h.

Referenced by BuildSummaryOfData(), Configuration(), and UsingAtmosData().

Definition at line 184 of file Configuration.h.

Referenced by BuildSummaryOfData(), Configuration(), and UsingBeamData().

Definition at line 186 of file Configuration.h.

Referenced by Configuration(), UseNC(), and UsingNC().

Definition at line 181 of file Configuration.h.

Referenced by Configuration(), UseData(), and UsingThisRun().


The documentation for this class was generated from the following files:

Generated on 18 Jan 2018 for loon by  doxygen 1.6.1