Public Member Functions | Private Attributes | List of all members
ana::MuEnergyScaleSyst Class Reference

Absolute fit muon energy scale systematic. More...

#include "/cvmfs/"

Inheritance diagram for ana::MuEnergyScaleSyst:
ana::ISyst ana::FDMuEnergyScaleSyst

Public Member Functions

 MuEnergyScaleSyst (const std::string &shortName, const std::string &latexName, double scale)
 MuEnergyScaleSyst (double scale)
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...

Private Attributes

const double fScale

Detailed Description

Absolute fit muon energy scale systematic.

Definition at line 39 of file EnergySysts.h.

Constructor & Destructor Documentation

ana::MuEnergyScaleSyst::MuEnergyScaleSyst ( const std::string shortName,
const std::string latexName,
double  scale 

Definition at line 42 of file EnergySysts.h.

45  : ISyst(shortName, latexName), fScale(scale)
46  {
47  }
Double_t scale
Definition: plot.C:25
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
const double fScale
Definition: EnergySysts.h:57
ana::MuEnergyScaleSyst::MuEnergyScaleSyst ( double  scale)

Definition at line 49 of file EnergySysts.h.

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

50  : ISyst("AbsMuEScale", "Absolute Muon Energy Scale"), fScale(scale)
51  {
52  }
Double_t scale
Definition: plot.C:25
ISyst(const std::string &shortName, const std::string &latexName)
Definition: ISyst.cxx:10
const double fScale
Definition: EnergySysts.h:57

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::MuEnergyScaleSyst::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.

Reimplemented in ana::FDMuEnergyScaleSyst.

Definition at line 29 of file EnergySysts.cxx.

References caf::Proxy< caf::SRNumuEnergy >::E, caf::Proxy< caf::StandardRecord >::energy, ana::HadEnergyScaleSyst::fScale, caf::Proxy< caf::SREnergyBranch >::numu, caf::Proxy< caf::SRNumuEnergy >::recomuonE, ana::FDHadEnergyScaleSyst::Shift(), sigma(), and caf::Proxy< caf::SRNumuEnergy >::trkccE.

Referenced by ana::HadEnergyScaleSyst::Shift(), and ana::FDMuEnergyScaleSyst::Shift().

30  {
31  const double muE = sr->energy.numu.recomuonE;
32  const double muEnew = (1-fScale*sigma)*muE;
33  const double difference = muEnew - muE;
35  sr->energy.numu.recomuonE = muEnew;
36  sr->energy.numu.trkccE += difference;
37  sr->energy.numu.E += difference;
38  }
caf::Proxy< float > trkccE
Definition: SRProxy.h:195
caf::Proxy< float > E
Definition: SRProxy.h:164
caf::Proxy< caf::SRNumuEnergy > numu
Definition: SRProxy.h:214
caf::Proxy< caf::SREnergyBranch > energy
Definition: SRProxy.h:2136
double sigma(TH1F *hist, double percentile)
caf::Proxy< float > recomuonE
Definition: SRProxy.h:190
const double fScale
Definition: EnergySysts.h:57
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

const double ana::MuEnergyScaleSyst::fScale

Definition at line 57 of file EnergySysts.h.

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