A class describing a template.
More...
#include <BCMTFTemplate.h>
A class describing a template.
- Author
- Daniel Kollar
-
Kevin Kröninger
- Version
- 1.1
- Date
- 06.2012 This class describes a template.
Definition at line 32 of file BCMTFTemplate.h.
BCMTFTemplate::BCMTFTemplate |
( |
const char * |
channelname, |
|
|
const char * |
processname |
|
) |
| |
The default constructor.
- Parameters
-
channelname | The name of the channel. |
process | name The name of the process. |
Definition at line 19 of file BCMTFTemplate.cxx.
BCMTFTemplate::~BCMTFTemplate |
( |
| ) |
|
TH1D BCMTFTemplate::FluctuateHistogram |
( |
std::string |
options = "GZ" , |
|
|
double |
norm = 1 |
|
) |
| |
Fluctuate the original template histogram by the uncertainty on the bin content.
- Parameters
-
options | A set of options. "P" : use Poisson model, the expectation value parameter is the bin content and also defines the uncertainties. "G" [default] : use a Gaussian mode, the expectation value paramer mu is the bin content, the uncertainty sigma is defined by the uncertainty in the histogram. "Z" [default] : make sure that the bin content is positive. |
norm | The target normalization. |
- Returns
- A histogram with each bin fluctuated by the uncertainty on the bin content.
Definition at line 71 of file BCMTFTemplate.cxx.
std::string BCMTFTemplate::GetChannelName |
( |
| ) |
|
|
inline |
double BCMTFTemplate::GetEfficiency |
( |
| ) |
|
|
inline |
std::vector<TF1 *>* BCMTFTemplate::GetFunctionContainer |
( |
| ) |
|
|
inline |
TH1D* BCMTFTemplate::GetHistogram |
( |
| ) |
|
|
inline |
int BCMTFTemplate::GetNBins |
( |
| ) |
|
|
inline |
double BCMTFTemplate::GetNorm |
( |
| ) |
|
|
inline |
double BCMTFTemplate::GetOriginalNorm |
( |
| ) |
|
|
inline |
std::string BCMTFTemplate::GetProcessName |
( |
| ) |
|
|
inline |
void BCMTFTemplate::SetEfficiency |
( |
double |
eff | ) |
|
|
inline |
void BCMTFTemplate::SetFunctionContainer |
( |
std::vector< TF1 * > * |
funccont, |
|
|
int |
nbins |
|
) |
| |
Set a function container funccont The function container nbins The number of bins (and functions)
Definition at line 64 of file BCMTFTemplate.cxx.
void BCMTFTemplate::SetHistogram |
( |
TH1D * |
hist, |
|
|
double |
norm = 1 |
|
) |
| |
Set the histogram.
- Parameters
-
hist | The TH1D histogram. |
norm | The target normalization. |
Definition at line 38 of file BCMTFTemplate.cxx.
void BCMTFTemplate::SetOrignialNormalization |
( |
double |
norm | ) |
|
|
inline |
Set the original normalization.
- Parameters
-
Definition at line 126 of file BCMTFTemplate.h.
The documentation for this class was generated from the following files: