Encapsulate code to systematically shift a caf::StandardRecord.
More...
#include <ISyst.h>
Encapsulate code to systematically shift a caf::StandardRecord.
The Shift() function alters the caf::StandardRecord or the weight associated with the event.
Definition at line 14 of file ISyst.h.
ana::ISyst::ISyst |
( |
const std::string & |
shortName, |
|
|
const std::string & |
latexName, |
|
|
bool |
applyPenalty = true , |
|
|
double |
min = -3 , |
|
|
double |
max = +3 |
|
) |
| |
Definition at line 9 of file ISyst.cxx.
static void Register(const ISyst *s)
ana::ISyst::ISyst |
( |
const ISyst & |
| ) |
|
|
delete |
ana::ISyst::ISyst |
( |
ISyst && |
rhs | ) |
|
|
delete |
Definition at line 20 of file ISyst.cxx.
static void UnRegister(const ISyst *s)
virtual bool ana::ISyst::ApplyPenalty |
( |
| ) |
const |
|
inlinevirtual |
Should a penalty be applied for this shift?
Definition at line 38 of file ISyst.h.
virtual std::string ana::ISyst::LatexName |
( |
| ) |
const |
|
inlinefinalvirtual |
The name used on plots (ROOT's TLatex syntax)
Definition at line 33 of file ISyst.h.
virtual double ana::ISyst::Max |
( |
| ) |
const |
|
inlinevirtual |
virtual double ana::ISyst::Min |
( |
| ) |
const |
|
inlinevirtual |
Return the min/max value for this syst.
Definition at line 41 of file ISyst.h.
void ana::ISyst::operator= |
( |
const ISyst & |
| ) |
|
|
delete |
void ana::ISyst::operator= |
( |
ISyst && |
| ) |
|
|
delete |
double ana::ISyst::Penalty |
( |
double |
x | ) |
const |
|
virtual |
Definition at line 28 of file ISyst.cxx.
36 if(
x >=
Min() &&
x <=
Max())
return 0;
41 const double rad = (
Max()-
Min())/2;
process_name opflash particleana ie x
virtual double Max() const
virtual double Min() const
Return the min/max value for this syst.
T sqr(T x)
More efficient square function than pow(x,2)
double mean(const std::vector< short > &wf, size_t start, size_t nsample)
virtual int ana::ISyst::PredInterpMaxNSigma |
( |
| ) |
const |
|
inlinevirtual |
PredictionInterp normally interpolates between spectra made at +/-1,2,3sigma. For some systematics that's overkill. Override this function to specify different behaviour for this systematic.
Definition at line 56 of file ISyst.h.
virtual void ana::ISyst::Shift |
( |
double |
sigma, |
|
|
caf::SRSliceProxy * |
sr, |
|
|
double & |
weight |
|
) |
| const |
|
pure virtual |
virtual std::string ana::ISyst::ShortName |
( |
| ) |
const |
|
inlinefinalvirtual |
The name printed out to the screen.
Definition at line 30 of file ISyst.h.
bool ana::ISyst::fApplyPenalty |
|
private |
std::string ana::ISyst::fLatexName |
|
private |
std::string ana::ISyst::fShortName |
|
private |
The documentation for this class was generated from the following files: