Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
ana::NueBkgdOnlyExtrap Class Reference

Nue extrapolation, applied to background only. More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-03/3FlavorAna/Extrap/NueBkgdOnlyExtrap.h"

Inheritance diagram for ana::NueBkgdOnlyExtrap:
ana::ModularExtrap ana::IExtrap

Public Member Functions

 NueBkgdOnlyExtrap (const bool isRHC, SpectrumLoaderBase &nearMCLoader, SpectrumLoaderBase &farMCswapLoader, SpectrumLoaderBase &farMCnonswapLoader, SpectrumLoaderBase &farMCtauswapLoader, const IDecomp &nueDecomp, const HistAxis &axis, const Cut &fdcut, const Cut &nueNDcut, const SystShifts &shiftMC=kNoShift, const Var &weight=kUnweighted)
 
 NueBkgdOnlyExtrap (const bool isRHC, Loaders &loaders, const IDecomp &nueDecomp, const HistAxis &axis, const Cut &fdcut, const Cut &nueNDcut, const SystShifts &shiftMC=kNoShift, const Var &weight=kUnweighted)
 
void SaveTo (TDirectory *dir, const std::string &name) const override
 
void SavePlotsNue (TDirectory *dir, double potFD) const
 
void SavePlotsNueRHC (TDirectory *dir, double potFD) const
 
void SavePlotsNumu (TDirectory *dir, double potFD) const
 
OscillatableSpectrum NueSurvComponent () override
 Charged current electron neutrino survival ( $\nu_e\to\nu_e$) More...
 
OscillatableSpectrum AntiNueSurvComponent () override
 Charged current electron antineutrino survival ( $\bar\nu_e\to\bar\nu_e$) More...
 
OscillatableSpectrum NumuSurvComponent () override
 Charged current muon neutrino survival ( $\nu_\mu\to\nu_\mu$) More...
 
OscillatableSpectrum AntiNumuSurvComponent () override
 Charged current muon antineutrino survival ( $\bar\nu_\mu\to\bar\nu_\mu$) More...
 
OscillatableSpectrum NueAppComponent () override
 Charged current electron neutrino appearance ( $\nu_\mu\to\nu_e$) More...
 
OscillatableSpectrum AntiNueAppComponent () override
 Charged current electron antineutrino appearance ( $\bar\nu_\mu\to\bar\nu_e$) More...
 
OscillatableSpectrum NumuAppComponent () override
 Charged current muon neutrino appearance ( $\nu_e\to\nu_\mu$) More...
 
OscillatableSpectrum AntiNumuAppComponent () override
 Charged current muon antineutrino appearance ( $\bar\nu_e\to\bar\nu_\mu$) More...
 
OscillatableSpectrum TauFromMuComponent () override
 Charged current tau neutrino appearance from muon neutrino ( $\nu_\mu\to\nu_\tau$) More...
 
OscillatableSpectrum AntiTauFromMuComponent () override
 Charged current tau antineutrino appearance from muon antineutrino ( $\bar\nu_\mu\to\bar\nu_\tau$) More...
 
OscillatableSpectrum TauFromEComponent () override
 Charged current tau neutrino appearance from electron neutrino ( $\nu_e\to\nu_\tau$) More...
 
OscillatableSpectrum AntiTauFromEComponent () override
 Charged current tau antineutrino appearance from electron antineutrino ( $\bar\nu_e\to\bar\nu_\tau$) More...
 
Spectrum NCTotalComponent () override
 Neutral currents. More...
 
Spectrum NCComponent () override
 
Spectrum NCAntiComponent () override
 
std::vector< ModularExtrapComponent * > GetModExtrapComponents () const
 

Static Public Member Functions

static std::unique_ptr< ModularExtrapLoadFrom (TDirectory *dir, const std::string &name)
 

Protected Attributes

std::unique_ptr< ModularExtrapComponentfEEextrap
 
std::unique_ptr< ModularExtrapComponentfEEAntiextrap
 
std::unique_ptr< ModularExtrapComponentfMMextrap
 
std::unique_ptr< ModularExtrapComponentfMMAntiextrap
 
std::unique_ptr< ModularExtrapComponentfMEextrap
 
std::unique_ptr< ModularExtrapComponentfMEAntiextrap
 
std::unique_ptr< ModularExtrapComponentfEMextrap
 
std::unique_ptr< ModularExtrapComponentfEMAntiextrap
 
std::unique_ptr< ModularExtrapComponentfNCTotalextrap
 
std::unique_ptr< ModularExtrapComponentfNCextrap
 
std::unique_ptr< ModularExtrapComponentfNCAntiextrap
 
std::unique_ptr< ModularExtrapComponentfMTextrap
 
std::unique_ptr< ModularExtrapComponentfMTAntiextrap
 
