BCModelOutput Class Reference

#include <BCModelOutput.h>

Collaboration diagram for BCModelOutput:

Collaboration graph
[legend]

List of all members.


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 34 of file BCModelOutput.h.


Public Member Functions

Constructors and destructors


 BCModelOutput (const BCModelOutput &modeloutput)
 BCModelOutput (BCModel *model, const char *filenname)
 BCModelOutput ()
virtual ~BCModelOutput ()
Member functions (miscellaneous methods)


void Close ()
void FillAnalysisTree ()
void WriteMarginalizedDistributions ()
void WriteMarkovChain (bool flag)
Getters


TTree * GetAnalysisTree ()
TFile * GetFile ()
Assignment operators


BCModelOutputoperator= (const BCModelOutput &modeloutput)
Setters


void SetFile (const char *filename)
void SetModel (BCModel *model)

Private Member Functions

void Copy (BCModelOutput &modeloutput) const
void InitializeAnalysisTree ()
void InitializeMarkovChainTrees ()

Private Attributes

TTree * fAnalysisTree
const char * fFilename
int fIndex
std::vector< int > * fIteration
std::vector< double > * fLogLikelihood
TTree * fMarkovChainTree
std::vector< TTree * > fMarkovChainTrees
double fMean_marginalized [MAXNPARAMETERS]
double fMedian_marginalized [MAXNPARAMETERS]
double fMode_global [MAXNPARAMETERS]
double fMode_marginalized [MAXNPARAMETERS]
BCModelfModel
int fNParameters
TFile * fOutputFile
std::vector< double > * fParameters
double fProbability_aposteriori
double fProbability_apriori
double fQuantile_05 [MAXNPARAMETERS]
double fQuantile_10 [MAXNPARAMETERS]
double fQuantile_16 [MAXNPARAMETERS]
double fQuantile_84 [MAXNPARAMETERS]
double fQuantile_90 [MAXNPARAMETERS]
double fQuantile_95 [MAXNPARAMETERS]

Constructor & Destructor Documentation

BCModelOutput::BCModelOutput (  ) 

The default constructor.

Definition at line 16 of file BCModelOutput.cxx.

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

A constructor.

Parameters:
model The model to which this output class is assigned.
filename Name of the output file.

Definition at line 31 of file BCModelOutput.cxx.

BCModelOutput::BCModelOutput ( const BCModelOutput modeloutput  ) 

The default copy constructor.

Definition at line 87 of file BCModelOutput.cxx.

BCModelOutput::~BCModelOutput (  )  [virtual]

The default destructor.

Definition at line 62 of file BCModelOutput.cxx.


Member Function Documentation

void BCModelOutput::Close (  ) 

Closes the TFile.

Definition at line 224 of file BCModelOutput.cxx.

void BCModelOutput::Copy ( BCModelOutput modeloutput  )  const [private]

Definition at line 338 of file BCModelOutput.cxx.

void BCModelOutput::FillAnalysisTree (  ) 

Fill the output TTree with the current information.

Definition at line 150 of file BCModelOutput.cxx.

TTree* BCModelOutput::GetAnalysisTree (  )  [inline]

Returns the output TTree tree.

Returns:
The pointer to the output TTree.

Definition at line 83 of file BCModelOutput.h.

TFile* BCModelOutput::GetFile (  )  [inline]

Returns the output TFile.

Returns:
The pointer to the output TFile.

Definition at line 90 of file BCModelOutput.h.

void BCModelOutput::InitializeAnalysisTree (  )  [private]

Initialize the output TTree.

Definition at line 266 of file BCModelOutput.cxx.

void BCModelOutput::InitializeMarkovChainTrees (  )  [private]

Initialize the Markov Chain TTree.

Definition at line 294 of file BCModelOutput.cxx.

BCModelOutput & BCModelOutput::operator= ( const BCModelOutput modeloutput  ) 

The defaut assignment operator

Definition at line 96 of file BCModelOutput.cxx.

void BCModelOutput::SetFile ( const char *  filename  ) 

Sets the output filename.

Parameters:
filename The filename.

Definition at line 108 of file BCModelOutput.cxx.

void BCModelOutput::SetModel ( BCModel model  )  [inline]

Assign a BCModel to this output class.

Parameters:
model A pointer to the BCModel.

Definition at line 102 of file BCModelOutput.h.

void BCModelOutput::WriteMarginalizedDistributions (  ) 

Writes the marginalized histograms to the TFile.

Definition at line 196 of file BCModelOutput.cxx.

void BCModelOutput::WriteMarkovChain ( bool  flag  ) 

Flag for writing Markov chain to file

Parameters:
flag Writes (true) or does not write (false) the Markov chain

Definition at line 140 of file BCModelOutput.cxx.


Member Data Documentation

TTree* BCModelOutput::fAnalysisTree [private]

Pointer to the TTree containing the summary output information.

Definition at line 159 of file BCModelOutput.h.

const char* BCModelOutput::fFilename [private]

The output filename

Definition at line 175 of file BCModelOutput.h.

int BCModelOutput::fIndex [private]

The analysis tree variables

Definition at line 190 of file BCModelOutput.h.

std::vector<int>* BCModelOutput::fIteration [private]

Definition at line 210 of file BCModelOutput.h.

std::vector<double>* BCModelOutput::fLogLikelihood [private]

Definition at line 209 of file BCModelOutput.h.

Pointer to the TTree containing the Markov chain.

Definition at line 164 of file BCModelOutput.h.

std::vector<TTree *> BCModelOutput::fMarkovChainTrees [private]

Definition at line 170 of file BCModelOutput.h.

Definition at line 196 of file BCModelOutput.h.

Definition at line 197 of file BCModelOutput.h.

Definition at line 194 of file BCModelOutput.h.

Definition at line 195 of file BCModelOutput.h.

Pointer to the model this output class is assigned to

Definition at line 185 of file BCModelOutput.h.

Definition at line 191 of file BCModelOutput.h.

TFile* BCModelOutput::fOutputFile [private]

Pointer to the output TFile.

Definition at line 180 of file BCModelOutput.h.

std::vector<double>* BCModelOutput::fParameters [private]

The markov chain tree variables

Definition at line 208 of file BCModelOutput.h.

Definition at line 193 of file BCModelOutput.h.

Definition at line 192 of file BCModelOutput.h.

Definition at line 198 of file BCModelOutput.h.

Definition at line 199 of file BCModelOutput.h.

Definition at line 200 of file BCModelOutput.h.

Definition at line 201 of file BCModelOutput.h.

Definition at line 202 of file BCModelOutput.h.

Definition at line 203 of file BCModelOutput.h.


Generated on Mon Sep 15 17:04:30 2008 for Bayesian Analysis Toolkit by  doxygen 1.5.6