 |
Belle II Software
release-05-01-25
|
2 #include <alignment/dataobjects/MilleData.h>
4 #include <framework/utilities/FileSystem.h>
8 char* full_path = realpath(
"foo.dat", NULL);
14 auto* data =
dynamic_cast<const MilleData*
>(other);
15 const vector<string>& files = data->getFiles();
16 m_numRecords += data->m_numRecords;
17 for (
auto& file : files) {
19 for (
auto& myfile : m_files) {
26 m_files.push_back(file);
30 MilleData* MilleData::Clone(
const char* newname)
const
33 if (newname && strlen(newname)) {
34 obj->SetName(newname);
49 void MilleData::close()
65 void MilleData::open(
string filename)
72 m_files.push_back(FileSystem::findFile(
string(realpath(filename.c_str(), NULL))));
74 m_files.push_back(filename);
void milleOut(MilleBinary &aMille)
Write valid trajectory to Millepede-II binary file.
bool m_absFilePaths
Use absolute file paths to binary files Default is False - so you have to move the binaries to workin...
Abstract base class for objects that can be merged but also named.
int m_numRecords
Pointer to opened binary file (not streamed)
bool m_doublePrecision
Use double-precision for binary files.
Mergeable class holding list of so far opened mille binaries and providing the binaries.
std::vector< std::vector< double > > merge(std::vector< std::vector< std::vector< double >>> toMerge)
merge { vector<double> a, vector<double> b} into {a, b}
std::vector< std::string > m_files
List of already created file names.
Abstract base class for different kinds of events.
Millepede-II (binary) record.