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

do_extrap.h File Reference

#include "MCReweight/MCReweight.h"
#include "MCReweight/NeugenWeightCalculator.h"
#include "NCUtils/Extrapolation/NCExtrapolationModule.h"
#include "NCUtils/NCOscProb.h"
#include "NCUtils/NCType.h"
#include "TString.h"
#include <iostream>

Go to the source code of this file.

Enumerations

enum  EFitType { kRealData, kFakeData, kFakeDataSplitMC, kMockData }

Functions

TString add_to_output_name (TString s, bool appendSep=true)
void set_msg_levels ()
void set_beam_types (TString beamTypes)
void set_weight_config ()
void set_near_run_limits (int dataLimit, int mcLimit)
void set_far_run_limits (int dataLimit, int mcLimit)
void set_run_to_use (int run)
void set_data_mc_type (EFitType fitType, int mockDataRun=-1, int mockDataSubRun=-2)
void set_data_mc_path (TString uDSTDir)
void set_mc_exposure_for_beam (BeamType::BeamType_t beamType, NC::RunUtil::ERunType run, double pot)
void set_extraction (TString name)
void set_use_custom_pid_cut_and_value (bool useCustom, float value=-9999)
void set_prediction (bool makePred, bool writeFDData=false)
void set_syst_study_params (bool doSystStudy, float shiftInSigma)
void turn_off_systematic_params ()
void adjust_systematic (NCType::EFitParam syst)
void adjust_systematic (NCType::EFitParam syst, float adjVal)
void fit_systematic (NCType::EFitParam syst)
TString get_model_short_name (NCType::EOscModel m)
TString get_param_string (NCType::EFitParam p)
void fit_osc_param (NCType::EFitParam p)
void fix_osc_param (NCType::EFitParam p, double value)
void set_osc_pars (NC::OscProb::OscPars *oscPars)
void set_model_to_fit (NCType::EOscModel m)
void use_fitter_confidence (int confidenceLevel, bool wanted=true)
void set_fitter_params (float precScale=1.)
void add_contour (NCType::EFitParam x, NCType::EFitParam y)
void add_projection (NCType::EFitParam proj)
void do_syst_interpolation (bool interp)
void make_shifted_beams (bool make)
void force_best_fit_to_truth (bool force)
void farnear_smooth_width (double smoothingWidth)
void pid_emulate_farnear (bool emulate)
void pid_true_bin_factor (int factor)
void pid_binning (int nbins, double minpid, double maxpid)
void add_neugen_weight_calculator ()
void run ()

Variables

NCExtrapolationModule extrapMod
Registry reg


Enumeration Type Documentation

enum EFitType
 

Enumeration values:
kRealData 
kFakeData 
kFakeDataSplitMC 
kMockData 

Definition at line 14 of file do_extrap.h.

00014               {
00015   kRealData,
00016   kFakeData,
00017   kFakeDataSplitMC,
00018   kMockData
00019 };


Function Documentation

void add_contour NCType::EFitParam  x,
NCType::EFitParam  y
 

Definition at line 303 of file do_extrap.h.

References Form(), reg, and Registry::Set().

00304 {
00305   static TString contoursList("");
00306   contoursList+=Form("(%d,%d) ", x, y);
00307 
00308   reg.Set("ContoursList", contoursList);
00309 }

void add_neugen_weight_calculator  ) 
 

Definition at line 365 of file do_extrap.h.

References MCReweight::AddWeightCalculator(), and MCReweight::Instance().

Referenced by run().

00366 {
00367   MCReweight &mcReweight = MCReweight::Instance();
00368   NeugenWeightCalculator *fNeugenWeightCal = new NeugenWeightCalculator;
00369   mcReweight.AddWeightCalculator(fNeugenWeightCal);
00370 }

void add_projection NCType::EFitParam  proj  ) 
 

Definition at line 311 of file do_extrap.h.

References Plot::Format(), reg, and Registry::Set().

00312 {
00313   static TString projsList;
00314   projsList += TString::Format("%d ", proj);
00315   reg.Set("ProjectionsList", projsList);
00316 }

TString add_to_output_name TString  s,
bool  appendSep = true
 

Definition at line 30 of file do_extrap.h.

References s().

Referenced by run(), set_data_mc_type(), set_model_to_fit(), and set_osc_pars().

00031 {
00032   static TString outputName;
00033   outputName.Append(s);
00034   if (appendSep) outputName.Append("_");
00035 
00036   return outputName;
00037 }

void adjust_systematic NCType::EFitParam  syst,
float  adjVal
 

Definition at line 211 of file do_extrap.h.

References reg, and Registry::Set().

00212 {
00213   reg.Set("ChangeMCAsData"+NCType::kParams[syst].name, true);
00214   reg.Set("Adjust"+NCType::kParams[syst].name, adjVal);
00215 }

void adjust_systematic NCType::EFitParam  syst  ) 
 

Definition at line 206 of file do_extrap.h.

References reg, and Registry::Set().

00207 {
00208   reg.Set("ChangeMCAsData"+NCType::kParams[syst].name, true);
00209 }

void do_syst_interpolation bool  interp  ) 
 

Definition at line 318 of file do_extrap.h.

References reg, and Registry::Set().

00319 {
00320   reg.Set("DoSystematicInterpolation", interp);
00321 }

void farnear_smooth_width double  smoothingWidth  ) 
 

Definition at line 338 of file do_extrap.h.

References reg, and Registry::Set().

00339 {
00340   reg.Set("FarNearSmoothingWidth", smoothingWidth);
00341 }

void fit_osc_param NCType::EFitParam  p  ) 
 

Definition at line 262 of file do_extrap.h.

References get_param_string(), reg, and Registry::Set().

00263 {
00264   const TString paramString=get_param_string(p);
00265   reg.Set("Fit"+paramString, true);
00266 }

void fit_systematic NCType::EFitParam  syst  ) 
 

Definition at line 217 of file do_extrap.h.

References reg, and Registry::Set().

00218 {
00219   reg.Set("Fit"+NCType::kParams[syst].name, true);
00220 }

void fix_osc_param NCType::EFitParam  p,
double  value
 

Definition at line 268 of file do_extrap.h.

References get_param_string(), reg, and Registry::Set().

00269 {
00270   const TString paramString=get_param_string(p);
00271   reg.Set("Fit"+paramString, false);
00272   reg.Set(paramString+"Val", value);
00273 }

void force_best_fit_to_truth bool  force  ) 
 

Definition at line 329 of file do_extrap.h.

References reg, and Registry::Set().

00330 {
00331   reg.Set("ForceBestFitToTruth", force);
00332 }

TString get_model_short_name NCType::EOscModel  m  ) 
 

Definition at line 226 of file do_extrap.h.

Referenced by set_model_to_fit(), and set_osc_pars().

00227 {
00228   switch(m) {
00229   case NCType::kThreeFlavor: return "3flavor";
00230   case NCType::kNoOscillations: return "noOsc";
00231   case NCType::kFourFlavorGeneral: return "4flavorGen";
00232   case NCType::kFourFlavorDelta43IsBig: return "delta43IsBig";
00233   case NCType::kFourFlavorDelta41Is0: return "delta41Is0";
00234   case NCType::kFourFlavorDelta43Is0: return "delta43Is0";
00235   case NCType::kSterileFraction: return "sFrac";
00236   case NCType::kDecay: return "decay";
00237   case NCType::kDecoherence: return "decoherence";
00238   default:
00239     assert(0 && "Unknown oscmodel");
00240     return "Unknown";
00241   }
00242 }

TString get_param_string NCType::EFitParam  p  ) 
 

Definition at line 244 of file do_extrap.h.

Referenced by fit_osc_param(), and fix_osc_param().

00245 {
00246   switch(p) {
00247   case NCType::kUE3Sqr:  return "UE3Sqr";
00248   case NCType::kTheta13: return "Theta13";
00249   case NCType::kDelta1:  return "Delta1";
00250   case NCType::kDelta2:  return "Delta2";
00251   case NCType::kTheta14: return "Theta14";
00252   case NCType::kTheta24: return "Theta24";
00253   case NCType::kTheta23: return "Theta23";
00254   case NCType::kFs:      return "Fs";
00255   default:
00256     assert(0 && "No String for parameter");
00257     return "Unknown";
00258   }
00259 
00260 }

void make_shifted_beams bool  make  ) 
 

Definition at line 323 of file do_extrap.h.

References reg, and Registry::Set().

00324 {
00325   reg.Set("MakeShiftedBeams", make);
00326   reg.Set("ShiftedBeamsSimpleOnly", make);
00327 }

void pid_binning int  nbins,
double  minpid,
double  maxpid
 

Definition at line 353 of file do_extrap.h.

References reg, and Registry::Set().

00354 {
00355   // Number of bins in PID to use
00356   reg.Set("PIDFitPIDNbins",          nbins);
00357   // Minimum, maximum value of PID
00358   reg.Set("PIDFitPIDmin",          minpid);
00359   reg.Set("PIDFitPIDmax",          maxpid);
00360 }

void pid_emulate_farnear bool  emulate  ) 
 

Definition at line 343 of file do_extrap.h.

References reg, and Registry::Set().

00344 {
00345   reg.Set("PIDFitEmulateFarNear", emulate);
00346 }

void pid_true_bin_factor int  factor  ) 
 

Definition at line 348 of file do_extrap.h.

References reg, and Registry::Set().

00349 {
00350   reg.Set("PIDFitTrueBinFactor", factor);
00351 }

void run  ) 
 

Definition at line 372 of file do_extrap.h.

References add_neugen_weight_calculator(), add_to_output_name(), NCExtrapolationModule::Config(), NCExtrapolationModule::DefaultConfig(), extrapMod, Registry::Merge(), reg, NCExtrapolationModule::Run(), Registry::Set(), and Registry::UnLockValues().

Referenced by Anp::RunModule::Add(), NCExtrapolation::AddEvent(), DemoSnarlList::AddUsingFile(), NtpMaker::Ana(), MakeAlignmentModule::Ana(), FiltMBSpillModule::Ana(), DemoSnarlList::Ana(), CountPot::Ana(), ChopModule::Ana(), Blinder::Ana(), AltDeMuxDisplay::Ana(), RotoServer::BuildDaqBaseName(), RotoClientBinaryFile::BuildDAQFileName(), RotoObjectifier::BuildDaqHeaderBlock(), ParticleDisplay::BuildDisplay(), NueDisplayModule::BuildDisplay(), RotoObjectifier::BuildRecord(), RotoObjectifier::BuildSnarlHeaderBlock(), DbuSubRunSummary::CalcUniqueSeqNo(), DbuRunSummary::CalcUniqueSeqNo(), DbuDaqFileSummary::CalcUniqueSeqNo(), CalDetBeamMomentum::CalDetBeamMomentum(), CandHeader::CandHeader(), cfgtest(), RotoServer::ChooseStreamName(), RotoServer::CloseDaqFile(), RotoClientBinaryFile::CloseDAQFile(), RotoClient::CloseDAQFile(), OltNewModule::CloseFile(), OltNewModule::CloseSpy(), ComparisonResult::ComparisonResult(), JobCEnv::ContinueRun(), MadTVAnalysis::CreatePAN(), MadTestAnalysis::CreatePAN(), MadPIDAnalysis::CreatePAN(), MadMKAnalysis::CreatePAN(), MadDpAnalysis::CreatePAN(), MadAnalysis::CreatePAN(), DbuFarRunQuality::DbuFarRunQuality(), DbuSubRunSummary::DbuSubRunSummary(), NtpStEventGrabber::DoGather(), Anp::SelectSpill::End(), AlignmentRunSummary::Fill(), FillEntry(), NuPlots::FillGeneralHistos(), MeuHistos::FillGeneralHistos(), AlignmentRunSummary::FillSummaryTree(), MakeAlignmentModule::FitTrackLessOne(), DetectorAlignment::FitTrackLessOne(), ToyMCModule::Get(), RerootToTruthModule::Get(), RerootToRawDataModule::Get(), RerootFlsDigitToDigiPE::Get(), RecordSetupModule::Get(), MCMerge::Get(), DigitListModule::Get(), DetSim::Get(), CustomLightInjector::Get(), get_beam_p(), get_run_number(), NueDisplayModule::GetBasicInfo(), NavPrimerGenerator::GetCurrentRunEvent(), MsgService::GetCurrentRunSnarl(), ScanList::GetDecision(), MadBase::GetEntry(), MadChain::GetEntryNumber(), NuDSTAna::GetEvent(), NuDSTAna::GetEventND(), DbuNearRunQuality::GetIndex(), DbuFarRunQuality::GetIndex(), Blinder::GetInfo(), CDAnalysis::GetLowUpTimeCuts(), NCPOTCounter::GetPOTValue(), GetRunNumber(), DataUtil::GetRunSnarlEvent(), RunQualityFinder::GetStatus(), Mint::GoTo(), Jint::GoTo(), IoInputModule::GoTo(), DemoSnarlList::HandleCommand(), Anp::Header::Header(), RunQualityFinder::IsOK(), NavPrimerGenerator::IsOutOfDate(), MadScanDisplay::JumpTo(), MadEvDisplay::JumpTo(), DemoSnarlList::Key(), LoadBeamMomentum(), LoadCERRange(), LoadCERTimeWin(), NtpStEventGrabber::LoadFileList(), LoadOverlapWin(), LoadTOFRange(), NuDSTAna::MakeMicroDstJJEPresel(), MeuAnalysis::MakeSummaryTreeWithNtpStOneSnarl(), MCNNBestMatch::MCNNBestMatch(), MadEdAnalysis::MyCreatePAN(), MadEdAnalysis::MyCreatePANData(), MadEdAnalysis::MyMakeQEFile(), RotoServer::OpenDaqFile(), RotoClientBinaryFile::OpenDAQFile(), RotoClient::OpenDAQFile(), OltNewModule::OpenFile(), NuOutputWriter::OpenFile(), MeuSummaryWriter::OpenFile(), OltNewModule::OpenSpy(), MsgStream::operator()(), TxtEntry::operator<(), TxtEntry::operator==(), Anp::SelectSpill::PassList(), LITuning::PrintAll(), EVD::PrintCanvas(), FillNearRunQuality::ProcessHeader(), FillFarRunQuality::ProcessHeader(), DbuDaqFileModule::ProcessRawBlock(), DbuDaqMonitorModule::ProcessRawRecord(), DbuDaqFileModule::ProcessRawRecord(), NuSystFitter::push_back(), RotoClientModule::Put(), RunQualityFinder::QueryDB(), RawDaqHeader::RawDaqHeader(), RawDaqSnarlHeader::RawDaqSnarlHeader(), MadScanDisplay::ReadEventsFile(), MadEvDisplay::ReadEventsFile(), IoInputModule::ReadHeader(), Anp::ReadRunList(), FillPIDFromText::ReadTextFile(), RecCandHeader::RecCandHeader(), RecDataHeader::RecDataHeader(), PTSimModule::Reco(), OltNewModule::Reco(), OltDataIntegrity::Reco(), DemuxFast::Reco(), DataQualityReader::Reco(), Blinder::Reco(), AutoPIDMaker::Reco(), RunQualityFinder::RecoverRun(), RecPhysicsHeader::RecPhysicsHeader(), UserHist::Refresh(), RunQualityFinder::RejectRun(), DemoSnarlList::RemoveUsingFile(), RotoClientModule::ReOpenOutputFile(), MINFast::Reset(), roto_close_daqfile(), roto_open_daqfile(), RunSnarlEntry::RSEntryHandler(), CDAnalysis::RunNumber2RunPeriod(), TridPageDisplay::RunSnarlEntryHandler(), Anp::RunSubrun::RunSubrun(), RunTypeName(), sepruns(), set_mc_exposure_for_beam(), set_run_to_use(), NueAnalysisCuts::SetInfoObject(), NueAnalysisCuts::SetNtpInfoObjects(), NuOutputWriter::SetupFile(), SimSnarlHeader::SimSnarlHeader(), MeuSummaryWriter::SummaryTreeSetup(), RecValidate::TestDataRecord(), TxtEntry::TxtEntry(), RunSnarlEntry::Update(), EVD::Update(), ParticleDisplay::UpdateDisplay(), NueDisplayModule::UpdateDisplay(), EVD::UpdateSummary(), and EVD::UpdateTime().

00373 {
00374 
00375   // Add the .root to the end of the output filename and set it in the module
00376   reg.Set("FileName", add_to_output_name(".root", false));
00377 
00378   add_neugen_weight_calculator();
00379 
00380   Registry def = extrapMod.DefaultConfig();
00381   def.UnLockValues();
00382 
00383   def.Merge(reg);
00384   extrapMod.Config(def);
00385 
00386   extrapMod.Run();
00387 }

void set_beam_types TString  beamTypes  ) 
 

Definition at line 54 of file do_extrap.h.

References reg, and Registry::Set().

00055 {
00056   reg.Set("BeamType", beamTypes);
00057 }

void set_data_mc_path TString  uDSTDir  ) 
 

Definition at line 134 of file do_extrap.h.

References reg, and Registry::Set().

00135 {
00136   reg.Set("DataMCPath", uDSTDir);
00137 }

void set_data_mc_type EFitType  fitType,
int  mockDataRun = -1,
int  mockDataSubRun = -2
 

Definition at line 87 of file do_extrap.h.

References add_to_output_name(), Form(), kFakeData, kFakeDataSplitMC, kMockData, reg, and Registry::Set().

00092 {
00093 
00094   if (fitType!=kMockData &&
00095       (mockDataRun!=-1 || mockDataSubRun!=-2))
00096     assert(0 && "Mock data parameters set when fit type is not mock data");
00097 
00098   if (fitType==kMockData &&
00099       (mockDataRun==-1 || mockDataSubRun==-2))
00100     assert(0 && "Mock data parameters not set when fit type is mock data");
00101 
00102   switch (fitType) {
00103   case kRealData:
00104     reg.Set("UseMCAsData", false);
00105     reg.Set("UseMockData", false);
00106     add_to_output_name("data");
00107     break;
00108   case kFakeData:
00109     reg.Set("UseMCAsData", true);
00110     reg.Set("UseMockData", false);
00111     reg.Set("SplitMC",     false);
00112     add_to_output_name("mconly");
00113     break;
00114   case kFakeDataSplitMC:
00115     reg.Set("UseMCAsData", true);
00116     reg.Set("UseMockData", false);
00117     reg.Set("SplitMC",     true);
00118     add_to_output_name("splitmc");
00119     break;
00120   case kMockData:
00121     reg.Set("UseMCAsData", false);
00122     reg.Set("UseMockData", true);
00123     reg.Set("MockDataSet", Form("F%d", mockDataRun));
00124     reg.Set("MockDataSubRun", mockDataSubRun);
00125     add_to_output_name("mock");
00126     add_to_output_name(Form("run%d", mockDataRun));
00127     add_to_output_name(Form("%d", mockDataSubRun));
00128     break;
00129   default:
00130     assert(0 && "Invalid fit type");
00131   }
00132 }

void set_extraction TString  name  ) 
 

Definition at line 144 of file do_extrap.h.

