BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
RawFileBindings.cxx
Go to the documentation of this file.
1#include "RawFile/CgemIndexFile.h"
2#include "RawFile/RawDataMining.h"
3#include "RawFile/RawFileMerger.h"
4#include <boost/python.hpp>
5
6BOOST_PYTHON_MODULE( PyRawFile ) {
7 using namespace boost::python;
8
9 class_<CgemIndexFile, boost::noncopyable>( "CgemIndexFile", init() )
10 .def( "open4read", &CgemIndexFile::open4read )
11 .def( "open4write", &CgemIndexFile::open4write )
12 .def( "append_from", &CgemIndexFile::append_from )
13 .def( "close", &CgemIndexFile::close )
14 .def( "numFiles", &CgemIndexFile::numFiles )
15 .def( "numEvents", &CgemIndexFile::numEvents )
16 .def( "loadSubFile", &CgemIndexFile::loadSubFile )
17 .def( "show", &CgemIndexFile::show )
18 .def( "showSubFile", &CgemIndexFile::showSubFile )
19 .def( "showSubFileRange", &CgemIndexFile::showSubFileRange );
20
21 class_<RawDataMining, boost::noncopyable>( "RawDataMining", init<const std::string&>() )
22 .def( "dump", &RawDataMining::dump );
23
24 class_<RawFileMerger, boost::noncopyable>( "RawFileMerger", init<const std::string&>() )
25 .def( "setOutputDir", &RawFileMerger::setOutputDir )
26 .def( "mergeWithIndexFile", &RawFileMerger::mergeWithIndexFile )
27 .def( "ignored", &RawFileMerger::ignored );
28}
BOOST_PYTHON_MODULE(PyRawFile)
bool append_from(const std::string &file)
bool open4read(const std::string &file)
bool open4write(const std::string &file)
bool loadSubFile(const uint32_t n)
void showSubFileRange(const uint32_t start, const uint32_t end)
bool mergeWithIndexFile(const std::string &file)
void setOutputDir(const std::string &dir)