BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
RawFileBindings.cxx File Reference
#include "RawFile/CgemIndexFile.h"
#include "RawFile/RawDataMining.h"
#include "RawFile/RawFileMerger.h"
#include <boost/python.hpp>

Go to the source code of this file.

Functions

 BOOST_PYTHON_MODULE (PyRawFile)

Function Documentation

◆ BOOST_PYTHON_MODULE()

BOOST_PYTHON_MODULE ( PyRawFile )

Definition at line 6 of file RawFileBindings.cxx.

6 {
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}
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)