A class describing a template. More...
#include <BCMTFTemplate.h>
Public Member Functions | |
Constructors and destructors | |
BCMTFTemplate (const std::string &channelname, const std::string &processname) | |
The default constructor. More... | |
~BCMTFTemplate () | |
The default destructor. More... | |
Member functions (get) | |
const std::string & | GetChannelName () |
const std::string & | GetProcessName () |
double | GetEfficiency () |
TH1D * | GetHistogram () |
double | GetNorm () |
double | GetOriginalNorm () |
TH1D | FluctuateHistogram (const std::string &options="GZ", double norm=1) |
Fluctuate the original template histogram by the uncertainty on the bin content. More... | |
std::vector< TF1 * > * | GetFunctionContainer () |
int | GetNBins () |
Member functions (set) | |
void | SetEfficiency (double eff) |
Set the efficiency. More... | |
void | SetHistogram (TH1D *hist, double norm=1) |
Set the histogram. More... | |
void | SetOrignialNormalization (double norm) |
Set the original normalization. More... | |
void | SetFunctionContainer (std::vector< TF1 * > *funccont, int nbins) |
Set a function container funccont The function container nbins The number of bins (and functions) | |
Detailed Description
A class describing a template.
- Version
- 1.1
- Date
- 06.2012
This class describes a template.
Definition at line 32 of file BCMTFTemplate.h.
Constructor & Destructor Documentation
BCMTFTemplate::BCMTFTemplate | ( | const std::string & | channelname, |
const std::string & | processname | ||
) |
The default constructor.
- Parameters
-
channelname The name of the channel. processname The name of the process.
Definition at line 19 of file BCMTFTemplate.cxx.
BCMTFTemplate::~BCMTFTemplate | ( | ) |
The default destructor.
Definition at line 33 of file BCMTFTemplate.cxx.
Member Function Documentation
TH1D BCMTFTemplate::FluctuateHistogram | ( | const 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.
|
inline |
- Returns
- The name of the channel.
Definition at line 56 of file BCMTFTemplate.h.
|
inline |
- Returns
- The efficiency.
Definition at line 66 of file BCMTFTemplate.h.
|
inline |
- Returns
- The function container.
Definition at line 97 of file BCMTFTemplate.h.
|
inline |
- Returns
- The TH1D histogram.
Definition at line 71 of file BCMTFTemplate.h.
|
inline |
- Returns
- The number of bins.
Definition at line 102 of file BCMTFTemplate.h.
|
inline |
- Returns
- The normalization.
Definition at line 76 of file BCMTFTemplate.h.
|
inline |
- Returns
- The original normalization.
Definition at line 81 of file BCMTFTemplate.h.
|
inline |
- Returns
- The name of the process.
Definition at line 61 of file BCMTFTemplate.h.
|
inline |
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.
|
inline |
Set the original normalization.
- Parameters
-
norm The normalization.
Definition at line 126 of file BCMTFTemplate.h.
The documentation for this class was generated from the following files:
- /root/bat/models/mtf/BCMTFTemplate.h
- /root/bat/models/mtf/BCMTFTemplate.cxx