BAT  0.9.4
The Bayesian analysis toolkit
 All Classes Namespaces Functions Variables Enumerations
BCModelOutput Class Reference

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
BCModelOutputoperator= (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 ()
 

Detailed Description

A class for creating an (ROOT) output file.

Author
Daniel Kollar
Kevin Kröninger
Version
1.0
Date
08.2008 This class defines an output interface for the analysis. It creates a ROOT file which can contain summary information, histograms and Markov chains.

Definition at line 38 of file BCModelOutput.h.

Constructor & Destructor Documentation

BCModelOutput::BCModelOutput ( )

The default constructor.

Definition at line 30 of file BCModelOutput.cxx.

BCModelOutput::BCModelOutput ( BCModel model,
const char *  filenname 
)

A constructor.

Parameters
modelThe model to which this output class is assigned.
filenameName 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.

BCModelOutput::~BCModelOutput ( )
virtual

The default destructor.

Definition at line 44 of file BCModelOutput.cxx.

Member Function Documentation

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.

TTree* BCModelOutput::GetAnalysisTree ( )
inline

Returns the output TTree tree.

Returns
The pointer to the output TTree

Definition at line 80 of file BCModelOutput.h.

TFile* BCModelOutput::GetFile ( )
inline

Returns the output TFile.

Returns
The pointer to 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.

Parameters
filenameThe filename

Definition at line 87 of file BCModelOutput.cxx.

void BCModelOutput::SetModel ( BCModel model)

Assign a BCModel to this output class.

Parameters
modelA 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

Parameters
flagWrites (true) or does not write (false) the Markov chain

Definition at line 117 of file BCModelOutput.cxx.


The documentation for this class was generated from the following files: