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

Uses MC for $ \nu_\mu $ CC and NC components, assigns remainder of data to $ \nu_e $ CC. More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-03/CAFAna/Decomp/FakeDecomp.h"

Inheritance diagram for ana::FakeDecomp:
ana::IDecomp

Public Member Functions

 FakeDecomp (SpectrumLoaderBase &loaderMC, SpectrumLoaderBase &loaderData, const std::string &label, const Binning &bins, const Var &var, const Cut &cut, const SystShifts &shiftMC=kNoShift, const SystShifts &shiftData=kNoShift, const Var &wei=kUnweighted)
 
 FakeDecomp (SpectrumLoaderBase &loaderMC, SpectrumLoaderBase &loaderData, const HistAxis &axis, const Cut &cut, const SystShifts &shiftMC=kNoShift, const SystShifts &shiftData=kNoShift, const Var &wei=kUnweighted)
 
 FakeDecomp (Loaders &loaders, const HistAxis &axis, const Cut &cut, const SystShifts &shiftMC=kNoShift, const SystShifts &shiftData=kNoShift, const Var &wei=kUnweighted)
 
Spectrum NumuComponent () const override
 
Spectrum AntiNumuComponent () const override
 
Spectrum NCTotalComponent () const override
 
Spectrum NCComponent () const override
 
Spectrum NCAntiComponent () const override
 
Spectrum NueComponent () const override
 
Spectrum AntiNueComponent () const override
 
virtual ~FakeDecomp ()
 
void Decompose () const
 
Spectrum Data_Component () const override
 
virtual Spectrum Pre_MCTotal () const
 
virtual Spectrum MCTotal () const
 
virtual Spectrum Pre_NumuComponent () const
 
virtual Spectrum Pre_AntiNumuComponent () const
 
virtual Spectrum Pre_NCTotalComponent () const
 
virtual Spectrum Pre_NCComponent () const
 
virtual Spectrum Pre_NCAntiComponent () const
 
virtual Spectrum Pre_NueComponent () const
 
virtual Spectrum Pre_AntiNueComponent () const
 
void SaveTo (TDirectory *dir, const std::string &name) const override
 
void SetType (DecompType::Type type) const
 
virtual Spectrum MC_NCTotalComponent () const
 
virtual Spectrum MC_NCComponent () const
 
virtual Spectrum MC_NCAntiComponent () const
 
virtual Spectrum MC_NumuComponent () const
 
virtual Spectrum MC_AntiNumuComponent () const
 
virtual Spectrum MC_NueComponent () const
 
virtual Spectrum MC_AntiNueComponent () const
 

Static Public Member Functions

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

Protected Member Functions

 FakeDecomp ()
 

Protected Attributes

Spectrum fData
 
Spectrum fTotal
 
Spectrum fNCTot
 
Spectrum fNC
 
Spectrum fNCAnti
 
Spectrum fNue
 
Spectrum fAntiNue
 
Spectrum fNumu
 
Spectrum fAntiNumu
 
DecompType::Type fType = DecompType::Type::kNCTotal
 
bool fIsSet = false
 
bool fIsDecomposed = false
 
std::vector< Spectrum * > fDiff
 

Detailed Description

Uses MC for $ \nu_\mu $ CC and NC components, assigns remainder of data to $ \nu_e $ CC.

Definition at line 22 of file FakeDecomp.h.

Constructor & Destructor Documentation

ana::FakeDecomp::FakeDecomp ( SpectrumLoaderBase loaderMC,
SpectrumLoaderBase loaderData,
const std::string label,
const Binning bins,
const Var var,
const Cut cut,
const SystShifts shiftMC = kNoShift,
const SystShifts shiftData = kNoShift,
const Var wei = kUnweighted 
)

Definition at line 23 of file FakeDecomp.cxx.

32  : FakeDecomp(loaderMC, loaderData, HistAxis(label, bins, var),
33  cut, shiftMC, shiftData, wei)
34  {
35  }
_HistAxis< Var > HistAxis
Definition: HistAxis.h:103
const char * label
const Binning bins
Definition: NumuCC_CPiBin.h:8
const Cut cut
Definition: exporter_fd.C:30
ana::FakeDecomp::FakeDecomp ( SpectrumLoaderBase loaderMC,
SpectrumLoaderBase loaderData,
const HistAxis axis,
const Cut cut,
const SystShifts shiftMC = kNoShift,
const SystShifts shiftData = kNoShift,
const Var wei = kUnweighted 
)

Definition at line 38 of file FakeDecomp.cxx.

45  : fData (loaderData, axis, cut, shiftData, wei),
46  fTotal (loaderMC, axis, cut && kHasNu, shiftMC, wei),
47  //nc
48  fNCTot (loaderMC, axis, cut && kIsNC, shiftMC, wei),
49  fNC (loaderMC, axis, cut && kIsNC && !kIsAntiNu, shiftMC, wei),
50  fNCAnti (loaderMC, axis, cut && kIsNC && kIsAntiNu, shiftMC, wei),
51  //end nc
52  fNue (loaderMC, axis, cut && kIsBeamNue&&!kIsAntiNu, shiftMC, wei),
53  fAntiNue (loaderMC, axis, cut && kIsBeamNue&& kIsAntiNu, shiftMC, wei),
54  fNumu (loaderMC, axis, cut && kIsNumuCC &&!kIsAntiNu, shiftMC, wei),
55  fAntiNumu(loaderMC, axis, cut && kIsNumuCC && kIsAntiNu, shiftMC, wei),
56  fIsDecomposed(false)
57  {
58  }
const Cut kIsNumuCC(CCFlavSel(14, 14))
Select CC .
Spectrum fNC
Definition: FakeDecomp.h:97
Spectrum fNumu
Definition: FakeDecomp.h:103
Spectrum fNCTot
Definition: FakeDecomp.h:96
Spectrum fNCAnti
Definition: FakeDecomp.h:98
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 .
Spectrum fAntiNumu
Definition: FakeDecomp.h:104
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
Spectrum fData
Definition: FakeDecomp.h:91
const Cut cut
Definition: exporter_fd.C:30
const Cut kHasNu([](const caf::SRProxy *sr){if(sr->mc.nnu==0) return false;assert(sr->mc.nnu==1);return true;})
Definition: TruthCuts.h:56
Spectrum fAntiNue
Definition: FakeDecomp.h:101
Spectrum fNue
Definition: FakeDecomp.h:100
Spectrum fTotal
Definition: FakeDecomp.h:94
ana::FakeDecomp::FakeDecomp ( Loaders loaders,
const HistAxis axis,
const Cut cut,
const SystShifts shiftMC = kNoShift,
const SystShifts shiftData = kNoShift,
const Var wei = kUnweighted 
)

Definition at line 61 of file FakeDecomp.cxx.

69  axis, cut, shiftMC, shiftData, wei)
70  {
71  }
Near Detector underground.
Definition: SREnums.h:10
const Cut cut
Definition: exporter_fd.C:30
std::vector< Loaders * > loaders
Definition: syst_header.h:386
ana::FakeDecomp::~FakeDecomp ( )
virtual

Definition at line 73 of file FakeDecomp.cxx.

74  {
75  }
ana::FakeDecomp::FakeDecomp ( )
inlineprotected

Member Function Documentation

Spectrum ana::FakeDecomp::AntiNueComponent ( ) const
overridevirtual

Implements ana::IDecomp.

Definition at line 117 of file FakeDecomp.cxx.

References ana::assert(), Decompose(), fAntiNue, fDiff, fIsDecomposed, and ana::DecompType::kAntiNue.

118  {
119  if(!fIsDecomposed) Decompose();
120 
121  assert(fIsDecomposed && "GO AWAY!!! Decompose to a specific type first!!!!!");
122  return fAntiNue + *fDiff[kAntiNue];
123  }
void Decompose() const
Definition: FakeDecomp.cxx:79
std::vector< Spectrum * > fDiff
Definition: FakeDecomp.h:116
Spectrum fAntiNue
Definition: FakeDecomp.h:101
assert(nhit_max >=nhit_nbins)
Spectrum ana::FakeDecomp::AntiNumuComponent ( ) const
overridevirtual

