Public Member Functions | |
NueSyst (std::string name, std::string label, std::string sample_name="", std::map< int, std::pair< TH1 *, TH1 * > > shifts={}) | |
Implementation of standard ISyst::Shift function for NueSyst. More... | |
virtual void | Shift (double sigma, caf::SRProxy *sr, double &weight) const override |
Implementation of standard ISyst::Shift function for NueSyst. More... | |
std::string | SampleName () const |
std::string | BaseName () const |
Return base name of systematic. More... | |
virtual void | SaveTo (TDirectory *dir, std::string type) const |
SaveTo implementation for NuISyst. More... | |
virtual const std::string & | ShortName () const final |
The name printed out to the screen. More... | |
virtual const std::string & | LatexName () 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... | |
Static Public Member Functions | |
static std::unique_ptr< NueSyst > | LoadFrom (TDirectory *dir) |
LoadFrom implementation for NueSyst. More... | |
Protected Member Functions | |
virtual double | WeightFor (SystChannel channel, double sigma, double calE) const |
Get weight for a given energy, channel and sigma shift. More... | |
Protected Attributes | |
std::string | fSampleName |
std::map< int, std::pair< TH1 *, TH1 * > > | fShifts |
Definition at line 18 of file CovMxSysts.h.
ana::NueSyst::NueSyst | ( | std::string | name, |
std::string | label, | ||
std::string | sample_name = "" , |
||
std::map< int, std::pair< TH1 *, TH1 * > > | shifts = {} |
||
) |
Implementation of standard ISyst::Shift function for NueSyst.
Definition at line 117 of file CovMxSysts.cxx.
|
inherited |
Return base name of systematic.
Definition at line 44 of file CovMxSysts.cxx.
References ana::NuISyst::fSampleName, and ana::ISyst::ShortName().
|
inlinevirtualinherited |
GENIE reweights can only provide +/-1,2sigma.
Reimplemented in ana::SummedSyst.
|
inlinefinalvirtualinherited |
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().
|
static |
LoadFrom implementation for NueSyst.
Definition at line 171 of file CovMxSysts.cxx.
References ana::assert(), findDuplicateFiles::key, label, make_pair(), next(), and getGoodRuns4SAM::tag.
Referenced by ana::LoadSystsFromFile().
|
inlineinherited |
|
virtualinherited |
SaveTo implementation for NuISyst.
Definition at line 51 of file CovMxSysts.cxx.
References om::cout, allTimeWatchdog::endl, ana::NuISyst::fSampleName, ana::NuISyst::fShifts, ana::ISyst::LatexName(), ana::ISyst::ShortName(), sigma(), tmp, and Write().
|
overridevirtual |
Implementation of standard ISyst::Shift function for NueSyst.
Reimplemented from ana::ISyst.
Definition at line 124 of file CovMxSysts.cxx.
References febshutoff_auto::chan, om::cout, caf::Proxy< caf::SRHeader >::det, allTimeWatchdog::endl, caf::Proxy< caf::StandardRecord >::hdr, caf::Proxy< caf::SRSpill >::isFHC, caf::Proxy< caf::SRSpill >::isRHC, ana::kBkg, caf::kFARDET, caf::kNEARDET, ana::kNue2020AnaBin, ana::kNue2020FDAllSamples_ML, ana::kNue2020ND, ana::kSig, ana::kUnknown, caf::Proxy< caf::StandardRecord >::mc, caf::Proxy< caf::SRTruthBranch >::nnu, caf::Proxy< caf::SRTruthBranch >::nu, canMan::sign(), caf::Proxy< caf::StandardRecord >::spill, and ana::NuISyst::WeightFor().
|
inlinefinalvirtualinherited |
The name printed out to the screen.
Definition at line 27 of file ISyst.h.
References ana::ISyst::fShortName.
Referenced by ana::PredictionSystJoint2018::AddNormSyst(), ana::PredictionSystJointDemo::AddNormSyst(), ana::PredictionSyst3Flavor2020::AddNormSyst(), ana::CovMxManager::AddSystematic(), ana::NuISyst::BaseName(), ana::PredictionInterp::DebugPlot(), DrawBins(), DrawPulls(), DrawSystShifts(), GetGENIEShiftLabels(), ana::SystShifts::GetShift(), ana::Nus17SystFromHist::LoadHists(), ana::NusSystFromHist::LoadHists(), ana::Nus18SystFromHist::LoadHists(), MakeCovarSim(), MakeCovMx(), MakeGENIEMatrix(), plot_3flavor_withsysts(), ana::PredictionSystJoint2018::PredictionSystJoint2018(), ana::PredictionSystJointDemo::PredictionSystJointDemo(), ana::MCMCSamples::SampleValue(), ana::NuISyst::SaveTo(), ana::SystShifts::SetShift(), ana::SortSystsName(), SystsGENIEAna(), test_stanfit_withsysts(), ana::MCMCSample::Val(), and ana::MCMCSamples::VarOffset().
|
inlinevirtualinherited |
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().
|
protectedvirtualinherited |
Get weight for a given energy, channel and sigma shift.
Definition at line 83 of file CovMxSysts.cxx.
References ana::assert(), bin, febshutoff_auto::end, ana::NuISyst::fShifts, it, ana::kSig, std::max(), and runNovaSAM::ret.
Referenced by ana::NumuSyst::Shift(), ana::NCSyst::Shift(), and Shift().
|
protectedinherited |
Definition at line 31 of file CovMxSysts.h.
Referenced by ana::NuISyst::BaseName(), and ana::NuISyst::SaveTo().
|
protectedinherited |
Definition at line 32 of file CovMxSysts.h.
Referenced by ana::NuISyst::SaveTo(), ana::NuISyst::WeightFor(), and ana::NuISyst::~NuISyst().