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

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-02/CAFAna/Extrap/FDExtrap.h"

Public Member Functions

virtual ~FDExtrap ()
 
 FDExtrap (const FDExtrap &)=delete
 
FDExtrapoperator= (const FDExtrap &)=delete
 
 FDExtrap (FDExtrap &&)=default
 
FDExtrapoperator= (FDExtrap &&)=default
 
OscillatableSpectrum NueCCSurvComponent ()
 
OscillatableSpectrum AntiNueCCSurvComponent ()
 
OscillatableSpectrum NumuCCAppComponent ()
 
OscillatableSpectrum TauCCAppComponent ()
 
OscillatableSpectrum ETauCCAppComponent ()
 
OscillatableSpectrum AntiNumuCCAppComponent ()
 
OscillatableSpectrum AntiTauCCAppComponent ()
 
OscillatableSpectrum EAntiTauCCAppComponent ()
 
OscillatableSpectrum NumuCCSurvComponent ()
 
OscillatableSpectrum AntiNumuCCSurvComponent ()
 
OscillatableSpectrum NueCCAppComponent ()
 
OscillatableSpectrum AntiNueCCAppComponent ()
 
OscillatableSpectrum NueNCComponent ()
 
OscillatableSpectrum NumuNCComponent ()
 
OscillatableSpectrum AntiNumuNCComponent ()
 
OscillatableSpectrum AntiNueNCComponent ()
 
OscillatableSpectrum TauNCComponent ()
 
OscillatableSpectrum AntiTauNCComponent ()
 
Spectrum NCComponent ()
 
virtual void SaveTo (TDirectory *dir, const std::string &name) const
 

Static Public Member Functions

static FDExtrap FDExtrap_c (Loaders &loaders, const HistAxis &axis, const Cut &selection, const SystShifts &shiftMC=kNoShift, const Var &weight=kUnweighted)
 
static FDExtrap FDExtrap_c (SpectrumLoaderBase &nonswap, SpectrumLoaderBase &swap, SpectrumLoaderBase &tau, const HistAxis &axis, const Cut &selection, const SystShifts &shiftMC=kNoShift, const Var &weight=kUnweighted)
 
static std::unique_ptr< FDExtrapLoadFrom (TDirectory *dir, const std::string &name)
 

Protected Member Functions

 FDExtrap ()
 
 FDExtrap (SpectrumLoaderBase &nonswap, SpectrumLoaderBase &swap, SpectrumLoaderBase &tau, const HistAxis &axis, const Cut &selection, const SystShifts &shiftMC=kNoShift, const Var &weight=kUnweighted)
 
std::unique_ptr< OscillatableSpectrumLoadSpectrum (TDirectory *dir, std::string name)
 

Protected Attributes

std::unique_ptr< OscillatableSpectrumfEEComp
 
std::unique_ptr< OscillatableSpectrumfAEAEComp
 
std::unique_ptr< OscillatableSpectrumfEMComp
 
std::unique_ptr< OscillatableSpectrumfAEAMComp
 
std::unique_ptr< OscillatableSpectrumfETComp
 
std::unique_ptr< OscillatableSpectrumfAEATComp
 
std::unique_ptr< OscillatableSpectrumfMEComp
 
std::unique_ptr< OscillatableSpectrumfAMAEComp
 
std::unique_ptr< OscillatableSpectrumfMMComp
 
std::unique_ptr< OscillatableSpectrumfAMAMComp
 
std::unique_ptr< OscillatableSpectrumfMTComp
 
std::unique_ptr< OscillatableSpectrumfAMATComp
 
std::unique_ptr< OscillatableSpectrumfENCComp
 
std::unique_ptr< OscillatableSpectrumfMNCComp
 
std::unique_ptr< OscillatableSpectrumfTNCComp
 
std::unique_ptr< OscillatableSpectrumfAENCComp
 
std::unique_ptr< OscillatableSpectrumfAMNCComp
 
std::unique_ptr< OscillatableSpectrumfATNCComp
 
std::unique_ptr< SpectrumfNCCompSpec
 
SpectrumLoaderBasefSpecLoad
 
SpectrumLoaderBasefSpecLoadt
 

Detailed Description

Definition at line 19 of file FDExtrap.h.

Constructor & Destructor Documentation

virtual ana::FDExtrap::~FDExtrap ( )
inlinevirtual
ana::FDExtrap::FDExtrap ( const FDExtrap )
delete
ana::FDExtrap::FDExtrap ( FDExtrap &&  )
default
ana::FDExtrap::FDExtrap ( )
inlineprotected

Definition at line 72 of file FDExtrap.h.

References ana::kNoShift, ana::kUnweighted, LoadSpectrum(), string, and ana::weight.

Referenced by ~FDExtrap().

72 {};
ana::FDExtrap::FDExtrap ( SpectrumLoaderBase nonswap,
SpectrumLoaderBase swap,
SpectrumLoaderBase tau,
const HistAxis axis,
const Cut selection,
const SystShifts shiftMC = kNoShift,
const Var weight = kUnweighted 
)
protected

Definition at line 162 of file FDExtrap.cxx.

170  :/* fPOT(0),*/
171  fEEComp( new OscillatableSpectrum(nonswap, axis, selection && kIsBeamNue && !kIsAntiNu, shiftMC, weight)),
172  fAEAEComp(new OscillatableSpectrum(nonswap, axis, selection && kIsBeamNue && kIsAntiNu, shiftMC, weight)),
173  fEMComp( new OscillatableSpectrum(swap, axis, selection && kIsNumuApp && !kIsAntiNu, shiftMC, weight)),
174  fAEAMComp(new OscillatableSpectrum(swap, axis, selection && kIsNumuApp && kIsAntiNu, shiftMC, weight)),
175  fETComp( new OscillatableSpectrum(tau, axis, selection && kIsTauFromE && !kIsAntiNu, shiftMC, weight)),
176  fAEATComp(new OscillatableSpectrum(tau, axis, selection && kIsTauFromE && kIsAntiNu, shiftMC, weight)),
177  fMEComp( new OscillatableSpectrum(swap, axis, selection && kIsSig && !kIsAntiNu, shiftMC, weight)),
178  fAMAEComp(new OscillatableSpectrum(swap, axis, selection && kIsSig && kIsAntiNu, shiftMC, weight)),
179  fMMComp( new OscillatableSpectrum(nonswap, axis, selection && kIsNumuCC && !kIsAntiNu, shiftMC, weight)),
180  fAMAMComp(new OscillatableSpectrum(nonswap, axis, selection && kIsNumuCC && kIsAntiNu, shiftMC, weight)),
181  fMTComp( new OscillatableSpectrum(tau, axis, selection && kIsTauFromMu && !kIsAntiNu, shiftMC, weight)),
182  fAMATComp(new OscillatableSpectrum(tau, axis, selection && kIsTauFromMu && kIsAntiNu, shiftMC, weight)),
183  fENCComp( new OscillatableSpectrum(nonswap, axis, selection && kIsNue && !kIsAntiNu && kIsNC, shiftMC, weight)),
184  fMNCComp( new OscillatableSpectrum(nonswap, axis, selection && kIsNumu && !kIsAntiNu && kIsNC, shiftMC, weight)),
185  fTNCComp( new OscillatableSpectrum(nonswap, axis, selection && kIsTau && !kIsAntiNu && kIsNC, shiftMC, weight)),
186  fAENCComp(new OscillatableSpectrum(nonswap, axis, selection && kIsNue && kIsAntiNu && kIsNC, shiftMC, weight)),
187  fAMNCComp(new OscillatableSpectrum(nonswap, axis, selection && kIsNumu && kIsAntiNu && kIsNC, shiftMC, weight)),
188  fATNCComp(new OscillatableSpectrum(nonswap, axis, selection && kIsTau && kIsAntiNu && kIsNC, shiftMC, weight)),
189  fNCCompSpec(new Spectrum(nonswap, axis, selection && kIsNC, shiftMC, weight)),
190  fSpecLoad(&nonswap),
191  fSpecLoadt(&tau)
192  {
193  }
const Cut kIsNumuCC(CCFlavSel(14, 14))
Select CC .
std::unique_ptr< OscillatableSpectrum > fAEAMComp
Definition: FDExtrap.h:87
std::unique_ptr< OscillatableSpectrum > fETComp
Definition: FDExtrap.h:88
std::unique_ptr< OscillatableSpectrum > fAEATComp
Definition: FDExtrap.h:89
const Var weight
const Cut kIsNumu([](const caf::SRProxy *sr){return(sr->mc.nnu==1 &&abs(sr->mc.nu[0].pdg)==14);})
Definition: TruthCuts.h:10
std::unique_ptr< OscillatableSpectrum > fTNCComp
Definition: FDExtrap.h:99
std::unique_ptr< Spectrum > fNCCompSpec
Definition: FDExtrap.h:103
std::unique_ptr< OscillatableSpectrum > fMTComp
Definition: FDExtrap.h:94
std::unique_ptr< OscillatableSpectrum > fAMATComp
Definition: FDExtrap.h:95
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 .
const Cut kIsNumuApp(CCFlavSel(14, 12))
Select CC .
std::unique_ptr< OscillatableSpectrum > fATNCComp
Definition: FDExtrap.h:102
std::unique_ptr< OscillatableSpectrum > fMEComp
Definition: FDExtrap.h:90
const Cut kIsTau
Definition: TruthCuts.cxx:25
std::unique_ptr< OscillatableSpectrum > fEMComp
Definition: FDExtrap.h:86
std::unique_ptr< OscillatableSpectrum > fMMComp
Definition: FDExtrap.h:92
std::unique_ptr< OscillatableSpectrum > fAMAEComp
Definition: FDExtrap.h:91
std::unique_ptr< OscillatableSpectrum > fAMAMComp
Definition: FDExtrap.h:93
std::unique_ptr< OscillatableSpectrum > fMNCComp
Definition: FDExtrap.h:98
const Cut kIsTauFromE(CCFlavSel(16, 12))
Select CC .
SpectrumLoaderBase * fSpecLoadt
Definition: FDExtrap.h:105
const Cut kIsTauFromMu(CCFlavSel(16, 14))
Select CC .
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
std::unique_ptr< OscillatableSpectrum > fAMNCComp
Definition: FDExtrap.h:101
const Cut kIsSig(CCFlavSel(12, 14))
Select CC .
const Cut kIsNue([](const caf::SRProxy *sr){return(sr->mc.nnu==1 &&abs(sr->mc.nu[0].pdg)==12);})
Definition: TruthCuts.h:9
std::vector< float > Spectrum
Definition: Constants.h:610
std::unique_ptr< OscillatableSpectrum > fAENCComp
Definition: FDExtrap.h:100
std::unique_ptr< OscillatableSpectrum > fEEComp
Definition: FDExtrap.h:84
std::unique_ptr< OscillatableSpectrum > fENCComp
Definition: FDExtrap.h:97
std::unique_ptr< OscillatableSpectrum > fAEAEComp
Definition: FDExtrap.h:85
SpectrumLoaderBase * fSpecLoad
Definition: FDExtrap.h:104

Member Function Documentation

OscillatableSpectrum ana::FDExtrap::AntiNueCCAppComponent ( )

Definition at line 126 of file FDExtrap.cxx.

References fAMAEComp.

Referenced by ana::FDPredictionSterile::Predict(), ana::FDPredictionSterile::PredictComponent(), and ~FDExtrap().

127  {
128  return *fAMAEComp;
129  }
std::unique_ptr< OscillatableSpectrum > fAMAEComp
Definition: FDExtrap.h:91
OscillatableSpectrum ana::FDExtrap::AntiNueCCSurvComponent ( )

Definition at line 71 of file FDExtrap.cxx.

References fAEAEComp.

Referenced by ana::FDPredictionSterile::Predict(), ana::FDPredictionSterile::PredictComponent(), and ~FDExtrap().

72  {
73  return *fAEAEComp;
74  }
std::unique_ptr< OscillatableSpectrum > fAEAEComp
Definition: FDExtrap.h:85
OscillatableSpectrum ana::FDExtrap::AntiNueNCComponent ( )

Definition at line 146 of file FDExtrap.cxx.

References fAENCComp.

Referenced by ana::FDPredictionSterile::Predict(), ana::FDPredictionSterile::PredictComponent(), and ~FDExtrap().

147  {
148  return *fAENCComp;
149  }
std::unique_ptr< OscillatableSpectrum > fAENCComp
Definition: FDExtrap.h:100
OscillatableSpectrum ana::FDExtrap::AntiNumuCCAppComponent ( )

Definition at line 83 of file FDExtrap.cxx.

