ComPWA
Common Partial-Wave-Analysis Framework
AsciiDataIO.hpp
Go to the documentation of this file.
1 // Copyright (c) 2013 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_DATA_ASCIIDATAIO_HPP_
6 #define COMPWA_DATA_ASCIIDATAIO_HPP_
7 
8 #include <memory>
9 #include <vector>
10 
11 #include "Core/Event.hpp"
12 
13 namespace ComPWA {
14 namespace Data {
15 namespace Ascii {
16 
33 EventCollection readData(const std::string &InputFilePath,
34  long long NumberEventsToRead = -1);
35 
36 void writeData(const EventCollection &DataSample,
37  const std::string &OutputFilePath, bool OverwriteFile = true);
38 
39 } // namespace Ascii
40 } // namespace Data
41 } // namespace ComPWA
42 
43 #endif
EventCollection readData(const std::string &InputFilePath, long long NumberEventsToRead)
Read momentum tuples from an ASCII file.
Definition: AsciiDataIO.cpp:18
void writeData(const EventCollection &DataSample, const std::string &OutputFilePath, bool OverwriteFile)