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

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-03/3FlavorAna/Systs/EnergySysts2019.h"

Inheritance diagram for ana::CorrMuEScaleSyst2019:
ana::ISyst

Public Member Functions

 CorrMuEScaleSyst2019 (const std::string &shortName, const std::string &latexName, const double scaleFD, const double scaleND, const double scaleMuCat)
 
 CorrMuEScaleSyst2019 (const double scaleFD, const double scaleND, const double scaleMuCat)
 
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 fScaleFD
 
const double fScaleND
 
const double fScaleMuCat
 

Detailed Description

Definition at line 17 of file EnergySysts2019.h.

Constructor & Destructor Documentation

ana::CorrMuEScaleSyst2019::CorrMuEScaleSyst2019 ( const std::string shortName,
const std::string latexName,
const double  scaleFD,
const double  scaleND,
const double  scaleMuCat 
)
inline

Definition at line 20 of file EnergySysts2019.h.

24  : ISyst(shortName, latexName),
25  fScaleFD(scaleFD), fScaleND(scaleND), fScaleMuCat(scaleMuCat) {}
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
ana::CorrMuEScaleSyst2019::CorrMuEScaleSyst2019 ( const double  scaleFD,
const double  scaleND,
const double  scaleMuCat 
)
inline

Definition at line 27 of file EnergySysts2019.h.

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

29  : ISyst("CorrMuEScaleSyst2019", "Corr Mu Energy Scale 2019"),
30  fScaleFD(scaleFD), fScaleND(scaleND), fScaleMuCat(scaleMuCat) {}
ISyst(const std::string &shortName, const std::string &latexName)
Definition: ISyst.cxx:10

Member Function Documentation

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

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
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().

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

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.

Parameters
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 28 of file EnergySysts2019.cxx.

References caf::Proxy< caf::SRHeader >::det, caf::Proxy< caf::StandardRecord >::energy, fScaleFD, fScaleMuCat, fScaleND, caf::Proxy< caf::StandardRecord >::hdr, caf::Proxy< caf::SRTrackBranch >::kalman, caf::kFARDET, caf::kNEARDET, caf::Proxy< caf::SRNumuEnergy >::ndtrklenact, caf::Proxy< caf::SRNumuEnergy >::ndtrklencat, caf::Proxy< caf::SREnergyBranch >::numu, ana::UnCorrFDMuEScaleSyst2019::Shift(), sigma(), caf::Proxy< caf::SRKalman >::tracks, and caf::Proxy< caf::StandardRecord >::trk.

Referenced by ana::BolombMuESyst2019::BolombMuESyst2019(), CorrMuEScaleSyst2019(), ana::PileupMuESyst2019::PileupMuESyst2019(), ana::UnCorrFDMuEScaleSyst2019::UnCorrFDMuEScaleSyst2019(), ana::UnCorrMuCatMuESyst2019::UnCorrMuCatMuESyst2019(), and ana::UnCorrNDMuEScaleSyst2019::UnCorrNDMuEScaleSyst2019().

29  {
30  if(sr->trk.kalman.tracks.empty()) return;
31 
32  if(sr->hdr.det == caf::kNEARDET){
35  }
36  else if(sr->hdr.det == caf::kFARDET){
37  sr->trk.kalman.tracks[0].len *= 1+fScaleFD*sigma;
38  }
39  }
Near Detector underground.
Definition: SREnums.h:10
Far Detector at Ash River.
Definition: SREnums.h:11
caf::Proxy< caf::SRHeader > hdr
Definition: SRProxy.h:2137
caf::Proxy< caf::SRNumuEnergy > numu
Definition: SRProxy.h:214
caf::Proxy< caf::SREnergyBranch > energy
Definition: SRProxy.h:2136
caf::Proxy< caf::SRTrackBranch > trk
Definition: SRProxy.h:2145
double sigma(TH1F *hist, double percentile)
caf::Proxy< caf::SRKalman > kalman
Definition: SRProxy.h:1797
caf::Proxy< float > ndtrklenact
Definition: SRProxy.h:186
caf::Proxy< std::vector< caf::SRKalmanTrack > > tracks
Definition: SRProxy.h:1780
caf::Proxy< float > ndtrklencat
Definition: SRProxy.h:187
caf::Proxy< caf::Det_t > det
Definition: SRProxy.h:232
virtual const std::string& ana::ISyst::ShortName ( ) const
inlinefinalvirtualinherited
virtual void ana::ISyst::TruthShift ( double  sigma,
caf::SRNeutrinoProxy nu,
double &  weight 
) const
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 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  }

Member Data Documentation

const double ana::CorrMuEScaleSyst2019::fScaleFD
private

Definition at line 35 of file EnergySysts2019.h.

Referenced by Shift().

const double ana::CorrMuEScaleSyst2019::fScaleMuCat
private

Definition at line 37 of file EnergySysts2019.h.

Referenced by Shift().

const double ana::CorrMuEScaleSyst2019::fScaleND
private

Definition at line 36 of file EnergySysts2019.h.

Referenced by Shift().


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