Public Member Functions | List of all members
ana::ContainmentSyst Class Reference

#include "/cvmfs/"

Inheritance diagram for ana::ContainmentSyst:

Public Member Functions

 ContainmentSyst ()
void Shift (double sigma, caf::SRProxy *sr, double &weight) const override
 Perform the systematic shift. More...
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...

Detailed Description

Definition at line 148 of file Systs.h.

Constructor & Destructor Documentation

ana::ContainmentSyst::ContainmentSyst ( )

Definition at line 151 of file Systs.h.

References ana::kContainmentSyst, sigma(), sr, and ana::weight.

151 : ISyst("cont", "Containment Efficiency") {}
ISyst(const std::string &shortName, const std::string &latexName)
Definition: ISyst.cxx:10

Member Function Documentation

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
void ana::ContainmentSyst::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 141 of file Systs.cxx.

References caf::Proxy< caf::SRIDBranch >::contain, dist, stan::math::exp(), std::min(), caf::Proxy< caf::SRSlice >::ncellsfromedge, caf::Proxy< caf::SRContain >::nplanestoback, caf::Proxy< caf::SRContain >::nplanestofront, caf::Proxy< caf::StandardRecord >::sel, ana::DISHighWScaleSyst::Shift(), sigma(), and caf::Proxy< caf::StandardRecord >::slc.

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

142  {
143  const double dist = std::min( {sr->sel.contain.nplanestoback*6.,
144  sr->sel.contain.nplanestofront*6.,
145  sr->slc.ncellsfromedge*4., 0.} );
147  weight *= exp(-dist/50) // 50cm characteristic distance
148  * .50 * sigma; // 50% reweighting at edge
149  }
const Var weight
caf::Proxy< caf::SRContain > contain
Definition: SRProxy.h:1251
double dist
Definition: runWimpSim.h:113
caf::Proxy< int > nplanestofront
Definition: SRProxy.h:829
fvar< T > exp(const fvar< T > &x)
Definition: exp.hpp:10
caf::Proxy< unsigned int > ncellsfromedge
Definition: SRProxy.h:1313
caf::Proxy< int > nplanestoback
Definition: SRProxy.h:828
double sigma(TH1F *hist, double percentile)
caf::Proxy< caf::SRSlice > slc
Definition: SRProxy.h:2142
caf::Proxy< caf::SRIDBranch > sel
Definition: SRProxy.h:2141
T min(const caf::Proxy< T > &a, T b)
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 demo::DemoSyst1, ana::BeamSyst, ana::GenericSystComponentScale< T >, ana::GenericSystComponentScale< T >, ana::GenericSystComponentScale< T >, 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  }

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