Implements ana::IDecomp.

Definition at line 134 of file FakeDecomp.cxx.

References ana::assert(), Decompose(), fAntiNumu, fDiff, fIsDecomposed, and ana::DecompType::kAntiNumu.

135  {
136  if(!fIsDecomposed) Decompose();
137 
138  assert(fIsDecomposed && "GO AWAY!!! Decompose to a specific type first!!!!!");
139  return fAntiNumu + *fDiff[kAntiNumu];
140  }
Spectrum fAntiNumu
Definition: FakeDecomp.h:104
void Decompose() const
Definition: FakeDecomp.cxx:79
std::vector< Spectrum * > fDiff
Definition: FakeDecomp.h:116
assert(nhit_max >=nhit_nbins)
Spectrum ana::FakeDecomp::Data_Component ( ) const
inlineoverridevirtual

Reimplemented from ana::IDecomp.

Definition at line 63 of file FakeDecomp.h.

63 {return fData;}
Spectrum fData
Definition: FakeDecomp.h:91
void ana::FakeDecomp::Decompose ( ) const

Definition at line 79 of file FakeDecomp.cxx.

References om::cout, allTimeWatchdog::endl, fData, fDiff, fIsDecomposed, fIsSet, fTotal, fType, ana::DecompType::kNCTotal, and ana::DecompType::kNum.

Referenced by AntiNueComponent(), AntiNumuComponent(), NCAntiComponent(), NCComponent(), NCTotalComponent(), NueComponent(), and NumuComponent().

79  {
80 
81  if(fIsDecomposed) {std::cout<<"GO AWAY, you already decomposed! Stop calling me!"<< std::endl; return;}
82  if(!fIsSet) {std::cout<< "Warning: Current default as NoDecomp, please SetType() first" << std::endl; fType = kNCTotal;}
83 
84  fDiff.resize(kNum);
85  fDiff[fType] = new Spectrum(fData - fTotal);
86  fIsDecomposed = true;
87 
88  }
DecompType::Type fType
Definition: FakeDecomp.h:107
Spectrum fData
Definition: FakeDecomp.h:91
std::vector< Spectrum * > fDiff
Definition: FakeDecomp.h:116
std::vector< float > Spectrum
Definition: Constants.h:610
OStream cout
Definition: OStream.cxx:6
Spectrum fTotal
Definition: FakeDecomp.h:94
std::unique_ptr< FakeDecomp > ana::FakeDecomp::LoadFrom ( TDirectory *  dir,
const std::string name 
)
static

Definition at line 196 of file FakeDecomp.cxx.

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

197  {
198  dir = dir->GetDirectory(name.c_str()); // switch to subdir
199  assert(dir);
200 
201  std::unique_ptr<FakeDecomp> ret(new FakeDecomp);
202 
203  // nc
204  ret->fNCTot = *Spectrum::LoadFrom(dir, "nc_tot_comp");
205  ret->fNC = *Spectrum::LoadFrom(dir, "nc_comp");
206  ret->fNCAnti = *Spectrum::LoadFrom(dir, "nc_anti_comp");
207  //end nc
208  ret->fData = *Spectrum::LoadFrom(dir, "data_comp");
209  ret->fNue = *Spectrum::LoadFrom(dir, "nue_comp");
210  ret->fAntiNue = *Spectrum::LoadFrom(dir, "antinue_comp");
211  ret->fNumu = *Spectrum::LoadFrom(dir, "numu_comp");
212  ret->fAntiNumu = *Spectrum::LoadFrom(dir, "antinumu_comp");
213  ret->fTotal = *Spectrum::LoadFrom(dir, "total_comp");
214 
215  delete dir;
216 
217  return ret;
218  }
const XML_Char * name
Definition: expat.h:151
static std::unique_ptr< Spectrum > LoadFrom(TDirectory *dir, const std::string &name)
Definition: Spectrum.cxx:535
TDirectory * dir
Definition: macro.C:5
assert(nhit_max >=nhit_nbins)
Spectrum ana::IDecomp::MC_AntiNueComponent ( ) const
virtualinherited