References fAEAMComp.

Referenced by ana::FDPredictionSterile::Predict(), ana::FDPredictionSterile::PredictComponent(), and ~FDExtrap().

84  {
85  return *fAEAMComp;
86  }
std::unique_ptr< OscillatableSpectrum > fAEAMComp
Definition: FDExtrap.h:87
OscillatableSpectrum ana::FDExtrap::AntiNumuCCSurvComponent ( )

Definition at line 95 of file FDExtrap.cxx.

References fAMAMComp.

Referenced by ana::FDPredictionSterile::Predict(), ana::FDPredictionSterile::PredictComponent(), and ~FDExtrap().

96  {
97  return *fAMAMComp;
98  }
std::unique_ptr< OscillatableSpectrum > fAMAMComp
Definition: FDExtrap.h:93
OscillatableSpectrum ana::FDExtrap::AntiNumuNCComponent ( )

Definition at line 151 of file FDExtrap.cxx.

References fAMNCComp.

Referenced by ana::FDPredictionSterile::Predict(), ana::FDPredictionSterile::PredictComponent(), and ~FDExtrap().

152  {
153  return *fAMNCComp;
154  }
std::unique_ptr< OscillatableSpectrum > fAMNCComp
Definition: FDExtrap.h:101
OscillatableSpectrum ana::FDExtrap::AntiTauCCAppComponent ( )

Definition at line 111 of file FDExtrap.cxx.

References fAMATComp.

Referenced by ana::FDPredictionSterile::Predict(), ana::FDPredictionSterile::PredictComponent(), and ~FDExtrap().

112  {
113  return *fAMATComp;
114  }
std::unique_ptr< OscillatableSpectrum > fAMATComp
Definition: FDExtrap.h:95
OscillatableSpectrum ana::FDExtrap::AntiTauNCComponent ( )

Definition at line 156 of file FDExtrap.cxx.

References fATNCComp.

Referenced by ana::FDPredictionSterile::Predict(), ana::FDPredictionSterile::PredictComponent(), and ~FDExtrap().

157  {
158  return *fATNCComp;
159  }
std::unique_ptr< OscillatableSpectrum > fATNCComp
Definition: FDExtrap.h:102
OscillatableSpectrum ana::FDExtrap::EAntiTauCCAppComponent ( )

Definition at line 121 of file FDExtrap.cxx.

References fAEATComp.

Referenced by ana::FDPredictionSterile::Predict(), ana::FDPredictionSterile::PredictComponent(), and ~FDExtrap().

122  {
123  return *fAEATComp;
124  }
std::unique_ptr< OscillatableSpectrum > fAEATComp
Definition: FDExtrap.h:89
OscillatableSpectrum ana::FDExtrap::ETauCCAppComponent ( )

Definition at line 116 of file FDExtrap.cxx.

References fETComp.

Referenced by ana::FDPredictionSterile::Predict(), ana::FDPredictionSterile::PredictComponent(), and ~FDExtrap().

117  {
118  return *fETComp;
119  }
std::unique_ptr< OscillatableSpectrum > fETComp
Definition: FDExtrap.h:88
FDExtrap ana::FDExtrap::FDExtrap_c ( Loaders loaders,
const HistAxis axis,
const Cut selection,
const SystShifts shiftMC = kNoShift,
const Var weight = kUnweighted 
)
static

Definition at line 23 of file FDExtrap.cxx.

References allInOneTrainingPlots::axis, ana::Loaders::GetLoader(), ana::kBeam, caf::kFARDET, ana::Loaders::kFluxSwap, ana::Loaders::kMC, ana::Loaders::kNonSwap, ana::Loaders::kTauSwap, and ana::weight.

Referenced by ana::FDPredictionGenerator::Generate(), and MakeNus18CovarSim().

