Public Types | |
enum | EBENFixedKa { kFixedKaonScale } |
enum | EBENCalcKa { kCalcKaonScale } |
Static Public Member Functions | |
static std::unique_ptr< BENDecomp > | LoadFrom (TDirectory *dir, const std::string &name) |
static void | ReduceForBEN2020Decaf (caf::StandardRecord *sr, const caf::SRProxy *srProxy) |
Protected Member Functions | |
BENDecomp () | |
void | Decompose () const |
void | MakeWeightsNumuFromPion () const |
void | MakeWeightsNumuFromKaon () const |
virtual Spectrum | NueEstimate () const |
void | NueEstimateFromPi () const |
void | NueEstimateFromKa () const |
void | NueEstimateFromOther () const |
Definition at line 27 of file BENDecomp.h.
ana::BENDecomp::BENDecomp | ( | SpectrumLoaderBase & | loaderMC, |
SpectrumLoaderBase & | loaderData, | ||
const HistAxis & | axis, | ||
const Cut & | cut, | ||
const SystShifts & | shiftMC = kNoShift , |
||
const SystShifts & | shiftData = kNoShift , |
||
const Var & | wei = kUnweighted , |
||
const HistAxis & | axisNumuPi = kNumuNonQEBENAxis , |
||
const Cut & | cutNumuPi = kBENPiNumuCut , |
||
const double | kaonNormalization = 1.17 |
||
) |
Definition at line 43 of file BENDecomp.cxx.
ana::BENDecomp::BENDecomp | ( | Loaders & | loaders, |
const HistAxis & | axis, | ||
const Cut & | cut, | ||
const SystShifts & | shiftMC = kNoShift , |
||
const SystShifts & | shiftData = kNoShift , |
||
const Var & | wei = kUnweighted , |
||
const HistAxis & | axisNumuPi = kNumuNonQEBENAxis , |
||
const Cut & | cutNumuPi = kBENPiNumuCut , |
||
const double | kaonNormalization = 1.17 |
||
) |
Definition at line 90 of file BENDecomp.cxx.
ana::BENDecomp::BENDecomp | ( | EBENCalcKa | kaopt, |
SpectrumLoaderBase & | loaderMC, | ||
SpectrumLoaderBase & | loaderData, | ||
const HistAxis & | axis, | ||
const Cut & | cut, | ||
const SystShifts & | shiftMC = kNoShift , |
||
const SystShifts & | shiftData = kNoShift , |
||
const Var & | wei = kUnweighted , |
||
const HistAxis & | axisNumuPi = kNumuNonQEBENAxis , |
||
const Cut & | cutNumuPi = kBENPiNumuCut , |
||
const HistAxis & | axisNumuKa = kNumuCCAxisExtended , |
||
const Cut & | cutNumuKa = kBENKaNumuCut |
||
) |
Definition at line 106 of file BENDecomp.cxx.
ana::BENDecomp::BENDecomp | ( | EBENCalcKa | kaopt, |
Loaders & | loaders, | ||
const HistAxis & | axis, | ||
const Cut & | cut, | ||
const SystShifts & | shiftMC = kNoShift , |
||
const SystShifts & | shiftData = kNoShift , |
||
const Var & | wei = kUnweighted , |
||
const HistAxis & | axisNumuPi = kNumuNonQEBENAxis , |
||
const Cut & | cutNumuPi = kBENPiNumuCut , |
||
const HistAxis & | axisNumuKa = kNumuCCAxisExtended , |
||
const Cut & | cutNumuKa = kBENKaNumuCut |
||
) |
Definition at line 155 of file BENDecomp.cxx.
|
virtual |
|
inlineprotected |
Definition at line 123 of file BENDecomp.h.
References Decompose(), MakeWeightsNumuFromKaon(), MakeWeightsNumuFromPion(), NueEstimate(), NueEstimateFromKa(), NueEstimateFromOther(), and NueEstimateFromPi().
|
overridevirtual |
Implements ana::IDecomp.
Definition at line 377 of file BENDecomp.cxx.
References Decompose(), fAntiNue, fData, fIsDecomposed, fNotNue, and NueEstimate().
Referenced by CompareDecompDataMC().
|
overridevirtual |
Implements ana::IDecomp.
Definition at line 337 of file BENDecomp.cxx.
References Decompose(), fAntiNumu, fData, fIsDecomposed, fNotNue, and NueEstimate().
Referenced by CompareDecompDataMC().
|
overridevirtual |
Reimplemented from ana::IDecomp.
Definition at line 742 of file BENDecomp.cxx.
References fData.
Referenced by CompareDecompDataMC(), and PlotPionPlots().
|
protected |
Definition at line 195 of file BENDecomp.cxx.
References fIsDecomposed, MakeWeightsNumuFromKaon(), MakeWeightsNumuFromPion(), NueEstimateFromKa(), and NueEstimateFromPi().
Referenced by AntiNueComponent(), AntiNumuComponent(), BENDecomp(), GetKaonScale(), GetPionWeights(), NCTotalComponent(), NueComponent(), NueEstimate(), NueKaEstimate(), NuePiEstimate(), NumuComponent(), SavePlots(), SavePlotsKa(), and SavePlotsPi().
|
inline |
Definition at line 113 of file BENDecomp.h.
References Decompose(), and fKaonNormalization.
Referenced by plot_BEN().
|
inline |
|
static |
Definition at line 436 of file BENDecomp.cxx.
References ana::assert(), dir, ana::Spectrum::LoadFrom(), runNovaSAM::ret, and registry_explorer::v.
|
protected |
Definition at line 242 of file BENDecomp.cxx.
References abs(), E, epsilon, fIsFixedKaScale, fKaonNormalization, fNumuSelBkg, fNumuSelCCFromKa, fNumuSelCCFromOther, fNumuSelCCFromPi, fNumuSelData, fNumuUncontainBkg, fNumuUncontainCCFromKa, fNumuUncontainCCFromOther, fNumuUncontainCCFromPi, fNumuUncontainData, pot, ana::Spectrum::POT(), ana::Spectrum::Scale(), and ana::Spectrum::ToTH1().
Referenced by BENDecomp(), and Decompose().
|
protected |
Definition at line 287 of file BENDecomp.cxx.
References CornerLabel(), fNumuPiWeights, fNumuSelBkg, fNumuSelCCFromKa, fNumuSelCCFromOther, fNumuSelCCFromPi, fNumuSelCCFromPiPtPz, fNumuSelData, nbinsx, ana::Spectrum::POT(), gen_hdf5record::pt, Simulation(), sum, tmp, and ana::Spectrum::ToTH3().
Referenced by BENDecomp(), and Decompose().
|
overridevirtual |
Reimplemented from ana::IDecomp.
Definition at line 730 of file BENDecomp.cxx.
References fAntiNue.
Referenced by CompareDecompDataMC().
|
overridevirtual |
Reimplemented from ana::IDecomp.
Definition at line 736 of file BENDecomp.cxx.
References fAntiNumu.
Referenced by CompareDecompDataMC().
|
virtualinherited |
Reimplemented in ana::MichelDecomp, ana::FluxDecomp, and ana::ProportionalDecomp.
Definition at line 30 of file IDecomp.cxx.
References om::cout, and allTimeWatchdog::endl.
Referenced by ana::IDecomp::NCTotalComponent().
|
virtualinherited |
Reimplemented in ana::MichelDecomp, ana::FluxDecomp, and ana::ProportionalDecomp.
Definition at line 26 of file IDecomp.cxx.
References om::cout, and allTimeWatchdog::endl.
Referenced by ana::IDecomp::NCTotalComponent().
|
overridevirtual |
Reimplemented from ana::IDecomp.
Definition at line 739 of file BENDecomp.cxx.
References fNCTot.
Referenced by CompareDecompDataMC().
|
overridevirtual |
Reimplemented from ana::IDecomp.
Definition at line 727 of file BENDecomp.cxx.
References fNue.
Referenced by CompareDecompDataMC(), and PlotPionPlots().
|
overridevirtual |
Reimplemented from ana::IDecomp.
Definition at line 733 of file BENDecomp.cxx.
References fNumu.
Referenced by CompareDecompDataMC().
|
overridevirtual |
Implements ana::IDecomp.
Definition at line 361 of file BENDecomp.cxx.
References om::cout, and allTimeWatchdog::endl.
|
overridevirtual |
Implements ana::IDecomp.
Definition at line 354 of file BENDecomp.cxx.
References om::cout, and allTimeWatchdog::endl.
|
overridevirtual |
Reimplemented from ana::IDecomp.
Definition at line 346 of file BENDecomp.cxx.
References Decompose(), fData, fIsDecomposed, fNCTot, fNotNue, and NueEstimate().
Referenced by CompareDecompDataMC().
|
overridevirtual |
Implements ana::IDecomp.
Definition at line 370 of file BENDecomp.cxx.
References Decompose(), fIsDecomposed, and NueEstimate().
Referenced by CompareDecompDataMC(), and PlotPionPlots().
|
protectedvirtual |
Definition at line 177 of file BENDecomp.cxx.
References Decompose(), fData, fIsDecomposed, fNueCCFromKaEstim, fNueCCFromOther, fNueCCFromPiEstim, ana::Spectrum::GetBinnings(), ana::Spectrum::GetEigen(), ana::Spectrum::GetLabels(), MECModelEnuComparisons::i, std::max(), std::min(), and ana::Spectrum::POT().
Referenced by AntiNueComponent(), AntiNumuComponent(), BENDecomp(), NCTotalComponent(), NueComponent(), NumuComponent(), and SavePlots().
|
protected |
Definition at line 237 of file BENDecomp.cxx.
References fKaonNormalization, fNueCCFromKa, fNueCCFromKaEstim, and ana::Spectrum::Scale().
Referenced by BENDecomp(), and Decompose().
|
protected |
Referenced by BENDecomp().
|
protected |
Definition at line 210 of file BENDecomp.cxx.
References fData, fNueCCFromPiEstim, fNueCCFromPiPtPz, fNumuPiWeights, ana::Spectrum::GetBinnings(), ana::Spectrum::GetLabels(), nbinsx, ana::Spectrum::POT(), gen_hdf5record::pt, ana::Spectrum::ToTH3(), and ana::UniqueName().
Referenced by BENDecomp(), and Decompose().
|
inline |
Definition at line 115 of file BENDecomp.h.
References Decompose(), fNueCCFromKaEstim, ReduceForBEN2020Decaf(), and sr.
|
inline |
|
overridevirtual |
Implements ana::IDecomp.
Definition at line 329 of file BENDecomp.cxx.
References Decompose(), fData, fIsDecomposed, fNotNue, fNumu, and NueEstimate().
Referenced by CompareDecompDataMC().
|
static |
Definition at line 746 of file BENDecomp.cxx.
References caf::SRSlice::boxmax, caf::SRSlice::boxmin, caf::SRIDBranch::bpfid, caf::SRSlice::calE, ana::ClearHoughVertexInfo(), ana::ClearMichelTruthInfo(), ana::ClearMultiNuInfo(), ana::ClearSecondaryTrackInfo(), caf::SRTrackBranch::cosmic, caf::SRHeader::det, caf::SRNumuEnergy::E, caf::SRVertexBranch::elastic, caf::StandardRecord::energy, caf::SRSlice::firstplane, caf::SRElastic::fuzzyk, caf::SRNumuEnergy::hadcalE, caf::SRNumuEnergy::hadtrkE, caf::StandardRecord::hdr, MECModelEnuComparisons::i, makeTrainCVSamples::int, caf::SRHeader::ismc, caf::SRElastic::IsValid, caf::SRTrackBranch::kalman, caf::kFARDET, ana::kNue2020NDDecafCut, ana::kNumuContainNDDecafCut, ana::kNumuUncontainNDDecafCut, caf::SRSlice::lastplane, caf::SRFuzzyK::longestidx, caf::StandardRecord::mc, caf::StandardRecord::me, caf::SRSlice::meanpos, caf::SRSlice::ncellsfromedge, caf::SRSlice::ncontplanes, caf::SRNumuEnergy::ndhadcalcatE, caf::SRNumuEnergy::ndhadcaltranE, caf::SRNumuEnergy::ndtrkcalactE, caf::SRNumuEnergy::ndtrkcalcatE, caf::SRNumuEnergy::ndtrkcaltranE, caf::SRNumuEnergy::ndtrklenact, caf::SRNumuEnergy::ndtrklencat, caf::SRSlice::nhit, caf::SRTruthBranch::nnu, caf::SRFuzzyK::npng, caf::SRFuzzyK::nshwlid, caf::SRTrackBase::ntracks, caf::SRKalman::ntracks, caf::SRTruthBranch::nu, caf::SREnergyBranch::numu, caf::StandardRecord::parent, caf::SRFuzzyK::png, caf::SRNumuEnergy::recotrkcchadE, ana::ResetBPFEnergy(), ana::ResetCosRejInfo(), ana::ResetLEMInfo(), ana::ResetLIDInfo(), ana::ResetRVPInfo(), caf::StandardRecord::sel, caf::StandardRecord::slc, caf::SRTrackBase::tracks, caf::SRKalman::tracks, caf::StandardRecord::training, caf::StandardRecord::trk, caf::SRNumuEnergy::trkccE, caf::SRNumuEnergy::trknonqeE, caf::SRNumuEnergy::trkqeE, caf::SRElastic::vtx, caf::StandardRecord::vtx, caf::SRVector3D::X(), caf::SRVector3D::x, caf::SRIDBranch::xnuepid, caf::SRVector3D::Y(), caf::SRVector3D::y, caf::SRVector3D::Z(), and caf::SRVector3D::z.
Referenced by NueKaEstimate().
void ana::BENDecomp::SavePlots | ( | TDirectory * | dir | ) |
Definition at line 647 of file BENDecomp.cxx.
References demo5::c1, ana::CenterTitles(), CornerLabel(), Decompose(), APDHVSetting::dummy, fData, fIsDecomposed, fNue, fNueCCFromKa, fNueCCFromKaEstim, fNueCCFromOther, fNueCCFromPi, fNueCCFromPiEstim, analysePickle::hist, MECModelEnuComparisons::leg, NueEstimate(), ana::Spectrum::POT(), rootlogon(), Simulation(), ana::Spectrum::ToTH1(), and ana::UniqueName().
Referenced by plot_BEN().
void ana::BENDecomp::SavePlotsKa | ( | TDirectory * | dir | ) |
Definition at line 483 of file BENDecomp.cxx.
References demo5::c1, ana::CenterTitles(), om::cerr, CornerLabel(), Decompose(), APDHVSetting::dummy, allTimeWatchdog::endl, fIsDecomposed, fIsFixedKaScale, fKaonNormalization, fNueCCFromKa, fNueCCFromKaEstim, fNumuUncontainBkg, fNumuUncontainCCFromKa, fNumuUncontainCCFromOther, fNumuUncontainCCFromPi, fNumuUncontainData, analysePickle::hist, kGreen, MECModelEnuComparisons::leg, pot, ana::Spectrum::POT(), Preliminary(), rootlogon(), ana::Spectrum::ToTH1(), and ana::UniqueName().
Referenced by plot_BEN().
void ana::BENDecomp::SavePlotsPi | ( | TDirectory * | dir | ) |
Definition at line 540 of file BENDecomp.cxx.
References demo5::c1, ana::CenterTitles(), CornerLabel(), Decompose(), APDHVSetting::dummy, fIsDecomposed, fNueCCFromPi, fNueCCFromPiEstim, fNueCCFromPiPtPz, fNumuPiWeights, fNumuSelBkg, fNumuSelCCFromKa, fNumuSelCCFromOther, fNumuSelCCFromPi, fNumuSelCCFromPiPtPz, fNumuSelData, hist2, kGreen, kRed, make_syst_table_plots::line, pot, ana::Spectrum::POT(), Preliminary(), rootlogon(), Simulation(), ana::Spectrum::ToTH1(), ana::Spectrum::ToTH3(), and ana::UniqueName().
Referenced by plot_BEN().
|
overridevirtual |
Implements ana::IDecomp.
Definition at line 387 of file BENDecomp.cxx.
References dir, fAntiNue, fAntiNumu, fData, fIsFixedKaScale, fKaonNormalization, fNCTot, fNotNue, fNue, fNueCCFromKa, fNueCCFromOther, fNueCCFromPi, fNueCCFromPiPtPz, fNumu, fNumuSelBkg, fNumuSelCCFromKa, fNumuSelCCFromOther, fNumuSelCCFromPi, fNumuSelCCFromPiPtPz, fNumuSelData, fNumuUncontainBkg, fNumuUncontainCCFromKa, fNumuUncontainCCFromOther, fNumuUncontainCCFromPi, fNumuUncontainData, fTotal, ana::Spectrum::SaveTo(), tmp, and registry_explorer::v.
Referenced by make_decomp(), and nue_decomp_scales().
|
protected |
Definition at line 170 of file BENDecomp.h.
Referenced by AntiNueComponent(), MC_AntiNueComponent(), and SaveTo().
|
protected |
Definition at line 172 of file BENDecomp.h.
Referenced by AntiNumuComponent(), MC_AntiNumuComponent(), and SaveTo().
|
protected |
Definition at line 167 of file BENDecomp.h.
Referenced by AntiNueComponent(), AntiNumuComponent(), Data_Component(), NCTotalComponent(), NueEstimate(), NueEstimateFromPi(), NumuComponent(), SavePlots(), and SaveTo().
|
mutableprotected |
Definition at line 197 of file BENDecomp.h.
Referenced by AntiNueComponent(), AntiNumuComponent(), Decompose(), NCTotalComponent(), NueComponent(), NueEstimate(), NumuComponent(), SavePlots(), SavePlotsKa(), and SavePlotsPi().
|
protected |
Definition at line 199 of file BENDecomp.h.
Referenced by MakeWeightsNumuFromKaon(), SavePlotsKa(), and SaveTo().
|
mutableprotected |
Definition at line 200 of file BENDecomp.h.
Referenced by GetKaonScale(), MakeWeightsNumuFromKaon(), NueEstimateFromKa(), SavePlotsKa(), and SaveTo().
|
protected |
Definition at line 168 of file BENDecomp.h.
Referenced by MC_NCTotalComponent(), NCTotalComponent(), and SaveTo().
|
protected |
Definition at line 174 of file BENDecomp.h.
Referenced by AntiNueComponent(), AntiNumuComponent(), NCTotalComponent(), NumuComponent(), and SaveTo().
|
protected |
Definition at line 169 of file BENDecomp.h.
Referenced by MC_NueComponent(), SavePlots(), and SaveTo().
|
protected |
Definition at line 177 of file BENDecomp.h.
Referenced by NueEstimateFromKa(), SavePlots(), SavePlotsKa(), and SaveTo().
|
mutableprotected |
Definition at line 195 of file BENDecomp.h.
Referenced by NueEstimate(), NueEstimateFromKa(), NueKaEstimate(), SavePlots(), and SavePlotsKa().
|
protected |
Definition at line 178 of file BENDecomp.h.
Referenced by NueEstimate(), SavePlots(), and SaveTo().
|
protected |
Definition at line 176 of file BENDecomp.h.
Referenced by SavePlots(), SavePlotsPi(), and SaveTo().
|
mutableprotected |
Definition at line 194 of file BENDecomp.h.
Referenced by NueEstimate(), NueEstimateFromPi(), NuePiEstimate(), SavePlots(), and SavePlotsPi().
|
protected |
Definition at line 179 of file BENDecomp.h.
Referenced by NueEstimateFromPi(), SavePlotsPi(), and SaveTo().
|
protected |
Definition at line 171 of file BENDecomp.h.
Referenced by MC_NumuComponent(), NumuComponent(), and SaveTo().
|
mutableprotected |
Definition at line 198 of file BENDecomp.h.
Referenced by GetPionWeights(), MakeWeightsNumuFromPion(), NueEstimateFromPi(), SavePlotsPi(), and ~BENDecomp().
|
protected |
Definition at line 182 of file BENDecomp.h.
Referenced by MakeWeightsNumuFromKaon(), MakeWeightsNumuFromPion(), SavePlotsPi(), and SaveTo().
|
protected |
Definition at line 184 of file BENDecomp.h.
Referenced by MakeWeightsNumuFromKaon(), MakeWeightsNumuFromPion(), SavePlotsPi(), and SaveTo().
|
protected |
Definition at line 185 of file BENDecomp.h.
Referenced by MakeWeightsNumuFromKaon(), MakeWeightsNumuFromPion(), SavePlotsPi(), and SaveTo().
|
protected |
Definition at line 183 of file BENDecomp.h.
Referenced by MakeWeightsNumuFromKaon(), MakeWeightsNumuFromPion(), SavePlotsPi(), and SaveTo().
|
protected |
Definition at line 186 of file BENDecomp.h.
Referenced by MakeWeightsNumuFromPion(), SavePlotsPi(), and SaveTo().
|
protected |
Definition at line 181 of file BENDecomp.h.
Referenced by MakeWeightsNumuFromKaon(), MakeWeightsNumuFromPion(), SavePlotsPi(), and SaveTo().
|
protected |
Definition at line 189 of file BENDecomp.h.
Referenced by MakeWeightsNumuFromKaon(), SavePlotsKa(), and SaveTo().
|
protected |
Definition at line 191 of file BENDecomp.h.
Referenced by MakeWeightsNumuFromKaon(), SavePlotsKa(), and SaveTo().
|
protected |
Definition at line 192 of file BENDecomp.h.
Referenced by MakeWeightsNumuFromKaon(), SavePlotsKa(), and SaveTo().
|
protected |
Definition at line 190 of file BENDecomp.h.
Referenced by MakeWeightsNumuFromKaon(), SavePlotsKa(), and SaveTo().
|
protected |
Definition at line 188 of file BENDecomp.h.
Referenced by MakeWeightsNumuFromKaon(), SavePlotsKa(), and SaveTo().
|
protected |
Definition at line 173 of file BENDecomp.h.
Referenced by SaveTo().