std::unique_ptr< ModularExtrapComponentfETextrap
 
std::unique_ptr< ModularExtrapComponentfETAntiextrap
 

Detailed Description

Nue extrapolation, applied to background only.

Definition at line 16 of file NueBkgdOnlyExtrap.h.

Constructor & Destructor Documentation

ana::NueBkgdOnlyExtrap::NueBkgdOnlyExtrap ( const bool  isRHC,
SpectrumLoaderBase nearMCLoader,
SpectrumLoaderBase farMCswapLoader,
SpectrumLoaderBase farMCnonswapLoader,
SpectrumLoaderBase farMCtauswapLoader,
const IDecomp nueDecomp,
const HistAxis axis,
const Cut fdcut,
const Cut nueNDcut,
const SystShifts shiftMC = kNoShift,
const Var weight = kUnweighted 
)

Definition at line 13 of file NueBkgdOnlyExtrap.cxx.

References ana::ModularExtrap::fEEAntiextrap, ana::ModularExtrap::fEEextrap, ana::ModularExtrap::fMEAntiextrap, ana::ModularExtrap::fMEextrap, ana::ModularExtrap::fMMAntiextrap, ana::ModularExtrap::fMMextrap, ana::ModularExtrap::fNCAntiextrap, ana::ModularExtrap::fNCextrap, ana::kIsAntiNu, ana::kIsBeamNue(), ana::kIsNC, ana::kIsNumuCC(), ana::kIsSig(), ana::kNoCut, ana::NC, ana::NCbar, ana::nue, ana::nuebar, ana::numu, and ana::numubar.

24  : ModularExtrap(farMCswap,
25  farMCnonswap,
26  farMCtauswap,
27  axis,
28  fdcut,
29  shiftMC,
30  weight)
31  {
32 
33  // Reset signal extrap comps to be empty
34  fMEextrap = std::unique_ptr<ModularExtrapComponent>(
35  new NoReweight(
36  farMCswap, axis, !kNoCut, shiftMC, weight, kIsSig && !kIsAntiNu ) );
37  fMEAntiextrap = std::unique_ptr<ModularExtrapComponent>(
38  new NoReweight(
39  farMCswap, axis, !kNoCut, shiftMC, weight, kIsSig && kIsAntiNu ) );
40 
41  // mu -> mu ----
42  fMMextrap = std::unique_ptr<ModularExtrapComponent>(
43  new RecoReweight(
44  nearMC, axis, fdcut, shiftMC, weight,
45  "mu -> mu", "#nu_{#mu} #rightarrow #nu_{#mu}",
46  nueNDcut, nueDecomp, // nue selection in ND
47  DecompResult::numu, kIsNumuCC && !kIsAntiNu, // numu truth in ND
48  farMCnonswap, kIsNumuCC && !kIsAntiNu // mu->mu in FD
49  )
50  );
51  // mubar -> mubar ---
52  if ( isRHC ) {
53  fMMAntiextrap = std::unique_ptr<ModularExtrapComponent>(
54  new RecoReweight(
55  nearMC, axis, fdcut, shiftMC, weight,
56  "mubar -> mubar", "#bar{#nu}_{#mu} #rightarrow #bar{#nu}_{#mu}",
57  nueNDcut, nueDecomp, // nue selection in ND
58  DecompResult::numubar, kIsNumuCC && kIsAntiNu, // numu truth in ND
59  farMCnonswap, kIsNumuCC && kIsAntiNu // mu->mu in FD
60  )
61  );
62  }
63  // NC -> NC ----
64  fNCextrap = std::unique_ptr<ModularExtrapComponent>(
65  new RecoReweight(
66  nearMC, axis, fdcut, shiftMC, weight,
67  "NC -> NC", "NC #rightarrow NC",
68  nueNDcut, nueDecomp, // nue selection in ND
69  DecompResult::NC, kIsNC && !kIsAntiNu, // NC truth in ND
70  farMCswap, kIsNC && !kIsAntiNu, // NC->NC in FD
71  farMCnonswap, farMCtauswap // extra NC stats
72  )
73  );
74  // NC Anti -> NC Anti ---
75  fNCAntiextrap = std::unique_ptr<ModularExtrapComponent>(
76  new RecoReweight(
77  nearMC, axis, fdcut, shiftMC, weight,
78  "NCbar -> NCbar", "NC bar #rightarrow NC bar",
79  nueNDcut, nueDecomp, // nue selection in ND
80  DecompResult::NCbar, kIsNC && kIsAntiNu, // NC truth in ND
81  farMCswap, kIsNC && kIsAntiNu, // NC->NC in FD
82  farMCnonswap, farMCtauswap // extra NC stats
83  )
84  );
85  // e -> e ----
86  fEEextrap = std::unique_ptr<ModularExtrapComponent>(
87  new RecoReweight(
88  nearMC, axis, fdcut, shiftMC, weight,
89  "e -> e", "#nu_{e} #rightarrow #nu_{e}",
90  nueNDcut, nueDecomp, // nue selection in ND
91  DecompResult::nue, kIsBeamNue && !kIsAntiNu, // nue truth in ND
92  farMCnonswap, kIsBeamNue && !kIsAntiNu // e->e in FD
93  )
94  );
95  // ebar -> ebar ---
96  if ( isRHC ) {
97  fEEAntiextrap = std::unique_ptr<ModularExtrapComponent>(
98  new RecoReweight(
99  nearMC, axis, fdcut, shiftMC, weight,
100  "ebar -> ebar", "#bar{#nu}_{e} #rightarrow #bar{#nu}_{e}",
101  nueNDcut, nueDecomp, // nue selection in ND
102  DecompResult::nuebar, kIsBeamNue && kIsAntiNu, // nue truth in ND
103  farMCnonswap, kIsBeamNue && kIsAntiNu // e->e in FD
104  )
105  );
106  }
107 
108  }
const Cut kIsNumuCC(CCFlavSel(14, 14))
Select CC .
std::unique_ptr< ModularExtrapComponent > fMMextrap
Definition: ModularExtrap.h:92
const Var weight
std::unique_ptr< ModularExtrapComponent > fMEextrap
Definition: ModularExtrap.h:94
const Cut kIsAntiNu([](const caf::SRProxy *sr){if(sr->mc.nnu==0) return false;assert(sr->mc.nnu==1);return sr->mc.nu[0].pdg< 0;})
Is this truly an antineutrino?
Definition: TruthCuts.h:53
const Cut kIsBeamNue(CCFlavSel(12, 12))
Select CC .
std::unique_ptr< ModularExtrapComponent > fNCextrap
std::unique_ptr< ModularExtrapComponent > fMEAntiextrap
Definition: ModularExtrap.h:95
const Cut kIsNC([](const caf::SRProxy *sr){if(sr->mc.nnu==0) return false;assert(sr->mc.nnu==1);return!sr->mc.nu[0].iscc;})
Is this a Neutral Current event?
Definition: TruthCuts.h:8
const Cut kIsSig(CCFlavSel(12, 14))
Select CC .
std::unique_ptr< ModularExtrapComponent > fEEAntiextrap
Definition: ModularExtrap.h:91
std::unique_ptr< ModularExtrapComponent > fNCAntiextrap
std::unique_ptr< ModularExtrapComponent > fMMAntiextrap
Definition: ModularExtrap.h:93
std::unique_ptr< ModularExtrapComponent > fEEextrap
Definition: ModularExtrap.h:90
const Cut kNoCut
The simplest possible cut: pass everything, used as a default.
Definition: Cut.h:109
ana::NueBkgdOnlyExtrap::NueBkgdOnlyExtrap ( const bool  isRHC,
Loaders loaders,
const IDecomp nueDecomp,
const HistAxis axis,
const Cut fdcut,
const Cut nueNDcut,
const SystShifts shiftMC = kNoShift,
const Var weight = kUnweighted 
)

Definition at line 112 of file NueBkgdOnlyExtrap.cxx.

125  nueDecomp,
126  axis,
127  fdcut,
128  nueNDcut,
129  shiftMC,
130  weight)
131  {}
Near Detector underground.
Definition: SREnums.h:10
Far Detector at Ash River.
Definition: SREnums.h:11
const Var weight
NueBkgdOnlyExtrap(const bool isRHC, SpectrumLoaderBase &nearMCLoader, SpectrumLoaderBase &farMCswapLoader, SpectrumLoaderBase &farMCnonswapLoader, SpectrumLoaderBase &farMCtauswapLoader, const IDecomp &nueDecomp, const HistAxis &axis, const Cut &fdcut, const Cut &nueNDcut, const SystShifts &shiftMC=kNoShift, const Var &weight=kUnweighted)
std::vector< Loaders * > loaders
Definition: syst_header.h:386

Member Function Documentation

OscillatableSpectrum ana::ModularExtrap::AntiNueAppComponent ( )
overridevirtualinherited

Charged current electron antineutrino appearance ( $\bar\nu_\mu\to\bar\nu_e$)

Implements ana::IExtrap.

Definition at line 197 of file ModularExtrap.cxx.

References ana::ModularExtrap::fMEAntiextrap.

198  {return fMEAntiextrap->Return();}
std::unique_ptr< ModularExtrapComponent > fMEAntiextrap
Definition: ModularExtrap.h:95
OscillatableSpectrum ana::ModularExtrap::AntiNueSurvComponent ( )
overridevirtualinherited

