ATTPCROOT  0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
output.h
Go to the documentation of this file.
1 //
2 // output.h
3 // Functions for writing output files.
4 //
5 // Author: Jens Wilberg, Lukas Aymans, Christoph Dalitz
6 // Date: 2018-08-30
7 // License: see ../LICENSE
8 //
9 
10 #ifndef OUTPUT_H
11 #define OUTPUT_H
12 #include "cluster.h"
13 
14 #include <vector>
15 class PointCloud;
16 
17 // saves a PointCloud *cloud* as csv file.
18 bool cloud_to_csv(const PointCloud &cloud, const char *fname = "debug_smoothed.csv");
19 // saves smoothen cloud as gnuplot script.
20 bool debug_gnuplot(const PointCloud &cloud, const PointCloud &cloud_smooth,
21  const char *fname = "debug_smoothed.gnuplot");
22 // prints gnuplot script to stdout.
23 void clusters_to_gnuplot(const PointCloud &cloud, const std::vector<cluster_t> &clusters);
24 // saves the PointCloud *cloud* with clusters *cluster* as csv file.
25 void clusters_to_csv(const PointCloud &cloud);
26 
27 #endif
clusters_to_gnuplot
void clusters_to_gnuplot(const PointCloud &cloud, const std::vector< cluster_t > &clusters)
Definition: output.cxx:165
clusters_to_csv
void clusters_to_csv(const PointCloud &cloud)
Definition: output.cxx:270
PointCloud
Definition: pointcloud.h:60
debug_gnuplot
bool debug_gnuplot(const PointCloud &cloud, const PointCloud &cloud_smooth, const char *fname="debug_smoothed.gnuplot")
Definition: output.cxx:75
cluster.h
cloud_to_csv
bool cloud_to_csv(const PointCloud &cloud, const char *fname="debug_smoothed.csv")
Definition: output.cxx:141