A class describing a template. More...
#include <BCMTFTemplate.h>
Public Member Functions | |
Constructors and destructors | |
BCMTFTemplate (const char *channelname, const char *processname) | |
~BCMTFTemplate () | |
Member functions (get) | |
std::string | GetChannelName () |
std::string | GetProcessName () |
double | GetEfficiency () |
TH1D * | GetHistogram () |
std::vector< TF1 * > * | GetFunctionContainer () |
int | GetNBins () |
Member functions (set) | |
void | SetEfficiency (double eff) |
void | SetHistogram (TH1D *hist) |
void | SetFunctionContainer (std::vector< TF1 * > *funccont, int nbins) |
Private Attributes | |
double | fEfficiency |
TH1D * | fHistogram |
std::vector< TF1 * > * | fFunctionContainer |
int | fNBins |
std::string | fChannelName |
std::string | fProcessName |
A class describing a template.
Definition at line 29 of file BCMTFTemplate.h.
BCMTFTemplate::BCMTFTemplate | ( | const char * | channelname, | |
const char * | processname | |||
) |
The default constructor.
channelname | The name of the channel. | |
process | name The name of the process. |
Definition at line 15 of file BCMTFTemplate.cxx.
: fEfficiency(0) , fHistogram(0) , fNBins(0) { fChannelName = channelname; fProcessName = processname; fFunctionContainer = new std::vector<TF1 *>(0); }
BCMTFTemplate::~BCMTFTemplate | ( | ) |
The default destructor.
Definition at line 26 of file BCMTFTemplate.cxx.
{ // debugKK // if (fHistogram) // delete fHistogram; }
std::string BCMTFTemplate::GetChannelName | ( | ) | [inline] |
Definition at line 53 of file BCMTFTemplate.h.
{ return fChannelName; };
double BCMTFTemplate::GetEfficiency | ( | ) | [inline] |
std::vector<TF1 *>* BCMTFTemplate::GetFunctionContainer | ( | ) | [inline] |
Definition at line 73 of file BCMTFTemplate.h.
{ return fFunctionContainer; };
TH1D* BCMTFTemplate::GetHistogram | ( | ) | [inline] |
int BCMTFTemplate::GetNBins | ( | ) | [inline] |
std::string BCMTFTemplate::GetProcessName | ( | ) | [inline] |
Definition at line 58 of file BCMTFTemplate.h.
{ return fProcessName; };
void BCMTFTemplate::SetEfficiency | ( | double | eff | ) | [inline] |
Set the efficiency.
eff | The efficiency. |
Definition at line 89 of file BCMTFTemplate.h.
{ fEfficiency = eff; };
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 42 of file BCMTFTemplate.cxx.
{ fFunctionContainer = funccont; fNBins = nbins; }
void BCMTFTemplate::SetHistogram | ( | TH1D * | hist | ) |
Set the histogram.
hist | The TH1D histogram. |
Definition at line 34 of file BCMTFTemplate.cxx.
{ fHistogram = hist; if (hist) fNBins = fHistogram->GetNbinsX(); }
std::string BCMTFTemplate::fChannelName [private] |
The name of the channel.
Definition at line 124 of file BCMTFTemplate.h.
double BCMTFTemplate::fEfficiency [private] |
The efficiency of the contribution.
Definition at line 108 of file BCMTFTemplate.h.
std::vector<TF1 *>* BCMTFTemplate::fFunctionContainer [private] |
A histogram alternative for templates: a vector of TF1 functions.
Definition at line 116 of file BCMTFTemplate.h.
TH1D* BCMTFTemplate::fHistogram [private] |
The TH1D histogram.
Definition at line 112 of file BCMTFTemplate.h.
int BCMTFTemplate::fNBins [private] |
The number of bins in the histogram.
Definition at line 120 of file BCMTFTemplate.h.
std::string BCMTFTemplate::fProcessName [private] |
The name of the process.
Definition at line 128 of file BCMTFTemplate.h.