30  {
31  return FDExtrap::FDExtrap_c(
32  loaders.GetLoader(
34  loaders.GetLoader(
36  loaders.GetLoader(
38  axis,
39  selection,
40  shiftMC,
41  weight
42  );
43  }
Far Detector at Ash River.
Definition: SREnums.h:11
const Var weight
std::vector< Loaders * > loaders
Definition: syst_header.h:386
static FDExtrap FDExtrap_c(Loaders &loaders, const HistAxis &axis, const Cut &selection, const SystShifts &shiftMC=kNoShift, const Var &weight=kUnweighted)
Definition: FDExtrap.cxx:23
FDExtrap ana::FDExtrap::FDExtrap_c ( SpectrumLoaderBase nonswap,
SpectrumLoaderBase swap,
SpectrumLoaderBase tau,
const HistAxis axis,
const Cut selection,
const SystShifts shiftMC = kNoShift,
const Var weight = kUnweighted 
)
static

Definition at line 47 of file FDExtrap.cxx.

53  {
54  FDExtrap extrap(nonswap, swap, tau, axis, selection, shiftMC, weight);
55  return extrap;
56  }
const Var weight
std::unique_ptr< FDExtrap > ana::FDExtrap::LoadFrom ( TDirectory *  dir,
const std::string name 
)
static

Definition at line 245 of file FDExtrap.cxx.

References ana::assert(), dir, and runNovaSAM::ret.

Referenced by ~FDExtrap().

246  {
247  dir = dir->GetDirectory(name.c_str()); // switch to subdir
248  assert(dir);
249 
250  std::unique_ptr<FDExtrap> ret(new FDExtrap);
251 
252  // nue -> nue
253 
254  ret->fEEComp = ana::LoadFrom<OscillatableSpectrum>(dir, "EEComp");
255 
256  ret->fAEAEComp = ana::LoadFrom<OscillatableSpectrum>(dir, "AEAEComp");
257 
258  // nue -> numu
259 
260  ret->fEMComp = ana::LoadFrom<OscillatableSpectrum>(dir, "EMComp");
261 
262  ret->fAEAMComp = ana::LoadFrom<OscillatableSpectrum>(dir, "AEAMComp");
263 
264  // nue -> nutau
265 
266  ret->fETComp = ana::LoadFrom<OscillatableSpectrum>(dir, "ETComp");
267 
268  ret->fAEATComp = ana::LoadFrom<OscillatableSpectrum>(dir, "AEATComp");
269 
270  // numu -> nue
271 
272  ret->fMEComp = ana::LoadFrom<OscillatableSpectrum>(dir, "MEComp");
273 
274  ret->fAMAEComp = ana::LoadFrom<OscillatableSpectrum>(dir, "AMAEComp");
275 
276  // numu -> numu
277 
278  ret->fMMComp = ana::LoadFrom<OscillatableSpectrum>(dir, "MMComp");
279 
280  ret->fAMAMComp = ana::LoadFrom<OscillatableSpectrum>(dir, "AMAMComp");
281 
282  // numu -> nutau
283 
284  ret->fMTComp = ana::LoadFrom<OscillatableSpectrum>(dir, "MTComp");
285 
286  ret->fAMATComp = ana::LoadFrom<OscillatableSpectrum>(dir, "AMATComp");
287 
288  // nc components
289 
290  ret->fENCComp = ana::LoadFrom<OscillatableSpectrum>(dir, "ENCComp");
291 
292  ret->fMNCComp = ana::LoadFrom<OscillatableSpectrum>(dir, "MNCComp");
293 
294  ret->fTNCComp = ana::LoadFrom<OscillatableSpectrum>(dir, "TNCComp");
295 
296  ret->fATNCComp = ana::LoadFrom<OscillatableSpectrum>(dir, "ATNCComp");
297 
298  ret->fAENCComp = ana::LoadFrom<OscillatableSpectrum>(dir, "AENCComp");
299 
300  ret->fAMNCComp = ana::LoadFrom<OscillatableSpectrum>(dir, "AMNCComp");
301 
302  ret->fNCCompSpec = ana::LoadFrom<Spectrum>(dir, "NCComp");
303 
304  delete dir;
305 
306  return ret;
307  }
const XML_Char * name
Definition: expat.h:151
TDirectory * dir
Definition: macro.C:5
assert(nhit_max >=nhit_nbins)
std::unique_ptr<OscillatableSpectrum> ana::FDExtrap::LoadSpectrum ( TDirectory *  dir,
std::string  name 
)
protected

Referenced by FDExtrap().

Spectrum ana::FDExtrap::NCComponent ( )

Definition at line 59 of file FDExtrap.cxx.

References fNCCompSpec.

Referenced by ana::FDPredictionSterile::PredictComponent(), and ~FDExtrap().

60  {
61  return *fNCCompSpec;
62  }
std::unique_ptr< Spectrum > fNCCompSpec
Definition: FDExtrap.h:103
OscillatableSpectrum ana::FDExtrap::NueCCAppComponent ( )

Definition at line 101 of file FDExtrap.cxx.

References fMEComp.

Referenced by ana::FDPredictionSterile::Predict(), ana::FDPredictionSterile::PredictComponent(), and ~FDExtrap().

102  {
103  return *fMEComp;
104  }
std::unique_ptr< OscillatableSpectrum > fMEComp
Definition: FDExtrap.h:90
OscillatableSpectrum ana::FDExtrap::NueCCSurvComponent ( )

Definition at line 65 of file FDExtrap.cxx.

References fEEComp.

Referenced by ana::FDPredictionSterile::Predict(), ana::FDPredictionSterile::PredictComponent(), and ~FDExtrap().

66  {
67  return *fEEComp;
68  }
std::unique_ptr< OscillatableSpectrum > fEEComp
Definition: FDExtrap.h:84
OscillatableSpectrum ana::FDExtrap::NueNCComponent ( )

Definition at line 131 of file FDExtrap.cxx.

References fENCComp.

Referenced by ana::FDPredictionSterile::Predict(), ana::FDPredictionSterile::PredictComponent(), and ~FDExtrap().

132  {
133  return *fENCComp;
134  }
std::unique_ptr< OscillatableSpectrum > fENCComp
Definition: FDExtrap.h:97
OscillatableSpectrum ana::FDExtrap::NumuCCAppComponent ( )

Definition at line 77 of file FDExtrap.cxx.

References fEMComp.

Referenced by ana::FDPredictionSterile::Predict(), ana::FDPredictionSterile::PredictComponent(), and ~FDExtrap().

78  {
79  return *fEMComp;
80  }
std::unique_ptr< OscillatableSpectrum > fEMComp
Definition: FDExtrap.h:86
OscillatableSpectrum ana::FDExtrap::NumuCCSurvComponent ( )

Definition at line 89 of file FDExtrap.cxx.

References fMMComp.

Referenced by ana::FDPredictionSterile::Predict(), ana::FDPredictionSterile::PredictComponent(), and ~FDExtrap().

90  {
91  return *fMMComp;
92  }
std::unique_ptr< OscillatableSpectrum > fMMComp
Definition: FDExtrap.h:92
OscillatableSpectrum ana::FDExtrap::NumuNCComponent ( )

Definition at line 136 of file FDExtrap.cxx.

References fMNCComp.

Referenced by ana::FDPredictionSterile::Predict(), ana::FDPredictionSterile::PredictComponent(), and ~FDExtrap().

137  {
138  return *fMNCComp;
139  }
std::unique_ptr< OscillatableSpectrum > fMNCComp
Definition: FDExtrap.h:98
FDExtrap& ana::FDExtrap::operator= ( const FDExtrap )
delete

Referenced by ~FDExtrap().

FDExtrap& ana::FDExtrap::operator= ( FDExtrap &&  )
default
void ana::FDExtrap::SaveTo ( TDirectory *  dir,
const std::string name 
) const
virtual

Definition at line 196 of file FDExtrap.cxx.

References dir, fAEAEComp, fAEAMComp, fAEATComp, fAENCComp, fAMAEComp, fAMAMComp, fAMATComp, fAMNCComp, fATNCComp, fEEComp, fEMComp, fENCComp, fETComp, fMEComp, fMMComp, fMNCComp, fMTComp, fNCCompSpec, fTNCComp, and tmp.

Referenced by ana::FDPredictionSterile::SaveTo(), and ~FDExtrap().

197  {
198  TDirectory* tmp = gDirectory;
199 
200  dir = dir->mkdir(name.c_str()); // switch to subdir
201  dir->cd();
202 
203  TObjString("FDExtrap").Write("type");
204 
205  // nue -> nue
206  fEEComp->SaveTo(dir, "EEComp");
207  fAEAEComp->SaveTo(dir, "AEAEComp");
208 
209  // nue -> numu
210  fEMComp->SaveTo(dir, "EMComp");
211  fAEAMComp->SaveTo(dir, "AEAMComp");
212 
213  // nue -> nutau
214  fETComp->SaveTo(dir, "ETComp");
215  fAEATComp->SaveTo(dir, "AEATComp");
216 
217  // numu -> nue
218  fMEComp->SaveTo(dir, "MEComp");
219  fAMAEComp->SaveTo(dir, "AMAEComp");
220 
221  // numu -> numu
222  fMMComp->SaveTo(dir, "MMComp");
223  fAMAMComp->SaveTo(dir, "AMAMComp");
224 
225  // numu -> nutau
226  fMTComp->SaveTo(dir, "MTComp");
227  fAMATComp->SaveTo(dir, "AMATComp");
228 
229  // nc components
230  fENCComp->SaveTo(dir, "ENCComp");
231  fMNCComp->SaveTo(dir, "MNCComp");
232  fTNCComp->SaveTo(dir, "TNCComp");
233  fATNCComp->SaveTo(dir, "ATNCComp");
234  fAENCComp->SaveTo(dir, "AENCComp");
235  fAMNCComp->SaveTo(dir, "AMNCComp");
236  fNCCompSpec->SaveTo(dir, "NCComp");
237 
238  dir->Write();
239  delete dir;
240 
241  tmp->cd();
242  }
const XML_Char * name
Definition: expat.h:151
std::unique_ptr< OscillatableSpectrum > fAEAMComp
Definition: FDExtrap.h:87
std::unique_ptr< OscillatableSpectrum > fETComp
Definition: FDExtrap.h:88
std::unique_ptr< OscillatableSpectrum > fAEATComp
Definition: FDExtrap.h:89
std::unique_ptr< OscillatableSpectrum > fTNCComp
Definition: FDExtrap.h:99
std::unique_ptr< Spectrum > fNCCompSpec
Definition: FDExtrap.h:103
std::unique_ptr< OscillatableSpectrum > fMTComp
Definition: FDExtrap.h:94
std::unique_ptr< OscillatableSpectrum > fAMATComp
Definition: FDExtrap.h:95
std::unique_ptr< OscillatableSpectrum > fATNCComp
Definition: FDExtrap.h:102
std::unique_ptr< OscillatableSpectrum > fMEComp
Definition: FDExtrap.h:90
Float_t tmp
Definition: plot.C:36
std::unique_ptr< OscillatableSpectrum > fEMComp
Definition: FDExtrap.h:86
std::unique_ptr< OscillatableSpectrum > fMMComp
Definition: FDExtrap.h:92
std::unique_ptr< OscillatableSpectrum > fAMAEComp
Definition: FDExtrap.h:91
std::unique_ptr< OscillatableSpectrum > fAMAMComp
Definition: FDExtrap.h:93
std::unique_ptr< OscillatableSpectrum > fMNCComp
Definition: FDExtrap.h:98
std::unique_ptr< OscillatableSpectrum > fAMNCComp
Definition: FDExtrap.h:101
std::unique_ptr< OscillatableSpectrum > fAENCComp
Definition: FDExtrap.h:100
std::unique_ptr< OscillatableSpectrum > fEEComp
Definition: FDExtrap.h:84
TDirectory * dir
Definition: macro.C:5
std::unique_ptr< OscillatableSpectrum > fENCComp
Definition: FDExtrap.h:97
std::unique_ptr< OscillatableSpectrum > fAEAEComp
Definition: FDExtrap.h:85
OscillatableSpectrum ana::FDExtrap::TauCCAppComponent ( )

Definition at line 106 of file FDExtrap.cxx.

References fMTComp.

Referenced by ana::FDPredictionSterile::Predict(), ana::FDPredictionSterile::PredictComponent(), and ~FDExtrap().

107  {
108  return *fMTComp;
109  }
std::unique_ptr< OscillatableSpectrum > fMTComp
Definition: FDExtrap.h:94
OscillatableSpectrum ana::FDExtrap::TauNCComponent ( )

Definition at line 141 of file FDExtrap.cxx.

References fTNCComp.

Referenced by ana::FDPredictionSterile::Predict(), ana::FDPredictionSterile::PredictComponent(), and ~FDExtrap().

142  {
143  return *fTNCComp;
144  }
std::unique_ptr< OscillatableSpectrum > fTNCComp
Definition: FDExtrap.h:99

Member Data Documentation

std::unique_ptr<OscillatableSpectrum> ana::FDExtrap::fAEAEComp
protected

Definition at line 85 of file FDExtrap.h.

Referenced by AntiNueCCSurvComponent(), and SaveTo().

std::unique_ptr<OscillatableSpectrum> ana::FDExtrap::fAEAMComp
protected

Definition at line 87 of file FDExtrap.h.

Referenced by AntiNumuCCAppComponent(), and SaveTo().

std::unique_ptr<OscillatableSpectrum> ana::FDExtrap::fAEATComp
protected

Definition at line 89 of file FDExtrap.h.

Referenced by EAntiTauCCAppComponent(), and SaveTo().

std::unique_ptr<OscillatableSpectrum> ana::FDExtrap::fAENCComp
protected

Definition at line 100 of file FDExtrap.h.

Referenced by AntiNueNCComponent(), and SaveTo().

std::unique_ptr<OscillatableSpectrum> ana::FDExtrap::fAMAEComp
protected

Definition at line 91 of file FDExtrap.h.

Referenced by AntiNueCCAppComponent(), and SaveTo().

std::unique_ptr<OscillatableSpectrum> ana::FDExtrap::fAMAMComp
protected

Definition at line 93 of file FDExtrap.h.

Referenced by AntiNumuCCSurvComponent(), and SaveTo().

std::unique_ptr<OscillatableSpectrum> ana::FDExtrap::fAMATComp
protected

Definition at line 95 of file FDExtrap.h.

Referenced by AntiTauCCAppComponent(), and SaveTo().

std::unique_ptr<OscillatableSpectrum> ana::FDExtrap::fAMNCComp
protected

Definition at line 101 of file FDExtrap.h.

Referenced by AntiNumuNCComponent(), and SaveTo().

std::unique_ptr<OscillatableSpectrum> ana::FDExtrap::fATNCComp
protected

Definition at line 102 of file FDExtrap.h.

Referenced by AntiTauNCComponent(), and SaveTo().

std::unique_ptr<OscillatableSpectrum> ana::FDExtrap::fEEComp
protected

Definition at line 84 of file FDExtrap.h.

Referenced by NueCCSurvComponent(), and SaveTo().

std::unique_ptr<OscillatableSpectrum> ana::FDExtrap::fEMComp
protected

Definition at line 86 of file FDExtrap.h.

Referenced by NumuCCAppComponent(), and SaveTo().

std::unique_ptr<OscillatableSpectrum> ana::FDExtrap::fENCComp
protected

Definition at line 97 of file FDExtrap.h.

Referenced by NueNCComponent(), and SaveTo().

std::unique_ptr<OscillatableSpectrum> ana::FDExtrap::fETComp
protected

Definition at line 88 of file FDExtrap.h.

Referenced by ETauCCAppComponent(), and SaveTo().

std::unique_ptr<OscillatableSpectrum> ana::FDExtrap::fMEComp
protected

Definition at line 90 of file FDExtrap.h.

Referenced by NueCCAppComponent(), and SaveTo().

std::unique_ptr<OscillatableSpectrum> ana::FDExtrap::fMMComp
protected

Definition at line 92 of file FDExtrap.h.

Referenced by NumuCCSurvComponent(), and SaveTo().

std::unique_ptr<OscillatableSpectrum> ana::FDExtrap::fMNCComp
protected

Definition at line 98 of file FDExtrap.h.

Referenced by NumuNCComponent(), and SaveTo().

std::unique_ptr<OscillatableSpectrum> ana::FDExtrap::fMTComp
protected

Definition at line 94 of file FDExtrap.h.

Referenced by SaveTo(), and TauCCAppComponent().

std::unique_ptr<Spectrum> ana::FDExtrap::fNCCompSpec
protected

Definition at line 103 of file FDExtrap.h.

Referenced by NCComponent(), and SaveTo().

SpectrumLoaderBase* ana::FDExtrap::fSpecLoad
protected

Definition at line 104 of file FDExtrap.h.

SpectrumLoaderBase* ana::FDExtrap::fSpecLoadt
protected

Definition at line 105 of file FDExtrap.h.

std::unique_ptr<OscillatableSpectrum> ana::FDExtrap::fTNCComp
protected

Definition at line 99 of file FDExtrap.h.

Referenced by SaveTo(), and TauNCComponent().


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