Reimplemented in ana::BENDecomp, ana::MichelDecomp, ana::FluxDecomp, ana::ProportionalDecomp, and ana::NumuDecomp.

Definition at line 46 of file IDecomp.cxx.

References om::cout, and allTimeWatchdog::endl.

Referenced by ana::GetNDCompsFromDecomp(), and ana::IDecomp::NCTotalComponent().

47  {
48  std::cout << "IDecomp: not implemented" << std::endl; abort();
49  }
OStream cout
Definition: OStream.cxx:6
Spectrum ana::IDecomp::MC_AntiNumuComponent ( ) const
virtualinherited

Reimplemented in ana::BENDecomp, ana::MichelDecomp, ana::FluxDecomp, ana::ProportionalDecomp, and ana::NumuDecomp.

Definition at line 38 of file IDecomp.cxx.

References om::cout, and allTimeWatchdog::endl.

Referenced by ana::GetNDCompsFromDecomp(), and ana::IDecomp::NCTotalComponent().

39  {
40  std::cout << "IDecomp: not implemented" << std::endl; abort();
41  }
OStream cout
Definition: OStream.cxx:6
Spectrum ana::IDecomp::MC_NCAntiComponent ( ) const
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().

31  {
32  std::cout << "IDecomp: not implemented" << std::endl; abort();
33  }
OStream cout
Definition: OStream.cxx:6
Spectrum ana::IDecomp::MC_NCComponent ( ) const
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().

27  {
28  std::cout << "IDecomp: not implemented" << std::endl; abort();
29  }
OStream cout
Definition: OStream.cxx:6
Spectrum ana::IDecomp::MC_NCTotalComponent ( ) const
virtualinherited

Reimplemented in ana::BENDecomp, ana::MichelDecomp, ana::FluxDecomp, ana::ProportionalDecomp, and ana::NumuDecomp.

Definition at line 22 of file IDecomp.cxx.

References om::cout, and allTimeWatchdog::endl.

Referenced by ana::GetNDCompsFromDecomp(), and ana::IDecomp::NCTotalComponent().

23  {
24  std::cout << "IDecomp: not implemented" << std::endl; abort();
25  }
OStream cout
Definition: OStream.cxx:6
Spectrum ana::IDecomp::MC_NueComponent ( ) const
virtualinherited

Reimplemented in ana::BENDecomp, ana::MichelDecomp, ana::FluxDecomp, ana::ProportionalDecomp, and ana::NumuDecomp.

Definition at line 42 of file IDecomp.cxx.

References om::cout, and allTimeWatchdog::endl.

Referenced by ana::GetNDCompsFromDecomp(), and ana::IDecomp::NCTotalComponent().

43  {
44  std::cout << "IDecomp: not implemented" << std::endl; abort();
45  }
OStream cout
Definition: OStream.cxx:6
Spectrum ana::IDecomp::MC_NumuComponent ( ) const
virtualinherited

Reimplemented in ana::BENDecomp, ana::MichelDecomp, ana::FluxDecomp, ana::ProportionalDecomp, and ana::NumuDecomp.

Definition at line 34 of file IDecomp.cxx.

References om::cout, and allTimeWatchdog::endl.

Referenced by ana::GetNDCompsFromDecomp(), and ana::IDecomp::NCTotalComponent().

35  {
36  std::cout << "IDecomp: not implemented" << std::endl; abort();
37  }
OStream cout
Definition: OStream.cxx:6
virtual Spectrum ana::FakeDecomp::MCTotal ( ) const
inlinevirtual

Definition at line 65 of file FakeDecomp.h.

