ComPWA
Common Partial-Wave-Analysis Framework
RootPlotData.hpp
Go to the documentation of this file.
1 // Copyright (c) 2013, 2017 The ComPWA Team.
2 // This file is part of the ComPWA framework, check
3 // https://github.com/ComPWA/ComPWA/license.txt for details.
4 
5 #ifndef COMPWA_TOOLS_PLOTTING_ROOTPLOTDATA_HPP_
6 #define COMPWA_TOOLS_PLOTTING_ROOTPLOTDATA_HPP_
7 
8 #include <map>
9 
10 #include "Core/FitParameter.hpp"
11 #include "Core/Function.hpp"
12 
13 #include "TFile.h"
14 
15 namespace ComPWA {
16 namespace Data {
17 struct DataSet;
18 }
19 namespace Physics {
20 class ParticleStateTransitionKinematicsInfo;
21 }
22 namespace Tools {
23 namespace Plotting {
24 
32 class RootPlotData {
33 private:
34  TFile RootFile;
35 
36 public:
39  const std::string &filename, const std::string &option = "RECREATE");
40 
41  void createDirectory(std::string Name);
42 
43  void writeData(const Data::DataSet &DataSample,
44  std::string TreeName = "data");
45  void writeIntensityWeightedPhspSample(
46  const Data::DataSet &PhspSample, ComPWA::Intensity &Intensity,
47  std::string TreeName = "intensity_weighted_phspdata",
48  std::map<std::string, std::shared_ptr<ComPWA::Intensity>>
49  IntensityComponents = {});
50  void writeHitMissSample(const Data::DataSet &HitMissSample,
51  std::string TreeName = "hitmiss_data");
52 };
53 
54 } // namespace Plotting
55 } // namespace Tools
56 } // namespace ComPWA
57 
58 #endif
Allows output of a data sample and an Intensity (and optionally its components) into a ROOT file via ...
void writeData(const EventCollection &DataSample, const std::string &OutputFilePath, bool OverwriteFile)
Interface template for a general Function of the form OutputType Function(InputTypes) The concept clo...
Definition: Function.hpp:24