ROOTPWA
Public Member Functions | Private Member Functions | Private Attributes | List of all members
rpwa::pwaPlotter Class Reference

Plot generator Class reads fitResult trees and creates graphs even for larger number of fits. More...

#include <pwaPlotter.h>

Public Member Functions

 pwaPlotter ()
virtual ~pwaPlotter ()
const std::set< std::string > & wavesNames ()
const std::set< std::string > & listJPCME ()
void addFit (const std::string &filename, const std::string &title, const unsigned int colour=1, const std::string &treename="pwa", const std::string &branchname="fitResult_v2", const unsigned int numb_bins=0)
 Main function to add information to plotter title will be used as a prefix for the graphs from this fit.
void produceDensityPlots ()
 Create 2D density plots of the intensities This will produce a wheighted probability density profile combining the information of all the fits added.
void writeAllIntensities (std::string filename)
void writeAllIntensities (TFile *outfile)
void writeAll (std::string filename)
void writeAll (TFile *outfile)
void printStats ()

Private Member Functions

bool registerWave (const std::string &wavename)
 create wave histograms/graphs
 ClassDef (pwaPlotter, 2)

Private Attributes

std::set< std::string > mWavenames
 list of wave names
std::set< std::string > mJPCME
 list of available spin totals
std::vector< fitResultMetaInfomResultMetaInfo
 list of available fits
std::map< std::string, TH2D * > mIntensityDensityPlots
 TMultiGraphs.
std::map< std::string,
TMultiGraph * > 
mIntensities
std::map< strpair, TMultiGraph * > mPhases
std::map< std::string, TGraph * > mPhaseSpace
std::map< std::string, double > mWaveEvidence
TMultiGraph * mLogLikelihood
TMultiGraph * mLogLikelihoodPerEvent
TMultiGraph * mEvidence
TMultiGraph * mEvidencePerEvent
double mMinEvidence

Detailed Description

Plot generator Class reads fitResult trees and creates graphs even for larger number of fits.

Definition at line 111 of file pwaPlotter.h.

Constructor & Destructor Documentation

pwaPlotter::pwaPlotter ( )

Definition at line 92 of file pwaPlotter.cc.

References i, mEvidence, mEvidencePerEvent, mLogLikelihood, mLogLikelihoodPerEvent, and mPhases.

pwaPlotter::~pwaPlotter ( )
virtual

Definition at line 155 of file pwaPlotter.cc.

References mWavenames.

Member Function Documentation

void pwaPlotter::addFit ( const std::string &  filename,
const std::string &  title,
const unsigned int  colour = 1,
const std::string &  treename = "pwa",
const std::string &  branchname = "fitResult_v2",
const unsigned int  numb_bins = 0 
)
rpwa::pwaPlotter::ClassDef ( pwaPlotter  ,
 
)
private
const std::set<std::string>& rpwa::pwaPlotter::listJPCME ( )
inline

Definition at line 120 of file pwaPlotter.h.

References mJPCME.

void pwaPlotter::printStats ( )

Definition at line 521 of file pwaPlotter.cc.

References i, mIntensities, mResultMetaInfo, and mWaveEvidence.

Referenced by main().

void pwaPlotter::produceDensityPlots ( )

Create 2D density plots of the intensities This will produce a wheighted probability density profile combining the information of all the fits added.

Definition at line 554 of file pwaPlotter.cc.

References bin, drawDensity(), rpwa::TPwaFitGraphErrors::fitindex, mIntensities, mIntensityDensityPlots, and mResultMetaInfo.

Referenced by main().

bool pwaPlotter::registerWave ( const std::string &  wavename)
private

create wave histograms/graphs

Definition at line 499 of file pwaPlotter.cc.

References mIntensities, mPhaseSpace, mWaveEvidence, and mWavenames.

Referenced by addFit().

const std::set<std::string>& rpwa::pwaPlotter::wavesNames ( )
inline

Definition at line 119 of file pwaPlotter.h.

References mWavenames.

void pwaPlotter::writeAll ( std::string  filename)

Definition at line 622 of file pwaPlotter.cc.

Referenced by main().

void pwaPlotter::writeAll ( TFile *  outfile)
void pwaPlotter::writeAllIntensities ( std::string  filename)

Definition at line 646 of file pwaPlotter.cc.

Referenced by writeAll().

void pwaPlotter::writeAllIntensities ( TFile *  outfile)

Definition at line 660 of file pwaPlotter.cc.

References mIntensities, mIntensityDensityPlots, mPhases, and mPhaseSpace.

Member Data Documentation

TMultiGraph* rpwa::pwaPlotter::mEvidence
private

Definition at line 174 of file pwaPlotter.h.

Referenced by addFit(), pwaPlotter(), and writeAll().

TMultiGraph* rpwa::pwaPlotter::mEvidencePerEvent
private

Definition at line 175 of file pwaPlotter.h.

Referenced by addFit(), pwaPlotter(), and writeAll().

std::map<std::string,TMultiGraph*> rpwa::pwaPlotter::mIntensities
private
std::map<std::string,TH2D*> rpwa::pwaPlotter::mIntensityDensityPlots
private

TMultiGraphs.

Definition at line 165 of file pwaPlotter.h.

Referenced by produceDensityPlots(), and writeAllIntensities().

std::set<std::string> rpwa::pwaPlotter::mJPCME
private

list of available spin totals

Definition at line 158 of file pwaPlotter.h.

Referenced by listJPCME().

TMultiGraph* rpwa::pwaPlotter::mLogLikelihood
private

Definition at line 172 of file pwaPlotter.h.

Referenced by addFit(), pwaPlotter(), and writeAll().

TMultiGraph* rpwa::pwaPlotter::mLogLikelihoodPerEvent
private

Definition at line 173 of file pwaPlotter.h.

Referenced by addFit(), pwaPlotter(), and writeAll().

double rpwa::pwaPlotter::mMinEvidence
private

Definition at line 178 of file pwaPlotter.h.

Referenced by addFit().

std::map<strpair,TMultiGraph*> rpwa::pwaPlotter::mPhases
private

Definition at line 167 of file pwaPlotter.h.

Referenced by addFit(), pwaPlotter(), and writeAllIntensities().

std::map<std::string,TGraph*> rpwa::pwaPlotter::mPhaseSpace
private

Definition at line 169 of file pwaPlotter.h.

Referenced by addFit(), registerWave(), and writeAllIntensities().

std::vector<fitResultMetaInfo> rpwa::pwaPlotter::mResultMetaInfo
private

list of available fits

2D-probability distributions (TH2D)

Definition at line 159 of file pwaPlotter.h.

Referenced by addFit(), printStats(), and produceDensityPlots().

std::map<std::string,double> rpwa::pwaPlotter::mWaveEvidence
private

Definition at line 170 of file pwaPlotter.h.

Referenced by addFit(), printStats(), and registerWave().

std::set<std::string> rpwa::pwaPlotter::mWavenames
private

list of wave names

Definition at line 157 of file pwaPlotter.h.

Referenced by registerWave(), wavesNames(), and ~pwaPlotter().


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