Charged current electron antineutrino survival ( $\bar\nu_e\to\bar\nu_e$)

Implements ana::IExtrap.

Definition at line 185 of file ModularExtrap.cxx.

References ana::ModularExtrap::fEEAntiextrap.

186  {return fEEAntiextrap->Return();}
std::unique_ptr< ModularExtrapComponent > fEEAntiextrap
Definition: ModularExtrap.h:91
OscillatableSpectrum ana::ModularExtrap::AntiNumuAppComponent ( )
overridevirtualinherited

Charged current muon antineutrino appearance ( $\bar\nu_e\to\bar\nu_\mu$)

Implements ana::IExtrap.

Definition at line 203 of file ModularExtrap.cxx.

References ana::ModularExtrap::fEMAntiextrap.

204  {return fEMAntiextrap->Return();}
std::unique_ptr< ModularExtrapComponent > fEMAntiextrap
Definition: ModularExtrap.h:97
OscillatableSpectrum ana::ModularExtrap::AntiNumuSurvComponent ( )
overridevirtualinherited

Charged current muon antineutrino survival ( $\bar\nu_\mu\to\bar\nu_\mu$)

Implements ana::IExtrap.

Definition at line 191 of file ModularExtrap.cxx.

References ana::ModularExtrap::fMMAntiextrap.

192  {return fMMAntiextrap->Return();}
std::unique_ptr< ModularExtrapComponent > fMMAntiextrap
Definition: ModularExtrap.h:93
OscillatableSpectrum ana::ModularExtrap::AntiTauFromEComponent ( )
overridevirtualinherited

Charged current tau antineutrino appearance from electron antineutrino ( $\bar\nu_e\to\bar\nu_\tau$)

Implements ana::IExtrap.

Definition at line 224 of file ModularExtrap.cxx.

References ana::ModularExtrap::fETAntiextrap.

225  {return fETAntiextrap->Return();}
std::unique_ptr< ModularExtrapComponent > fETAntiextrap
OscillatableSpectrum ana::ModularExtrap::AntiTauFromMuComponent ( )
overridevirtualinherited

Charged current tau antineutrino appearance from muon antineutrino ( $\bar\nu_\mu\to\bar\nu_\tau$)

Implements ana::IExtrap.

Definition at line 218 of file ModularExtrap.cxx.

References ana::ModularExtrap::fMTAntiextrap.

219  {return fMTAntiextrap->Return();}
std::unique_ptr< ModularExtrapComponent > fMTAntiextrap
std::vector<ModularExtrapComponent*> ana::ModularExtrap::GetModExtrapComponents ( ) const
inlineinherited

Definition at line 60 of file ModularExtrap.h.

References allInOneTrainingPlots::axis, ana::ModularExtrap::fEEAntiextrap, ana::ModularExtrap::fEEextrap, ana::ModularExtrap::fEMAntiextrap, ana::ModularExtrap::fEMextrap, ana::ModularExtrap::fETAntiextrap, ana::ModularExtrap::fETextrap, ana::ModularExtrap::fMEAntiextrap, ana::ModularExtrap::fMEextrap, ana::ModularExtrap::fMMAntiextrap, ana::ModularExtrap::fMMextrap, ana::ModularExtrap::fMTAntiextrap, ana::ModularExtrap::fMTextrap, ana::ModularExtrap::fNCAntiextrap, ana::ModularExtrap::fNCextrap, ana::ModularExtrap::fNCTotalextrap, ana::ModularExtrap::ModularExtrap(), and ana::weight.

Referenced by ana::GetDecomp(), and make_files_for_decomp_plots().

61  {
62  return {
63  fEEextrap.get(), fEEAntiextrap.get(),
64  fMMextrap.get(), fMMAntiextrap.get(),
65  fMEextrap.get(), fMEAntiextrap.get(),
66  fEMextrap.get(), fEMAntiextrap.get(),
67  //nc
68  fNCTotalextrap.get(), fNCextrap.get(), fNCAntiextrap.get(),
69  //end nc
70  fMTextrap.get(), fMTAntiextrap.get(),
71  fETextrap.get(), fETAntiextrap.get()
72  };
73  }
std::unique_ptr< ModularExtrapComponent > fMMextrap
Definition: ModularExtrap.h:92
std::unique_ptr< ModularExtrapComponent > fMEextrap
Definition: ModularExtrap.h:94
std::unique_ptr< ModularExtrapComponent > fEMAntiextrap
Definition: ModularExtrap.h:97
std::unique_ptr< ModularExtrapComponent > fNCextrap
std::unique_ptr< ModularExtrapComponent > fMTAntiextrap
std::unique_ptr< ModularExtrapComponent > fNCTotalextrap
Definition: ModularExtrap.h:99
std::unique_ptr< ModularExtrapComponent > fMEAntiextrap
Definition: ModularExtrap.h:95
std::unique_ptr< ModularExtrapComponent > fEMextrap
Definition: ModularExtrap.h:96
std::unique_ptr< ModularExtrapComponent > fEEAntiextrap
Definition: ModularExtrap.h:91
std::unique_ptr< ModularExtrapComponent > fNCAntiextrap
std::unique_ptr< ModularExtrapComponent > fMMAntiextrap
Definition: ModularExtrap.h:93
std::unique_ptr< ModularExtrapComponent > fETAntiextrap
std::unique_ptr< ModularExtrapComponent > fEEextrap
Definition: ModularExtrap.h:90
std::unique_ptr< ModularExtrapComponent > fMTextrap
std::unique_ptr< ModularExtrapComponent > fETextrap
std::unique_ptr< ModularExtrap > ana::ModularExtrap::LoadFrom ( TDirectory *  dir,
const std::string name 
)
staticinherited

Definition at line 94 of file ModularExtrap.cxx.

References ana::assert(), dir, ana::LoadFrom< ModularExtrapComponent >(), and runNovaSAM::ret.

Referenced by ana::ModularExtrapSterile::LoadFrom().

95  {
96  dir = dir->GetDirectory(name.c_str()); // switch to subdir
97  assert(dir);
98 
99  std::unique_ptr<ModularExtrap> ret(new ModularExtrap);
100 
101  ret->fEEextrap = ana::LoadFrom<ModularExtrapComponent>(dir, "EEextrap");
102  ret->fEMextrap = ana::LoadFrom<ModularExtrapComponent>(dir, "EMextrap");
103  ret->fMEextrap = ana::LoadFrom<ModularExtrapComponent>(dir, "MEextrap");
104  ret->fMMextrap = ana::LoadFrom<ModularExtrapComponent>(dir, "MMextrap");
105  ret->fEEAntiextrap = ana::LoadFrom<ModularExtrapComponent>(dir, "EEAntiextrap");
106  ret->fEMAntiextrap = ana::LoadFrom<ModularExtrapComponent>(dir, "EMAntiextrap");
107  ret->fMEAntiextrap = ana::LoadFrom<ModularExtrapComponent>(dir, "MEAntiextrap");
108  ret->fMMAntiextrap = ana::LoadFrom<ModularExtrapComponent>(dir, "MMAntiextrap");
109  ret->fNCTotalextrap = ana::LoadFrom<ModularExtrapComponent>(dir, "NCTotalextrap");
110  ret->fNCextrap = ana::LoadFrom<ModularExtrapComponent>(dir, "NCextrap");
111  ret->fNCAntiextrap = ana::LoadFrom<ModularExtrapComponent>(dir, "NCAntiextrap");
112  ret->fMTextrap = ana::LoadFrom<ModularExtrapComponent>(dir, "MTextrap");
113  ret->fETextrap = ana::LoadFrom<ModularExtrapComponent>(dir, "ETextrap");
114  ret->fMTAntiextrap = ana::LoadFrom<ModularExtrapComponent>(dir, "MTAntiextrap");
115  ret->fETAntiextrap = ana::LoadFrom<ModularExtrapComponent>(dir, "ETAntiextrap");
116 
117  delete dir;
118 
119  return ret;
120  }
const XML_Char * name
Definition: expat.h:151
std::unique_ptr< ModularExtrapComponent > LoadFrom< ModularExtrapComponent >(TDirectory *dir, const std::string &label)
TDirectory * dir
Definition: macro.C:5
assert(nhit_max >=nhit_nbins)
Spectrum ana::ModularExtrap::NCAntiComponent ( )
overridevirtualinherited

Implements ana::IExtrap.

Definition at line 209 of file ModularExtrap.cxx.

References ana::ModularExtrap::fNCAntiextrap.

Referenced by ana::ModularExtrap::NCTotalComponent().

210  {return fNCAntiextrap->Return().Unoscillated();}
std::unique_ptr< ModularExtrapComponent > fNCAntiextrap
Spectrum ana::ModularExtrap::NCComponent ( )
overridevirtualinherited

Implements ana::IExtrap.

Definition at line 206 of file ModularExtrap.cxx.

References ana::ModularExtrap::fNCextrap.

Referenced by ana::ModularExtrap::NCTotalComponent().

207  {return fNCextrap->Return().Unoscillated();}
std::unique_ptr< ModularExtrapComponent > fNCextrap
Spectrum ana::ModularExtrap::NCTotalComponent ( )
overridevirtualinherited

Neutral currents.

Implements ana::IExtrap.

Reimplemented in ana::ModularExtrapSterile.

Definition at line 212 of file ModularExtrap.cxx.

References ana::ModularExtrap::NCAntiComponent(), and ana::ModularExtrap::NCComponent().

213  {return NCComponent() + NCAntiComponent() ;}
Spectrum NCAntiComponent() override
Spectrum NCComponent() override
OscillatableSpectrum ana::ModularExtrap::NueAppComponent ( )
overridevirtualinherited

Charged current electron neutrino appearance ( $\nu_\mu\to\nu_e$)

Implements ana::IExtrap.

Definition at line 194 of file ModularExtrap.cxx.

References ana::ModularExtrap::fMEextrap.

195  {return fMEextrap->Return();}
std::unique_ptr< ModularExtrapComponent > fMEextrap
Definition: ModularExtrap.h:94
OscillatableSpectrum ana::ModularExtrap::NueSurvComponent ( )
overridevirtualinherited

Charged current electron neutrino survival ( $\nu_e\to\nu_e$)

Implements ana::IExtrap.

Definition at line 182 of file ModularExtrap.cxx.

References ana::ModularExtrap::fEEextrap.

183  {return fEEextrap->Return();}
std::unique_ptr< ModularExtrapComponent > fEEextrap
Definition: ModularExtrap.h:90
OscillatableSpectrum ana::ModularExtrap::NumuAppComponent ( )
overridevirtualinherited

Charged current muon neutrino appearance ( $\nu_e\to\nu_\mu$)

Implements ana::IExtrap.

Definition at line 200 of file ModularExtrap.cxx.

References ana::ModularExtrap::fEMextrap.

201  {return fEMextrap->Return();}
std::unique_ptr< ModularExtrapComponent > fEMextrap
Definition: ModularExtrap.h:96
OscillatableSpectrum ana::ModularExtrap::NumuSurvComponent ( )
overridevirtualinherited

Charged current muon neutrino survival ( $\nu_\mu\to\nu_\mu$)

Implements ana::IExtrap.

Definition at line 188 of file ModularExtrap.cxx.

References ana::ModularExtrap::fMMextrap.

189  {return fMMextrap->Return();}
std::unique_ptr< ModularExtrapComponent > fMMextrap
Definition: ModularExtrap.h:92
void ana::ModularExtrap::SavePlotsNue ( TDirectory *  dir,
double  potFD 
) const
inherited

Definition at line 52 of file ModularExtrap.cxx.

References ana::ModularExtrap::fEEextrap, ana::ModularExtrap::fMEAntiextrap, ana::ModularExtrap::fMEextrap, ana::ModularExtrap::fMMextrap, ana::ModularExtrap::fNCTotalextrap, and tmp.

53  {
54  TDirectory* tmp = gDirectory;
55  dir->cd();
56  fMEextrap->SavePlots( dir->mkdir("MEextrap"), potFD );
57  fMEAntiextrap->SavePlots( dir->mkdir("MEAntiextrap"), potFD );
58  fEEextrap->SavePlots( dir->mkdir("EEextrap"), potFD );
59  fMMextrap->SavePlots( dir->mkdir("MMextrap"), potFD );
60  fNCTotalextrap->SavePlots( dir->mkdir("NCTotalextrap"), potFD );
61  tmp->cd();
62  }
std::unique_ptr< ModularExtrapComponent > fMMextrap
Definition: ModularExtrap.h:92
std::unique_ptr< ModularExtrapComponent > fMEextrap
Definition: ModularExtrap.h:94
Float_t tmp
Definition: plot.C:36
std::unique_ptr< ModularExtrapComponent > fNCTotalextrap
Definition: ModularExtrap.h:99
std::unique_ptr< ModularExtrapComponent > fMEAntiextrap
Definition: ModularExtrap.h:95
TDirectory * dir
Definition: macro.C:5
std::unique_ptr< ModularExtrapComponent > fEEextrap
Definition: ModularExtrap.h:90
void ana::ModularExtrap::SavePlotsNueRHC ( TDirectory *  dir,
double  potFD 
) const
inherited

Definition at line 66 of file ModularExtrap.cxx.

References ana::ModularExtrap::fEEAntiextrap, ana::ModularExtrap::fEEextrap, ana::ModularExtrap::fMEAntiextrap, ana::ModularExtrap::fMEextrap, ana::ModularExtrap::fMMAntiextrap, ana::ModularExtrap::fMMextrap, ana::ModularExtrap::fNCAntiextrap, ana::ModularExtrap::fNCextrap, and tmp.

67  {
68  TDirectory* tmp = gDirectory;
69  dir->cd();
70  fMEextrap->SavePlots( dir->mkdir("MEextrap"), potFD );
71  fMEAntiextrap->SavePlots( dir->mkdir("MEAntiextrap"), potFD );
72  fEEextrap->SavePlots( dir->mkdir("EEextrap"), potFD );
73  fEEAntiextrap->SavePlots( dir->mkdir("EEAntiextrap"), potFD );
74  fMMextrap->SavePlots( dir->mkdir("MMextrap"), potFD );
75  fMMAntiextrap->SavePlots( dir->mkdir("MMAntiextrap"), potFD );
76  fNCextrap->SavePlots( dir->mkdir("NCextrap"), potFD );
77  fNCAntiextrap->SavePlots( dir->mkdir("NCAntiextrap"), potFD );
78  tmp->cd();
79  }
std::unique_ptr< ModularExtrapComponent > fMMextrap
Definition: ModularExtrap.h:92
std::unique_ptr< ModularExtrapComponent > fMEextrap
Definition: ModularExtrap.h:94
Float_t tmp
Definition: plot.C:36
std::unique_ptr< ModularExtrapComponent > fNCextrap
std::unique_ptr< ModularExtrapComponent > fMEAntiextrap
Definition: ModularExtrap.h:95
std::unique_ptr< ModularExtrapComponent > fEEAntiextrap
Definition: ModularExtrap.h:91
std::unique_ptr< ModularExtrapComponent > fNCAntiextrap
std::unique_ptr< ModularExtrapComponent > fMMAntiextrap
Definition: ModularExtrap.h:93
TDirectory * dir
Definition: macro.C:5
std::unique_ptr< ModularExtrapComponent > fEEextrap
Definition: ModularExtrap.h:90
void ana::ModularExtrap::SavePlotsNumu ( TDirectory *  dir,
double  potFD 
) const
inherited

Definition at line 83 of file ModularExtrap.cxx.

References ana::ModularExtrap::fMMAntiextrap, ana::ModularExtrap::fMMextrap, and tmp.

Referenced by make_extrap_figure_hists(), and modularextrap_demo_numu().

84  {
85  TDirectory* tmp = gDirectory;
86  dir->cd();
87  fMMextrap->SavePlots( dir->mkdir("MMextrap"), potFD );
88  fMMAntiextrap->SavePlots( dir->mkdir("MMAntiextrap"), potFD );
89  tmp->cd();
90  }
std::unique_ptr< ModularExtrapComponent > fMMextrap
Definition: ModularExtrap.h:92
Float_t tmp
Definition: plot.C:36
std::unique_ptr< ModularExtrapComponent > fMMAntiextrap
Definition: ModularExtrap.h:93
TDirectory * dir
Definition: macro.C:5
void ana::ModularExtrap::SaveTo ( TDirectory *  dir,
const std::string name 
) const
overridevirtualinherited

Reimplemented from ana::IExtrap.

Reimplemented in ana::ModularExtrapSterile.

Definition at line 17 of file ModularExtrap.cxx.

References dir, ana::ModularExtrap::fEEAntiextrap, ana::ModularExtrap::fEEextrap, ana::ModularExtrap::fEMAntiextrap, ana::ModularExtrap::fEMextrap, ana::ModularExtrap::fETAntiextrap, ana::ModularExtrap::fETextrap, ana::ModularExtrap::fMEAntiextrap, ana::ModularExtrap::fMEextrap, ana::ModularExtrap::fMMAntiextrap, ana::ModularExtrap::fMMextrap, ana::ModularExtrap::fMTAntiextrap, ana::ModularExtrap::fMTextrap, ana::ModularExtrap::fNCAntiextrap, ana::ModularExtrap::fNCextrap, ana::ModularExtrap::fNCTotalextrap, and tmp.

Referenced by modularextrap_demo_numu(), and ana::ModularExtrapSterile::SaveTo().