References reg, and Registry::Set().

00145 {
00146   // Add a dot at the end if we missed it
00147   if (!name.EndsWith(".")) name+=".";
00148 
00149   // pick the extraction to use - use only 1 at a time
00150   // in this module.
00151   //Loop through extractions and use the one we want
00152   for (Int_t i = 0; i < NCType::kNumExtractions; ++i){
00153     if(name == NCType::kExtractionNames[i]){
00154       reg.Set("ExtractionType", i);
00155       return;
00156     }
00157   }
00158 
00159   assert(0 && "Specified extraction not found");
00160 }

void set_far_run_limits int  dataLimit,
int  mcLimit
 

Definition at line 72 of file do_extrap.h.

References reg, and Registry::Set().

00073 {
00074   reg.Set("RunLimitFarData", dataLimit);
00075   reg.Set("RunLimitFarMC",   mcLimit);
00076 }

void set_fitter_params float  precScale = 1.  ) 
 

Definition at line 294 of file do_extrap.h.

References reg, Registry::Set(), and use_fitter_confidence().

00295 {
00296   use_fitter_confidence(68);
00297   use_fitter_confidence(90);
00298   use_fitter_confidence(99, false);
00299 
00300   reg.Set("PrecScale", precScale);
00301 }

void set_mc_exposure_for_beam BeamType::BeamType_t  beamType,
NC::RunUtil::ERunType  run,
double  pot
 

Definition at line 139 of file do_extrap.h.

References extrapMod, run(), and NCExtrapolationModule::SetMCExposureForBeam().

00140 {
00141   extrapMod.SetMCExposureForBeam(NCBeam::Info(beamType, run), pot);
00142 }

void set_model_to_fit NCType::EOscModel  m  ) 
 

Definition at line 282 of file do_extrap.h.

References add_to_output_name(), get_model_short_name(), reg, and Registry::Set().

00283 {
00284   reg.Set("OscillationModel", int(m));
00285   add_to_output_name(get_model_short_name(m)+"Fit");
00286 }

void set_msg_levels  ) 
 

Definition at line 43 of file do_extrap.h.

References MsgService::GetStream(), MsgService::Instance(), and MsgStream::SetLogLevel().

00044 {
00045   MsgService* m=MsgService::Instance();
00046   m->GetStream("NCExtrapolationModule")->SetLogLevel(Msg::kInfo);
00047   m->GetStream("NCAnalysisCuts")->SetLogLevel(Msg::kInfo);
00048   m->GetStream("NCUtils")->SetLogLevel(Msg::kInfo);
00049   //m->GetStream("NCExtrapolation"->SetLogLevel(Msg::kInfo);
00050   //m->GetStream("MinosMinimization"->SetLogLevel(Msg::kDebug);
00051   m->GetStream("Registry")->SetLogLevel(Msg::kFatal);
00052 }

void set_near_run_limits int  dataLimit,
int  mcLimit
 

Definition at line 66 of file do_extrap.h.

References reg, and Registry::Set().

00067 {
00068   reg.Set("RunLimitNearData", dataLimit);
00069   reg.Set("RunLimitNearMC",   mcLimit);
00070 }

void set_osc_pars NC::OscProb::OscPars oscPars  ) 
 

Definition at line 275 of file do_extrap.h.

References add_to_output_name(), get_model_short_name(), reg, and Registry::Set().

00276 {
00277   assert(sizeof(oscPars) == sizeof(int));
00278   reg.Set("OscPars", int(oscPars));
00279   add_to_output_name(get_model_short_name(oscPars->OscillationModel()));
00280 }

void set_prediction bool  makePred,
bool  writeFDData = false
 

Definition at line 170 of file do_extrap.h.

References reg, and Registry::Set().

00171 {
00172   reg.Set("Prediction", makePred);
00173   if(writeFDData) reg.Set("PredictionWriteData", writeFDData);
00174 }

void set_run_to_use int  run  ) 
 

