A class describing a systematic variation. More...
#include <BCMTFSystematicVariation.h>
Public Member Functions | |
Constructors and destructors | |
BCMTFSystematicVariation (const char *channelname, const char *systematicname, int nprocesses) | |
~BCMTFSystematicVariation () | |
Member functions (get) | |
TH1D * | GetHistogramUp (int index) |
TH1D * | GetHistogramDown (int index) |
Member functions (set) | |
void | SetHistogramUp (int index, TH1D *hist) |
void | SetHistogramDown (int index, TH1D *hist) |
void | SetHistograms (int index, TH1D *hist_up, TH1D *hist_down) |
Member functions (miscellaneous methods) | |
void | AddHistogramUp (TH1D *hist) |
void | AddHistogramDown (TH1D *hist) |
void | AddHistograms (TH1D *hist_up, TH1D *hist_down) |
Private Attributes | |
std::vector< TH1D * > | fHistogramUpContainer |
std::vector< TH1D * > | fHistogramDownContainer |
std::string | fChannelName |
std::string | fSystematicName |
A class describing a systematic variation.
Definition at line 30 of file BCMTFSystematicVariation.h.
BCMTFSystematicVariation::BCMTFSystematicVariation | ( | const char * | channelname, | |
const char * | systematicname, | |||
int | nprocesses | |||
) |
The default constructor.
channelname | The name of the channel. | |
systematicname | The name of the systematic. | |
nprocesses | The number of processes. |
Definition at line 15 of file BCMTFSystematicVariation.cxx.
{ fChannelName = channelname; fSystematicName = systematicname; for (int i = 0; i < nprocesses; ++i) { fHistogramUpContainer.push_back(0); fHistogramDownContainer.push_back(0); } }
BCMTFSystematicVariation::~BCMTFSystematicVariation | ( | ) |
void BCMTFSystematicVariation::AddHistogramDown | ( | TH1D * | hist | ) | [inline] |
Add a histogram for down-scale variations.
hist | The histogram. |
Definition at line 121 of file BCMTFSystematicVariation.h.
{ fHistogramDownContainer.push_back(hist); };
void BCMTFSystematicVariation::AddHistograms | ( | TH1D * | hist_up, | |
TH1D * | hist_down | |||
) | [inline] |
Add a histograms for up- and down-scale variations.
hist_up | The up-scale histogram. | |
hist_down | The down-scale histogram. |
Definition at line 130 of file BCMTFSystematicVariation.h.
{ fHistogramUpContainer.push_back(hist_up); fHistogramDownContainer.push_back(hist_down); };
void BCMTFSystematicVariation::AddHistogramUp | ( | TH1D * | hist | ) | [inline] |
Add a histogram for up-scale variations.
hist | The histogram. |
Definition at line 113 of file BCMTFSystematicVariation.h.
{ fHistogramUpContainer.push_back(hist); };
TH1D* BCMTFSystematicVariation::GetHistogramDown | ( | int | index | ) | [inline] |
Returns the histogram correponding to the down-scale variation of the systematic.
index | The process index. |
Definition at line 65 of file BCMTFSystematicVariation.h.
{ return fHistogramDownContainer.at(index); };
TH1D* BCMTFSystematicVariation::GetHistogramUp | ( | int | index | ) | [inline] |
Returns the histogram correponding to the up-scale variation of the systematic.
index | The process index. |
Definition at line 57 of file BCMTFSystematicVariation.h.
{ return fHistogramUpContainer.at(index); };
void BCMTFSystematicVariation::SetHistogramDown | ( | int | index, | |
TH1D * | hist | |||
) | [inline] |
Set the histogram correponding to the down-scale variation of the systematic.
index | The process index. | |
hist | The histogram. |
Definition at line 89 of file BCMTFSystematicVariation.h.
{ fHistogramDownContainer[index] = hist; };
void BCMTFSystematicVariation::SetHistograms | ( | int | index, | |
TH1D * | hist_up, | |||
TH1D * | hist_down | |||
) | [inline] |
Set the histograms correponding to the up- and down-scale variations of the systematic.
index | The process index. | |
hist_up | The up-scale histogram. | |
hist_down | The down-scale histogram. |
Definition at line 100 of file BCMTFSystematicVariation.h.
{ fHistogramUpContainer[index] = hist_up; fHistogramDownContainer[index] = hist_down; };
void BCMTFSystematicVariation::SetHistogramUp | ( | int | index, | |
TH1D * | hist | |||
) | [inline] |
Set the histogram correponding to the up-scale variation of the systematic.
index | The process index. | |
hist | The histogram. |
Definition at line 79 of file BCMTFSystematicVariation.h.
{ fHistogramUpContainer[index] = hist; };
std::string BCMTFSystematicVariation::fChannelName [private] |
The name of the corresponding channel.
Definition at line 148 of file BCMTFSystematicVariation.h.
std::vector<TH1D *> BCMTFSystematicVariation::fHistogramDownContainer [private] |
A container of histograms.
Definition at line 144 of file BCMTFSystematicVariation.h.
std::vector<TH1D *> BCMTFSystematicVariation::fHistogramUpContainer [private] |
A container of histograms.
Definition at line 132 of file BCMTFSystematicVariation.h.
std::string BCMTFSystematicVariation::fSystematicName [private] |
The name of the corresponding source of systematic uncertainty.
Definition at line 153 of file BCMTFSystematicVariation.h.