All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
ToyNormSyst Class Reference

#include <toysysts.h>

Inheritance diagram for ToyNormSyst:
ana::ISyst

Public Member Functions

 ToyNormSyst ()
 
void Shift (double sigma, caf::SRSliceProxy *sr, double &weight) const override
 Perform the systematic shift. More...
 
- Public Member Functions inherited from ana::ISyst
 ISyst (const std::string &shortName, const std::string &latexName, bool applyPenalty=true, double min=-3, double max=+3)
 
 ISyst (const ISyst &)=delete
 
 ISyst (ISyst &&rhs)=delete
 
virtual ~ISyst ()
 
void operator= (const ISyst &)=delete
 
void operator= (ISyst &&)=delete
 
virtual std::string ShortName () const final
 The name printed out to the screen. More...
 
virtual std::string LatexName () const final
 The name used on plots (ROOT's TLatex syntax) More...
 
virtual double Penalty (double x) const
 
virtual bool ApplyPenalty () const
 Should a penalty be applied for this shift? More...
 
virtual double Min () const
 Return the min/max value for this syst. More...
 
virtual double Max () const
 
virtual int PredInterpMaxNSigma () const
 

Detailed Description

Definition at line 24 of file toysysts.h.

Constructor & Destructor Documentation

ToyNormSyst::ToyNormSyst ( )
inline

Definition at line 27 of file toysysts.h.

27 : ISyst("toyNorm", "Toy Norm Scale") {}
ISyst(const std::string &shortName, const std::string &latexName, bool applyPenalty=true, double min=-3, double max=+3)
Definition: ISyst.cxx:9

Member Function Documentation

void ToyNormSyst::Shift ( double  sigma,
caf::SRSliceProxy sr,
double &  weight 
) const
inlineoverridevirtual

Perform the systematic shift.

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

Implements ana::ISyst.

Definition at line 28 of file toysysts.h.

31  {
32  weight *= TMath::Max(0., 1+0.1*sigma);
33  }

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