Definition at line 78 of file do_extrap.h.

References reg, run(), and Registry::Set().

00079 {
00080   //set which runs to use - see NCRunUtil.h for the numbering
00081   reg.Set("RunToUse", run);
00082 }

void set_syst_study_params bool  doSystStudy,
float  shiftInSigma
 

Definition at line 181 of file do_extrap.h.

References reg, and Registry::Set().

00182 {
00183   //Whether or not to do syst study.
00184   //If true, Adjust conditions are ignored in favor of SystShift(sigma).
00185   reg.Set("DoSystStudy", doSystStudy);
00186   reg.Set("SystShift", shiftInSigma);
00187 }

void set_use_custom_pid_cut_and_value bool  useCustom,
float  value = -9999
 

Definition at line 162 of file do_extrap.h.

References reg, and Registry::Set().

00164 {
00165   reg.Set("UsePIDCustomCut", useCustom);
00166   if (useCustom)
00167     reg.Set("PIDCustomCut", value);
00168 }

void set_weight_config  ) 
 

Definition at line 59 of file do_extrap.h.

References reg, and Registry::Set().

00060 {
00061   //default is PiMinus_CedarDaikon
00062   reg.Set("MEGAWeightConfig", "PiMinus_CedarDaikon");
00063 }

void turn_off_systematic_params  ) 
 

Definition at line 189 of file do_extrap.h.

References reg, and Registry::Set().

00190 {
00191   // This is mostly copy-pasted from NCExtrapolationModule, so we don't
00192   // actually *have* to do it. Anyway, it doesn't hurt to make it
00193   // explicit in the macro
00194 
00195   TString adjust   = "Adjust";
00196   TString mcAsData = "ChangeMCAsData";
00197   TString fit      = "Fit";
00198   for(int i = 0; i < NCType::kNumSystematicParameters; ++i){
00199     reg.Set(NCType::kParams[i].name,         false);
00200     reg.Set(mcAsData + NCType::kParams[i].name, false);
00201     reg.Set(fit + NCType::kParams[i].name,      false);
00202   }
00203 }

void use_fitter_confidence int  confidenceLevel,
bool  wanted = true
 

Definition at line 288 of file do_extrap.h.

References Form(), reg, and Registry::Set().

Referenced by set_fitter_params().

00289 {
00290   assert(confidenceLevel==68 || confidenceLevel==90 || confidenceLevel==99);
00291   reg.Set(Form("LazyContoursWant%d", confidenceLevel), wanted);
00292 }


Variable Documentation

NCExtrapolationModule extrapMod
 

Definition at line 23 of file do_extrap.h.

Referenced by run(), and set_mc_exposure_for_beam().

Registry reg
 

Definition at line 24 of file do_extrap.h.

Referenced by Anp::PlotPmt::Add(), add_contour(), add_option_reg(), add_projection(), adjust_systematic(), Anp::RunkNN::Alg(), apply_reg_gui(), BeamMonCuts::BeamMonCuts(), MomNavigator::Clear(), TestDataModule::Config(), Anp::StudyFiducial::Config(), Anp::StdHepTab::Config(), Anp::SnarlTimeTab::Config(), Anp::SnarlAdcTab::Config(), SKZPWeightCalculator::Config(), SetKNNModule::Config(), Anp::SelectTrue::Config(), Anp::SelectSpill::Config(), Anp::SelectShort::Config(), Anp::SelectReson::Config(), Anp::SelectNuMu::Config(), Anp::SelectNC::Config(), Anp::SelectKinem::Config(), Anp::SelectFlux::Config(), Anp::SelectFiducial::Config(), Anp::SelectCount::Config(), Anp::SelectAntiNeutrino::Config(), Anp::RunModule::Config(), Anp::RunkNN::Config(), Anp::RunAlgStore::Config(), Anp::RunAlgSnarl::Config(), Anp::RunAlgEvent::Config(), Anp::PmtHit::Config(), Anp::PlotVtx::Config(), Anp::PlotTruth::Config(), Anp::PlotTrackGeom::Config(), Anp::PlotTrack::Config(), Anp::PlotTime::Config(), Anp::PlotSnarl::Config(), Anp::PlotShower::Config(), Anp::PlotShortSelect::Config(), Anp::PlotShort::Config(), Anp::PlotReson::Config(), Anp::PlotPur::Config(), Anp::PlotPmt::Config(), Anp::PlotKinem::Config(), Anp::PlotFlux::Config(), Anp::PlotEvent::Config(), Anp::PlotEff::Config(), Anp::PlotData::Config(), Anp::PlotBasic::Config(), LZfluk::Config(), Anp::LocalFit::Config(), Lfluk::Config(), Anp::Interface::Config(), Anp::FillTruth::Config(), Anp::FillTrack::Config(), Anp::FillSnarl::Config(), Anp::FillShower::Config(), Anp::FillShortVar::Config(), Anp::FillShortEvent::Config(), Anp::FillNPlane::Config(), Anp::FillMuonId::Config(), Anp::FillMRCC::Config(), Anp::FillMadId::Config(), Anp::FillkNN::Config(), Anp::FillHeader::Config(), Anp::FillFlux::Config(), Anp::FillEvent::Config(), FillDataModule::Config(), Anp::FillData::Config(), Anp::FillBasic::Config(), Anp::EventHitTab::Config(), Anp::EventAdcTab::Config(), Anp::Draw::Config(), Anp::DrawSnarl::Config(), DbiTableProxyRegistry::Config(), AlignmentModule::Config(), Anp::Draw::CreateTGraph(), Anp::Draw::CreateTH2(), do_extractions(), do_syst_interpolation(), NCExtrapolationModule::DoMockExperiments(), DemoEventDump::DumpFragments(), farnear_smooth_width(), DbuDaqFileSummary::FillMapFromString(), BeamMonCuts::FillRegistry(), fit_osc_param(), fit_systematic(), fix_osc_param(), force_best_fit_to_truth(), get_and_spew(), Anp::SelectKinem::GetAlg(), RawRecord::GetName(), RegistryGui::GetRegistry(), Anp::GetString(), DbuDaqFileSummary::GetStringFromMap(), Anp::AlgAdapt::GetVec(), Anp::FiducialCut::Init(), ANtpInfoObjectFillerNC::InitializekNN(), main(), make_shifted_beams(), Anp::RunkNN::MakeKin(), Anp::RunkNN::MakePid(), DbiConfigStream::operator<<(), DbiConfigStream::operator>>(), pid_binning(), pid_emulate_farnear(), pid_true_bin_factor(), Anp::Draw::Read(), Anp::Read(), Anp::ReadList(), Anp::ReadRegistry(), Registry::ReadStream(), Anp::AlgAdapt::ReadVec(), SetKNNModule::Reco(), Cfg::RegistryToString(), run(), DbiSimFlagAssociation::Set(), DbiRollbackDates::Set(), set_ann_use_lowE(), set_beam_types(), set_beamtype(), set_cuts(), set_data_mc_path(), set_data_mc_type(), set_dir(), set_extraction(), set_far_run_limits(), set_file_limit(), set_fitter_params(), set_mc_version(), set_mda_mc_path(), set_model_to_fit(), set_near_run_limits(), set_osc_pars(), set_output(), set_pdf_training_file(), set_prediction(), set_run_to_use(), set_syst_study_params(), set_use_custom_pid_cut_and_value(), set_weight_config(), Anp::RunModule::SetConfig(), BeamMonCuts::SetCutValues(), Anp::SetKey(), RegistryGui::SetPossibles(), RegistryGui::SetPossiblesMenu(), RegistryGui::SetRegistry(), turn_off_systematic_params(), and use_fitter_confidence().


Generated on Mon Feb 15 11:07:56 2010 for loon by  doxygen 1.3.9.1