NC Namespace Reference

Namespaces

namespace  Fitter
namespace  OscProb
 

Contains classes representing various oscillation models.


namespace  RunUtil
 

Utilities to determine what run a file is and whether it is a good run.


namespace  Utility
 

Collection of useful functions.


Classes

class  SystPars
 Hold the values of the various systematic shifts, and perform simple conversions. More...
class  CoordinateConverter
 Convert from CoordNDim to SystPars and OscPars. More...
class  IEventAdder
 Interface from which event adders should derive. More...
class  EventAdderBase
 Functionality common to all current event adders. More...
class  FakeDataAdder
 Every MC event is added to both the MC and "data" spectra. More...
class  SplitFakeDataAdder
 Each MC event is added to either the MC or "data" spectra. More...
class  RealDataAdder
 Adds MC chains to the MC spectra and data chains to the data spectra. More...
class  MockDataAdder
 Handles the kind of mock data that comes from special input files. More...
class  GetChiSqrFromDerived
 Wrap NCExtrapolation::GetChiSqrForMap so that it can be called by the contour finder. More...
class  FitMaster
 Takes an NCExtrapolation and controls all the fitting & contours etc. More...
class  ISpectrumInterpolator
class  SpectrumInterpolatorFancy
 Given a set of reference histograms, interpolate between them. More...
class  SpectrumInterpolatorSimple
class  SpectrumInterpolatorSimplest

Functions

const RegistryEventAdderDefaultConfig ()
 Returns the default configuration registry for event adder options.
IEventAdderEventAdderBuilder (const Registry &r)
 Inspect r and construct the appropriate IEventAdder subclass.

Function Documentation

NC::IEventAdder * NC::EventAdderBuilder ( const Registry r  ) 

Inspect r and construct the appropriate IEventAdder subclass.

Also calls IEventAdder::Config so caller doesn't need to

Definition at line 120 of file NCEventAdder.cxx.

References NC::IEventAdder::Config(), Registry::Get(), Msg::kInfo, and MSG.

Referenced by NCExtrapolationModule::Run().

00121 {
00122   NC::IEventAdder* adder = 0;
00123 
00124   // These should be bools, but the registry is stupid
00125   int useMCAsData, splitMC, useMockData;
00126 
00127   bool ok = true;
00128   ok = ok && r.Get("UseMCAsData", useMCAsData);
00129   ok = ok && r.Get("SplitMC",     splitMC);
00130   ok = ok && r.Get("UseMockData", useMockData);
00131   assert(ok);
00132 
00133   if(useMockData){
00134     MSG("NCEventAdder", Msg::kInfo)
00135       << "Creating NC::MockDataAdder" << endl;
00136     adder = new NC::MockDataAdder;
00137   }
00138   else{
00139     if(useMCAsData){
00140       if(splitMC){
00141         MSG("NCEventAdder", Msg::kInfo)
00142           << "Creating NC::SplitFakeDataAdder" << endl;
00143         adder = new NC::SplitFakeDataAdder;
00144       }
00145       else{
00146         MSG("NCEventAdder", Msg::kInfo)
00147           << "Creating NC::FakeDataAdder" << endl;
00148         adder = new NC::FakeDataAdder;
00149       } // end if splitMC
00150     }
00151     else{
00152       MSG("NCEventAdder", Msg::kInfo) << "Creating NC::RealDataAdder" << endl;
00153       adder = new NC::RealDataAdder;
00154     } // end if useMCAsData
00155   } // end if useMockData
00156 
00157   assert(adder);
00158   adder->Config(r);
00159   return adder;
00160 }

const Registry & NC::EventAdderDefaultConfig (  ) 

Returns the default configuration registry for event adder options.

Definition at line 96 of file NCEventAdder.cxx.

References Registry::LockValues(), Registry::Set(), and Registry::UnLockValues().

Referenced by NCExtrapolationModule::DefaultConfig().

00097 {
00098   static Registry r;
00099 
00100   r.UnLockValues();
00101 
00102   r.Set("RunLimitNearData", INT_MAX);
00103   r.Set("RunLimitFarData",  INT_MAX);
00104   r.Set("RunLimitNearMC",   INT_MAX);
00105   r.Set("RunLimitFarMC",    INT_MAX);
00106 
00107   r.Set("UseMCAsData",      false);
00108   r.Set("SplitMC",          false);
00109   r.Set("SplitMCSeed",      -1);
00110   r.Set("UseMockData",      false);
00111   r.Set("MockDataSet",      "F21910001");
00112   r.Set("MockDataSubRun",    -1);
00113 
00114   r.LockValues();
00115   return r;
00116 }


Generated on 16 Apr 2018 for loon by  doxygen 1.6.1