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

#include "/cvmfs/"

Inheritance diagram for ana::DummyNue2017Syst:

Public Member Functions

 DummyNue2017Syst (const std::string &shortName, const std::string &longName, const std::vector< int > &shifts, bool isAltSample)
 shortName must match exactly the component in the filename More...
virtual void Shift (double, caf::SRProxy *, double &) const
 Perform the systematic shift. More...
std::vector< intShifts () const
bool IsAltSample () const
virtual const std::stringShortName () const final
 The name printed out to the screen. More...
virtual const std::stringLatexName () const final
 The name used on plots (ROOT's TLatex syntax) More...
virtual void TruthShift (double sigma, caf::SRNeutrinoProxy *nu, double &weight) const
virtual bool IsGenieReweight () const
 GENIE reweights can only provide +/-1,2sigma. More...

Protected Attributes

std::vector< intfShifts
bool fIsAltSample

Detailed Description

Doesn't actually shift anything. Contains info about what files to load shifted predictions from.

Definition at line 11 of file PredictionSystNue2017.h.

Constructor & Destructor Documentation

ana::DummyNue2017Syst::DummyNue2017Syst ( const std::string shortName,
const std::string longName,
const std::vector< int > &  shifts,
bool  isAltSample 

shortName must match exactly the component in the filename

Definition at line 15 of file PredictionSystNue2017.h.

18  : ISyst(shortName, longName), fShifts(shifts),
19  fIsAltSample(isAltSample) {}
std::vector< int > fShifts
string shortName
THUMBNAIL BLOCK: We need to make a thumbnail for each.
ISyst(const std::string &shortName, const std::string &latexName)
Definition: ISyst.cxx:10

Member Function Documentation

bool ana::DummyNue2017Syst::IsAltSample ( ) const

Definition at line 23 of file PredictionSystNue2017.h.

References fIsAltSample.

virtual bool ana::ISyst::IsGenieReweight ( ) const

GENIE reweights can only provide +/-1,2sigma.

Reimplemented in ana::SummedSyst.

Definition at line 56 of file ISyst.h.

56 {return false;}
virtual const std::string& ana::ISyst::LatexName ( ) const

The name used on plots (ROOT's TLatex syntax)

Definition at line 30 of file ISyst.h.

References ana::ISyst::fLatexName, ana::ISyst::Shift(), sigma(), sr, and ana::weight.

Referenced by ana::PredictionInterp::DebugPlotColz(), GetGENIEShiftLabels(), ana::NuISyst::SaveTo(), SystsGENIEAna(), and WriteSystName().

30 {return fLatexName;}
std::string fLatexName
Definition: ISyst.h:60
virtual void ana::DummyNue2017Syst::Shift ( double  sigma,
caf::SRProxy sr,
double &  weight 
) const

Perform the systematic shift.

Override this function if your systematic depends on non-SRNeutrino quantities. If it is SRNeutrino-only, implement the other function, and let this default forward to you when necessary.

sigmaNumber of sigma to shift record by
srThe record to inspect and alter
weightScale this weight for reweighting systematics

Reimplemented from ana::ISyst.

Definition at line 20 of file PredictionSystNue2017.h.

20 {}
std::vector<int> ana::DummyNue2017Syst::Shifts ( ) const

Definition at line 22 of file PredictionSystNue2017.h.

References fShifts.

22 {return fShifts;}
std::vector< int > fShifts
virtual const std::string& ana::ISyst::ShortName ( ) const
virtual void ana::ISyst::TruthShift ( double  sigma,
caf::SRNeutrinoProxy nu,
double &  weight 
) const

For systematics that deal only with the neutrino truth and not any reconstruction/PID details. Systematics defined this way will work on nuTree-derived spectra too (e.g. denominators of efficiencies).

Reimplemented in ana::BeamSyst, demo::DemoSyst1, ana::GenericSystComponentScale< T >, ana::GenericSystComponentScale< T >, ana::GenericSystComponentScale< T >, ana::ReinteractionSyst, and ana::NOvARwgtSyst.

Definition at line 46 of file ISyst.h.

Referenced by ana::ISyst::Shift().

49  {
50  // Implement this function if your systematic depends only
51  // SRNeutrino. Left blank by default, since systematics using other
52  // information can do nothing sensible to the nuTree.
53  }

Member Data Documentation

bool ana::DummyNue2017Syst::fIsAltSample

Definition at line 27 of file PredictionSystNue2017.h.

Referenced by IsAltSample().

std::vector<int> ana::DummyNue2017Syst::fShifts

Definition at line 26 of file PredictionSystNue2017.h.

Referenced by Shifts().

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