BAT
0.9.4
The Bayesian analysis toolkit
|
A class for creating an (ROOT) output file. More...
#include <BCModelOutput.h>
Public Member Functions | |
Constructors and destructors | |
BCModelOutput () | |
BCModelOutput (BCModel *model, const char *filenname) | |
BCModelOutput (const BCModelOutput &modeloutput) | |
virtual | ~BCModelOutput () |
Assignment operators | |
BCModelOutput & | operator= (const BCModelOutput &modeloutput) |
Getters | |
TTree * | GetAnalysisTree () |
TFile * | GetFile () |
Setters | |
void | SetModel (BCModel *model) |
void | SetFile (const char *filename) |
Member functions (miscellaneous methods) | |
void | WriteMarkovChain (bool flag=true) |
void | FillAnalysisTree () |
void | WriteMarginalizedDistributions () |
void | Write (TObject *o) |
void | Close () |
A class for creating an (ROOT) output file.
Definition at line 38 of file BCModelOutput.h.
BCModelOutput::BCModelOutput | ( | ) |
The default constructor.
Definition at line 30 of file BCModelOutput.cxx.
BCModelOutput::BCModelOutput | ( | BCModel * | model, |
const char * | filenname | ||
) |
A constructor.
model | The model to which this output class is assigned. |
filename | Name of the output file. |
Definition at line 36 of file BCModelOutput.cxx.
BCModelOutput::BCModelOutput | ( | const BCModelOutput & | modeloutput | ) |
The default copy constructor.
Definition at line 53 of file BCModelOutput.cxx.
|
virtual |
The default destructor.
Definition at line 44 of file BCModelOutput.cxx.
void BCModelOutput::Close | ( | ) |
Closes the TFile.
Definition at line 238 of file BCModelOutput.cxx.
void BCModelOutput::FillAnalysisTree | ( | ) |
Fill the output TTree with the current information.
Definition at line 124 of file BCModelOutput.cxx.
|
inline |
Returns the output TTree tree.
Definition at line 80 of file BCModelOutput.h.
|
inline |
Returns the output TFile.
Definition at line 86 of file BCModelOutput.h.
BCModelOutput & BCModelOutput::operator= | ( | const BCModelOutput & | modeloutput | ) |
The defaut assignment operator
Definition at line 59 of file BCModelOutput.cxx.
void BCModelOutput::SetFile | ( | const char * | filename | ) |
Sets the output filename.
filename | The filename |
Definition at line 87 of file BCModelOutput.cxx.
void BCModelOutput::SetModel | ( | BCModel * | model | ) |
Assign a BCModel to this output class.
model | A pointer to the BCModel |
Definition at line 79 of file BCModelOutput.cxx.
void BCModelOutput::Write | ( | TObject * | o | ) |
Writes any object derived from TObject to TFile.
Definition at line 218 of file BCModelOutput.cxx.
void BCModelOutput::WriteMarginalizedDistributions | ( | ) |
Writes the marginalized histograms to the TFile.
Definition at line 174 of file BCModelOutput.cxx.
void BCModelOutput::WriteMarkovChain | ( | bool | flag = true | ) |
Flag for writing Markov chain to file
flag | Writes (true) or does not write (false) the Markov chain |
Definition at line 117 of file BCModelOutput.cxx.