Spectrum NumuComponent() const override
Definition: FakeDecomp.cxx:126
Spectrum NueComponent() const override
Definition: FakeDecomp.cxx:107
Spectrum AntiNumuComponent() const override
Definition: FakeDecomp.cxx:134
Spectrum AntiNueComponent() const override
Definition: FakeDecomp.cxx:117
Spectrum NCComponent() const override
Definition: FakeDecomp.cxx:143
Spectrum NCAntiComponent() const override
Definition: FakeDecomp.cxx:151
Spectrum ana::FakeDecomp::NCAntiComponent ( ) const
overridevirtual

Implements ana::IDecomp.

Definition at line 151 of file FakeDecomp.cxx.

References ana::assert(), Decompose(), fDiff, fIsDecomposed, fNCAnti, and ana::DecompType::kAntiNC.

152  {
153  if(!fIsDecomposed) Decompose();
154 
155  assert(fIsDecomposed && "GO AWAY!!! Decompose to a specific type first!!!!!");
156  return fNCAnti + *fDiff[kAntiNC];
157  }
Spectrum fNCAnti
Definition: FakeDecomp.h:98
void Decompose() const
Definition: FakeDecomp.cxx:79
std::vector< Spectrum * > fDiff
Definition: FakeDecomp.h:116
assert(nhit_max >=nhit_nbins)
Spectrum ana::FakeDecomp::NCComponent ( ) const
overridevirtual

Implements ana::IDecomp.

Definition at line 143 of file FakeDecomp.cxx.

References ana::assert(), Decompose(), fDiff, fIsDecomposed, fNC, and ana::kNC.

144  {
145  if(!fIsDecomposed) Decompose();
146 
147  assert(fIsDecomposed && "GO AWAY!!! Decompose to a specific type first!!!!!");
148  return fNC + *fDiff[kNC];
149  }
Spectrum fNC
Definition: FakeDecomp.h:97
void Decompose() const
Definition: FakeDecomp.cxx:79
std::vector< Spectrum * > fDiff
Definition: FakeDecomp.h:116
assert(nhit_max >=nhit_nbins)
Spectrum ana::FakeDecomp::NCTotalComponent ( ) const
overridevirtual

Reimplemented from ana::IDecomp.

Definition at line 159 of file FakeDecomp.cxx.

References ana::assert(), Decompose(), fDiff, fIsDecomposed, fNCTot, and ana::DecompType::kNCTotal.

160  {
161  if(!fIsDecomposed) Decompose();
162 
163  assert(fIsDecomposed && "GO AWAY!!! Decompose to a specific type first!!!!!");
164  return fNCTot + *fDiff[kNCTotal];
165  }
Spectrum fNCTot
Definition: FakeDecomp.h:96
void Decompose() const
Definition: FakeDecomp.cxx:79
std::vector< Spectrum * > fDiff
Definition: FakeDecomp.h:116
assert(nhit_max >=nhit_nbins)
Spectrum ana::FakeDecomp::NueComponent ( ) const
overridevirtual

Implements ana::IDecomp.

Definition at line 107 of file FakeDecomp.cxx.

References ana::assert(), Decompose(), fDiff, fIsDecomposed, fNue, and ana::kNue().

108  {
109  if(!fIsDecomposed) Decompose();
110 
111  assert(fIsDecomposed && "GO AWAY!!! Decompose to a specific type first!!!!!");
112  return fNue + *fDiff[kNue];
113  }
void Decompose() const
Definition: FakeDecomp.cxx:79
std::vector< Spectrum * > fDiff
Definition: FakeDecomp.h:116
const Cut kNue([](const caf::SRProxy *sr){if(sr->mc.nnu==0) return false;if(sr->vtx.nelastic==0) return false;return(sr->mc.nu[0].iscc && sr->mc.nu[0].pdg==12);})
Spectrum fNue
Definition: FakeDecomp.h:100
assert(nhit_max >=nhit_nbins)
Spectrum ana::FakeDecomp::NumuComponent ( ) const
overridevirtual

Implements ana::IDecomp.

Definition at line 126 of file FakeDecomp.cxx.

