#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.
|
|
Definition at line 14 of file do_extrap.h. 00014 {
00015 kRealData,
00016 kFakeData,
00017 kFakeDataSplitMC,
00018 kMockData
00019 };
|
|
||||||||||||
|
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 }
|
|
|
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 }
|
|
|
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 }
|
|
||||||||||||
|
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 }
|
|
||||||||||||
|
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 }
|
|
|
Definition at line 206 of file do_extrap.h. References reg, and Registry::Set().
|
|
|
Definition at line 318 of file do_extrap.h. References reg, and Registry::Set().
|
|
|
Definition at line 338 of file do_extrap.h. References reg, and Registry::Set().
|
|
|
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 }
|
|
|
Definition at line 217 of file do_extrap.h. References reg, and Registry::Set().
|
|
||||||||||||
|
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 }
|
|
|
Definition at line 329 of file do_extrap.h. References reg, and Registry::Set().
|
|
|
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 }
|
|
|
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 }
|
|
|
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 }
|
|
||||||||||||||||
|
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 }
|
|
|
Definition at line 343 of file do_extrap.h. References reg, and Registry::Set().
|
|
|
Definition at line 348 of file do_extrap.h. References reg, and Registry::Set().
|
|
|
|
Definition at line 54 of file do_extrap.h. References reg, and Registry::Set().
|
|
|
Definition at line 134 of file do_extrap.h. References reg, and Registry::Set().
|
|
||||||||||||||||
|
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 }
|
|
|
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 }
|
|
||||||||||||
|
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 }
|
|
|
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 }
|
|
||||||||||||||||
|
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 }
|
|
|
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 }
|
|
|
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 }
|
|
||||||||||||
|
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 }
|
|
|
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 }
|
|
||||||||||||
|
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 }
|
|
|
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 }
|
|
||||||||||||
|
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 }
|
|
||||||||||||
|
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 }
|
|
|
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 }
|
|
|
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 }
|
|
||||||||||||
|
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 }
|
|
|
Definition at line 23 of file do_extrap.h. Referenced by run(), and set_mc_exposure_for_beam(). |
|
1.3.9.1