ComPWA
Common Partial-Wave-Analysis Framework
ComPWA::Tools::Plotting::DalitzHisto Class Reference

Simple class to create and fill Dalitz plots. More...

#include <DalitzPlot.hpp>

Public Member Functions

 DalitzHisto (const DalitzHisto &that)=delete
 Disable copy constructor since TTree is not copyable. More...
 
 DalitzHisto (DalitzHisto &&other)=default
 Default move constructor. More...
 
 DalitzHisto (ComPWA::Physics::HelicityFormalism::HelicityKinematics &Kinematics, std::string Name, std::string Title, unsigned int Bins, Color_t Color=kBlack)
 
void setStats (bool b)
 Switch on/off stats. More...
 
void fill (const ComPWA::Data::DataSet &DataSet, std::vector< double > Intensities={})
 
void scale (double w)
 Scale all distributions. More...
 
TH1D * getHistogram (std::string Name)
 Get 1D histogram. More...
 
TH2D * getHistogram2D (std::pair< std::string, std::string > Names)
 Get 2D histogram. More...
 
void setColor (Color_t Color)
 set line color More...
 
void write ()
 Write to TFile. More...
 
double integral ()
 GetIntegral. More...
 

Private Attributes

std::map< std::string, TH1D > Hists1D
 
std::map< std::pair< std::string, std::string >, TH2D > Hists2D
 
std::string Name
 
std::string Title
 
unsigned int NumBins
 
std::unique_ptr< TTree > Tree
 
std::vector< double > BranchPoint
 
double BranchEff
 
double BranchWeight
 
double Integral
 

Detailed Description

Simple class to create and fill Dalitz plots.

Definition at line 42 of file DalitzPlot.hpp.

+ Collaboration diagram for ComPWA::Tools::Plotting::DalitzHisto:

Constructor & Destructor Documentation

◆ DalitzHisto() [1/3]

ComPWA::Tools::Plotting::DalitzHisto::DalitzHisto ( const DalitzHisto that)
delete

Disable copy constructor since TTree is not copyable.

◆ DalitzHisto() [2/3]

ComPWA::Tools::Plotting::DalitzHisto::DalitzHisto ( DalitzHisto &&  other)
default

Default move constructor.

◆ DalitzHisto() [3/3]

ComPWA::Tools::Plotting::DalitzHisto::DalitzHisto ( ComPWA::Physics::HelicityFormalism::HelicityKinematics Kinematics,
std::string  Name,
std::string  Title,
unsigned int  Bins,
Color_t  Color = kBlack 
)

Definition at line 166 of file DalitzPlot.cpp.

Member Function Documentation

◆ fill()

void ComPWA::Tools::Plotting::DalitzHisto::fill ( const ComPWA::Data::DataSet DataSet,
std::vector< double >  Intensities = {} 
)

Definition at line 259 of file DalitzPlot.cpp.

◆ getHistogram()

TH1D * ComPWA::Tools::Plotting::DalitzHisto::getHistogram ( std::string  Name)

Get 1D histogram.

Definition at line 331 of file DalitzPlot.cpp.

◆ getHistogram2D()

TH2D * ComPWA::Tools::Plotting::DalitzHisto::getHistogram2D ( std::pair< std::string, std::string >  Names)

Get 2D histogram.

Definition at line 333 of file DalitzPlot.cpp.

◆ integral()

double ComPWA::Tools::Plotting::DalitzHisto::integral ( )
inline

GetIntegral.

Definition at line 71 of file DalitzPlot.hpp.

◆ scale()

void ComPWA::Tools::Plotting::DalitzHisto::scale ( double  w)

Scale all distributions.

Definition at line 315 of file DalitzPlot.cpp.

◆ setColor()

void ComPWA::Tools::Plotting::DalitzHisto::setColor ( Color_t  Color)

set line color

Definition at line 324 of file DalitzPlot.cpp.

◆ setStats()

void ComPWA::Tools::Plotting::DalitzHisto::setStats ( bool  b)

Switch on/off stats.

Definition at line 306 of file DalitzPlot.cpp.

◆ write()

void ComPWA::Tools::Plotting::DalitzHisto::write ( )

Write to TFile.

Definition at line 337 of file DalitzPlot.cpp.

Member Data Documentation

◆ BranchEff

double ComPWA::Tools::Plotting::DalitzHisto::BranchEff
private

Definition at line 83 of file DalitzPlot.hpp.

◆ BranchPoint

std::vector<double> ComPWA::Tools::Plotting::DalitzHisto::BranchPoint
private

Definition at line 82 of file DalitzPlot.hpp.

◆ BranchWeight

double ComPWA::Tools::Plotting::DalitzHisto::BranchWeight
private

Definition at line 83 of file DalitzPlot.hpp.

◆ Hists1D

std::map<std::string, TH1D> ComPWA::Tools::Plotting::DalitzHisto::Hists1D
private

Definition at line 74 of file DalitzPlot.hpp.

◆ Hists2D

std::map<std::pair<std::string, std::string>, TH2D> ComPWA::Tools::Plotting::DalitzHisto::Hists2D
private

Definition at line 75 of file DalitzPlot.hpp.

◆ Integral

double ComPWA::Tools::Plotting::DalitzHisto::Integral
private

Definition at line 84 of file DalitzPlot.hpp.

◆ Name

std::string ComPWA::Tools::Plotting::DalitzHisto::Name
private

Definition at line 76 of file DalitzPlot.hpp.

◆ NumBins

unsigned int ComPWA::Tools::Plotting::DalitzHisto::NumBins
private

Definition at line 77 of file DalitzPlot.hpp.

◆ Title

std::string ComPWA::Tools::Plotting::DalitzHisto::Title
private

Definition at line 76 of file DalitzPlot.hpp.

◆ Tree

std::unique_ptr<TTree> ComPWA::Tools::Plotting::DalitzHisto::Tree
private

Definition at line 79 of file DalitzPlot.hpp.


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