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

Allows output of a data sample and an Intensity (and optionally its components) into a ROOT file via TTrees. More...

#include <RootPlotData.hpp>

Public Member Functions

 RootPlotData (const Physics::ParticleStateTransitionKinematicsInfo &KinematicsInfo, const std::string &filename, const std::string &option="RECREATE")
 
void createDirectory (std::string Name)
 
void writeData (const Data::DataSet &DataSample, std::string TreeName="data")
 
void writeIntensityWeightedPhspSample (const Data::DataSet &PhspSample, ComPWA::Intensity &Intensity, std::string TreeName="intensity_weighted_phspdata", std::map< std::string, std::shared_ptr< ComPWA::Intensity >> IntensityComponents={})
 
void writeHitMissSample (const Data::DataSet &HitMissSample, std::string TreeName="hitmiss_data")
 

Private Attributes

TFile RootFile
 

Detailed Description

Allows output of a data sample and an Intensity (and optionally its components) into a ROOT file via TTrees.

See the appropriate write functions. The Intensity is evaluated using a phase space sample, which is re-weighted accordingly.

Definition at line 32 of file RootPlotData.hpp.

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

Constructor & Destructor Documentation

◆ RootPlotData()

ComPWA::Tools::Plotting::RootPlotData::RootPlotData ( const Physics::ParticleStateTransitionKinematicsInfo KinematicsInfo,
const std::string &  filename,
const std::string &  option = "RECREATE" 
)

Definition at line 20 of file RootPlotData.cpp.

Member Function Documentation

◆ createDirectory()

void ComPWA::Tools::Plotting::RootPlotData::createDirectory ( std::string  Name)

Definition at line 36 of file RootPlotData.cpp.

◆ writeData()

void ComPWA::Tools::Plotting::RootPlotData::writeData ( const Data::DataSet DataSample,
std::string  TreeName = "data" 
)

Definition at line 74 of file RootPlotData.cpp.

◆ writeHitMissSample()

void ComPWA::Tools::Plotting::RootPlotData::writeHitMissSample ( const Data::DataSet HitMissSample,
std::string  TreeName = "hitmiss_data" 
)

Definition at line 145 of file RootPlotData.cpp.

◆ writeIntensityWeightedPhspSample()

void ComPWA::Tools::Plotting::RootPlotData::writeIntensityWeightedPhspSample ( const Data::DataSet PhspSample,
ComPWA::Intensity Intensity,
std::string  TreeName = "intensity_weighted_phspdata",
std::map< std::string, std::shared_ptr< ComPWA::Intensity >>  IntensityComponents = {} 
)

Definition at line 79 of file RootPlotData.cpp.

Member Data Documentation

◆ RootFile

TFile ComPWA::Tools::Plotting::RootPlotData::RootFile
private

Definition at line 34 of file RootPlotData.hpp.


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