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

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-11-30/3FlavorAna/Extrap/NueFluxExtrap.h"

Inheritance diagram for ana::NueFluxExtrap:
ana::NueRHCExtrap ana::ModularExtrap ana::IExtrap

Public Member Functions

 NueFluxExtrap (SpectrumLoaderBase &nearMCLoader, SpectrumLoaderBase &farMCswapLoader, SpectrumLoaderBase &farMCnonswapLoader, SpectrumLoaderBase &farMCtauswapLoader, const FluxDecomp &nueDecomp, const IDecomp &numuDecomp, const HistAxis &axis, const HistAxis &axisNumuND, const Cut &fdcut, const Cut &nueNDcut, const Cut &numuNDcut, const SystShifts &shiftMC=kNoShift, const Var &weight=kUnweighted)
 
 NueFluxExtrap (Loaders &loaders, const FluxDecomp &nueDecomp, const IDecomp &numuDecomp, const HistAxis &axis, const HistAxis &axisNumuND, const Cut &fdcut, const Cut &nueNDcut, const Cut &numuNDcut, 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: use ND numu candidates (numuDecomp and numuNDCut) to extrapolate signal (mu->e) and ND nue candidates (nueDecomp and nueNDCut) to extrapolate background components.

Definition at line 19 of file NueFluxExtrap.h.

Constructor & Destructor Documentation

ana::NueFluxExtrap::NueFluxExtrap ( SpectrumLoaderBase nearMCLoader,
SpectrumLoaderBase farMCswapLoader,
SpectrumLoaderBase farMCnonswapLoader,
SpectrumLoaderBase farMCtauswapLoader,
const FluxDecomp nueDecomp,
const IDecomp numuDecomp,
const HistAxis axis,
const HistAxis axisNumuND,
const Cut fdcut,
const Cut nueNDcut,
const Cut numuNDcut,
const SystShifts shiftMC = kNoShift,
const Var weight = kUnweighted 
)

Definition at line 15 of file NueFluxExtrap.cxx.

References ana::ModularExtrap::fEEAntiextrap, ana::kIsAntiNu, and ana::kIsBeamNue().

28  : NueRHCExtrap(nearMC,
29  farMCswap,
30  farMCnonswap,
31  farMCtauswap,
32  nueDecomp,
33  numuDecomp,
34  axis,
35  axisNumuND,
36  fdcut,
37  nueNDcut,
38  numuNDcut,
39  shiftMC,
40  weight)
41  {
42  fEEAntiextrap = std::unique_ptr<ModularExtrapComponent>(
43  new FluxReweight(
44  nearMC, axis, fdcut, shiftMC, weight,
45  "ebar -> ebar", "#bar{#nu}_{e} #rightarrow #bar{#nu}_{e}",
46  nueNDcut, nueDecomp, // nue selection in ND
47  farMCnonswap, kIsBeamNue && kIsAntiNu // e->e in FD
48  )
49  );
50 
51  }
const Var weight
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 > fEEAntiextrap
Definition: ModularExtrap.h:91
NueRHCExtrap(SpectrumLoaderBase &nearMCLoader, SpectrumLoaderBase &farMCswapLoader, SpectrumLoaderBase &farMCnonswapLoader, SpectrumLoaderBase &farMCtauswapLoader, const IDecomp &nueDecomp, const IDecomp &numuDecomp, const HistAxis &axis, const HistAxis &axisNumuND, const Cut &fdcut, const Cut &nueNDcut, const Cut &numuNDcut, const SystShifts &shiftMC=kNoShift, const Var &weight=kUnweighted)
ana::NueFluxExtrap::NueFluxExtrap ( Loaders loaders,
const FluxDecomp nueDecomp,
const IDecomp numuDecomp,
const HistAxis axis,
const HistAxis axisNumuND,
const Cut fdcut,
const Cut nueNDcut,
const Cut numuNDcut,
const SystShifts shiftMC = kNoShift,
const Var weight = kUnweighted 
)

Definition at line 55 of file NueFluxExtrap.cxx.

69  nueDecomp,
70  numuDecomp,
71  axis,
72  axisNumuND,
73  fdcut,
74  nueNDcut,
75  numuNDcut,
76  shiftMC,
77  weight)
78  {}
Near Detector underground.
Definition: SREnums.h:10
Far Detector at Ash River.
Definition: SREnums.h:11
const Var weight
std::vector< Loaders * > loaders
Definition: syst_header.h:386
NueFluxExtrap(SpectrumLoaderBase &nearMCLoader, SpectrumLoaderBase &farMCswapLoader, SpectrumLoaderBase &farMCnonswapLoader, SpectrumLoaderBase &farMCtauswapLoader, const FluxDecomp &nueDecomp, const IDecomp &numuDecomp, const HistAxis &axis, const HistAxis &axisNumuND, const Cut &fdcut, const Cut &nueNDcut, const Cut &numuNDcut, const SystShifts &shiftMC=kNoShift, const Var &weight=kUnweighted)

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: