ComPWA
Common Partial-Wave-Analysis Framework
|
Classes | |
class | AsciiHeader |
Representation of data contained in an ASCII header. More... | |
Functions | |
EventCollection | readData (const std::string &InputFilePath, long long NumberEventsToRead=-1) |
Read momentum tuples from an ASCII file. More... | |
void | writeData (const EventCollection &DataSample, const std::string &OutputFilePath, bool OverwriteFile) |
EventCollection ComPWA::Data::Ascii::readData | ( | const std::string & | InputFilePath, |
long long | NumberEventsToRead = -1 |
||
) |
Read momentum tuples from an ASCII file.
The file should start with a header that defines the final state, like so:
Note that the section within the header
tags is YAML syntax.This header is followed by rows of momentum tuples, grouped per event. In this case, you would have a row for the , then for the , then one for the , and finally back to . You may choose to start each event group with a weight value, but you don't need to.
Definition at line 18 of file AsciiDataIO.cpp.
void ComPWA::Data::Ascii::writeData | ( | const EventCollection & | DataSample, |
const std::string & | OutputFilePath, | ||
bool | OverwriteFile | ||
) |
Definition at line 114 of file AsciiDataIO.cpp.