References ana::assert(), Decompose(), fDiff, fIsDecomposed, fNumu, and ana::kNumu().

127  {
128  if(!fIsDecomposed) Decompose();
129 
130  assert(fIsDecomposed && "GO AWAY!!! Decompose to a specific type first!!!!!");
131  return fNumu + *fDiff[kNumu];
132  }
Spectrum fNumu
Definition: FakeDecomp.h:103
const Cut kNumu([](const caf::SRProxy *sr){if(sr->vtx.nelastic==0) return false;if(sr->mc.nnu==0) return false;return(sr->mc.nu[0].pdg==14);})
void Decompose() const
Definition: FakeDecomp.cxx:79
std::vector< Spectrum * > fDiff
Definition: FakeDecomp.h:116
assert(nhit_max >=nhit_nbins)
virtual Spectrum ana::FakeDecomp::Pre_AntiNueComponent ( ) const
inlinevirtual

Definition at line 72 of file FakeDecomp.h.

References dir, ana::LoadFrom(), ana::SaveTo(), and string.

72 {return fAntiNue;}
Spectrum fAntiNue
Definition: FakeDecomp.h:101
virtual Spectrum ana::FakeDecomp::Pre_AntiNumuComponent ( ) const
inlinevirtual

Definition at line 67 of file FakeDecomp.h.

67 {return fAntiNumu;}
Spectrum fAntiNumu
Definition: FakeDecomp.h:104
virtual Spectrum ana::FakeDecomp::Pre_MCTotal ( ) const
inlinevirtual

Definition at line 64 of file FakeDecomp.h.

64 {return fTotal;}
Spectrum fTotal
Definition: FakeDecomp.h:94
virtual Spectrum ana::FakeDecomp::Pre_NCAntiComponent ( ) const
inlinevirtual

Definition at line 70 of file FakeDecomp.h.

70 {return fNCAnti;}
Spectrum fNCAnti
Definition: FakeDecomp.h:98
virtual Spectrum ana::FakeDecomp::Pre_NCComponent ( ) const
inlinevirtual

Definition at line 69 of file FakeDecomp.h.

References fNC.

69 {return fNC;}
Spectrum fNC
Definition: FakeDecomp.h:97
virtual Spectrum ana::FakeDecomp::Pre_NCTotalComponent ( ) const
inlinevirtual

Definition at line 68 of file FakeDecomp.h.

68 {return fNCTot;}
Spectrum fNCTot
Definition: FakeDecomp.h:96
virtual Spectrum ana::FakeDecomp::Pre_NueComponent ( ) const
inlinevirtual

Definition at line 71 of file FakeDecomp.h.

71 {return fNue;}
Spectrum fNue
Definition: FakeDecomp.h:100
virtual Spectrum ana::FakeDecomp::Pre_NumuComponent ( ) const
inlinevirtual

Definition at line 66 of file FakeDecomp.h.

66 {return fNumu;}
Spectrum fNumu
Definition: FakeDecomp.h:103
void ana::FakeDecomp::SaveTo ( TDirectory *  dir,
const std::string name 
) const
overridevirtual

Implements ana::IDecomp.

Definition at line 169 of file FakeDecomp.cxx.

References dir, fAntiNue, fAntiNumu, fData, fNC, fNCAnti, fNCTot, fNue, fNumu, fTotal, ana::Spectrum::SaveTo(), and tmp.

170  {
171  TDirectory* tmp = gDirectory;
172 
173  dir = dir->mkdir(name.c_str()); // switch to subdir
174  dir->cd();
175 
176  TObjString("FakeDecomp").Write("type");
177  //nc
178  fNCTot.SaveTo(dir, "nc_tot_comp");
179  fNC.SaveTo(dir, "nc_comp");
180  fNCAnti.SaveTo(dir, "nc_anti_comp");
181  //end nc
182  fData.SaveTo(dir, "data_comp");
183  fTotal.SaveTo(dir, "total_comp");
184  fNue.SaveTo(dir, "nue_comp");
185  fAntiNue.SaveTo(dir, "antinue_comp");
186  fNumu.SaveTo(dir, "numu_comp");
187  fAntiNumu.SaveTo(dir, "antinumu_comp");
188 
189  dir->Write();
190  delete dir;
191 
192  tmp->cd();
193  }
const XML_Char * name
Definition: expat.h:151
Spectrum fNC
Definition: FakeDecomp.h:97
Spectrum fNumu
Definition: FakeDecomp.h:103
Spectrum fNCTot
Definition: FakeDecomp.h:96
Spectrum fNCAnti
Definition: FakeDecomp.h:98
Float_t tmp
Definition: plot.C:36
Spectrum fAntiNumu
Definition: FakeDecomp.h:104
Spectrum fData
Definition: FakeDecomp.h:91
void SaveTo(TDirectory *dir, const std::string &name) const
Definition: Spectrum.cxx:506
Spectrum fAntiNue
Definition: FakeDecomp.h:101
TDirectory * dir
Definition: macro.C:5
Spectrum fNue
Definition: FakeDecomp.h:100
Spectrum fTotal
Definition: FakeDecomp.h:94
void ana::FakeDecomp::SetType ( DecompType::Type  type) const

Definition at line 91 of file FakeDecomp.cxx.

References om::cout, allTimeWatchdog::endl, fIsDecomposed, fIsSet, fType, ana::DecompType::kNCTotal, and ana::DecompType::kNum.

91  {
92 
93  if(type >= kNum || type < 0){
94  std::cout<< "Unreasonable Decomp Type, reseting to No Decomp"<<std::endl;
95  fType = kNCTotal;
96  fIsDecomposed = false;
97  fIsSet = true;
98  }
99  else{
100  fType = type;
101  fIsDecomposed = false;
102  fIsSet = true;
103  }
104  }
DecompType::Type fType
Definition: FakeDecomp.h:107
OStream cout
Definition: OStream.cxx:6

Member Data Documentation

Spectrum ana::FakeDecomp::fAntiNue
protected

Definition at line 101 of file FakeDecomp.h.

Referenced by AntiNueComponent(), and SaveTo().

Spectrum ana::FakeDecomp::fAntiNumu
protected

Definition at line 104 of file FakeDecomp.h.

Referenced by AntiNumuComponent(), and SaveTo().

Spectrum ana::FakeDecomp::fData
protected

Definition at line 91 of file FakeDecomp.h.

Referenced by Decompose(), and SaveTo().

std::vector<Spectrum*> ana::FakeDecomp::fDiff
mutableprotected
bool ana::FakeDecomp::fIsDecomposed = false
mutableprotected
bool ana::FakeDecomp::fIsSet = false
mutableprotected

Definition at line 108 of file FakeDecomp.h.

Referenced by Decompose(), and SetType().

Spectrum ana::FakeDecomp::fNC
protected

Definition at line 97 of file FakeDecomp.h.

Referenced by NCComponent(), and SaveTo().

Spectrum ana::FakeDecomp::fNCAnti
protected

Definition at line 98 of file FakeDecomp.h.

Referenced by NCAntiComponent(), and SaveTo().

Spectrum ana::FakeDecomp::fNCTot
protected

Definition at line 96 of file FakeDecomp.h.

Referenced by NCTotalComponent(), and SaveTo().

Spectrum ana::FakeDecomp::fNue
protected

Definition at line 100 of file FakeDecomp.h.

Referenced by NueComponent(), and SaveTo().

Spectrum ana::FakeDecomp::fNumu
protected

Definition at line 103 of file FakeDecomp.h.

Referenced by NumuComponent(), and SaveTo().

Spectrum ana::FakeDecomp::fTotal
protected

Definition at line 94 of file FakeDecomp.h.

Referenced by Decompose(), and SaveTo().

DecompType::Type ana::FakeDecomp::fType = DecompType::Type::kNCTotal
mutableprotected

Definition at line 107 of file FakeDecomp.h.

Referenced by Decompose(), and SetType().


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