18  {
19  TDirectory* tmp = gDirectory;
20 
21  dir = dir->mkdir(name.c_str()); // switch to subdir
22  dir->cd();
23 
24  TObjString("ModularExtrap").Write("type");
25 
26  fEEextrap->SaveTo(dir, "EEextrap");
27  fEMextrap->SaveTo(dir, "EMextrap");
28  fMEextrap->SaveTo(dir, "MEextrap");
29  fMMextrap->SaveTo(dir, "MMextrap");
30  fEEAntiextrap->SaveTo(dir, "EEAntiextrap");
31  fEMAntiextrap->SaveTo(dir, "EMAntiextrap");
32  fMEAntiextrap->SaveTo(dir, "MEAntiextrap");
33  fMMAntiextrap->SaveTo(dir, "MMAntiextrap");
34  fMTextrap->SaveTo(dir, "MTextrap");
35  fETextrap->SaveTo(dir, "ETextrap");
36  fMTAntiextrap->SaveTo(dir, "MTAntiextrap");
37  fETAntiextrap->SaveTo(dir, "ETAntiextrap");
38  //nc
39  fNCTotalextrap->SaveTo(dir, "NCTotalextrap");
40  fNCAntiextrap->SaveTo(dir, "NCAntiextrap");
41  fNCextrap->SaveTo(dir, "NCextrap");
42  //end nc
43 
44  dir->Write();
45  delete dir;
46 
47  tmp->cd();
48  }
const XML_Char * name
Definition: expat.h:151
std::unique_ptr< ModularExtrapComponent > fMMextrap
Definition: ModularExtrap.h:92
std::unique_ptr< ModularExtrapComponent > fMEextrap
Definition: ModularExtrap.h:94
std::unique_ptr< ModularExtrapComponent > fEMAntiextrap
Definition: ModularExtrap.h:97
Float_t tmp
Definition: plot.C:36
std::unique_ptr< ModularExtrapComponent > fNCextrap
std::unique_ptr< ModularExtrapComponent > fMTAntiextrap
std::unique_ptr< ModularExtrapComponent > fNCTotalextrap
Definition: ModularExtrap.h:99
std::unique_ptr< ModularExtrapComponent > fMEAntiextrap
Definition: ModularExtrap.h:95
std::unique_ptr< ModularExtrapComponent > fEMextrap
Definition: ModularExtrap.h:96
std::unique_ptr< ModularExtrapComponent > fEEAntiextrap
Definition: ModularExtrap.h:91
std::unique_ptr< ModularExtrapComponent > fNCAntiextrap
std::unique_ptr< ModularExtrapComponent > fMMAntiextrap
Definition: ModularExtrap.h:93
TDirectory * dir
Definition: macro.C:5
std::unique_ptr< ModularExtrapComponent > fETAntiextrap
std::unique_ptr< ModularExtrapComponent > fEEextrap
Definition: ModularExtrap.h:90
std::unique_ptr< ModularExtrapComponent > fMTextrap
std::unique_ptr< ModularExtrapComponent > fETextrap
OscillatableSpectrum ana::ModularExtrap::TauFromEComponent ( )
overridevirtualinherited

Charged current tau neutrino appearance from electron neutrino ( $\nu_e\to\nu_\tau$)

Implements ana::IExtrap.

Definition at line 221 of file ModularExtrap.cxx.

References ana::ModularExtrap::fETextrap.

222  {return fETextrap->Return();}
std::unique_ptr< ModularExtrapComponent > fETextrap
OscillatableSpectrum ana::ModularExtrap::TauFromMuComponent ( )
overridevirtualinherited

Charged current tau neutrino appearance from muon neutrino ( $\nu_\mu\to\nu_\tau$)

Implements ana::IExtrap.

Definition at line 215 of file ModularExtrap.cxx.

References ana::ModularExtrap::fMTextrap.

216  {return fMTextrap->Return();}
std::unique_ptr< ModularExtrapComponent > fMTextrap

Member Data Documentation

std::unique_ptr<ModularExtrapComponent> ana::ModularExtrap::fEEAntiextrap
protectedinherited
std::unique_ptr<ModularExtrapComponent> ana::ModularExtrap::fEEextrap
protectedinherited
std::unique_ptr<ModularExtrapComponent> ana::ModularExtrap::fEMAntiextrap
protectedinherited
std::unique_ptr<ModularExtrapComponent> ana::ModularExtrap::fEMextrap
protectedinherited
std::unique_ptr<ModularExtrapComponent> ana::ModularExtrap::fETAntiextrap
protectedinherited
std::unique_ptr<ModularExtrapComponent> ana::ModularExtrap::fETextrap
protectedinherited
std::unique_ptr<ModularExtrapComponent> ana::ModularExtrap::fMEAntiextrap
protectedinherited
std::unique_ptr<ModularExtrapComponent> ana::ModularExtrap::fMEextrap
protectedinherited
std::unique_ptr<ModularExtrapComponent> ana::ModularExtrap::fMMAntiextrap
protectedinherited
std::unique_ptr<ModularExtrapComponent> ana::ModularExtrap::fMMextrap
protectedinherited
std::unique_ptr<ModularExtrapComponent> ana::ModularExtrap::fMTAntiextrap
protectedinherited
std::unique_ptr<ModularExtrapComponent> ana::ModularExtrap::fMTextrap
protectedinherited
std::unique_ptr<ModularExtrapComponent> ana::ModularExtrap::fNCAntiextrap
protectedinherited
std::unique_ptr<ModularExtrapComponent> ana::ModularExtrap::fNCextrap
protectedinherited
std::unique_ptr<ModularExtrapComponent> ana::ModularExtrap::fNCTotalextrap
protectedinherited

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