Celeritas
0.5.0-86+4a8eea4
|
Create an ImportData
object from a ROOT data file.
More...
#include <RootImporter.hh>
Public Member Functions | |
RootImporter (char const *filename) | |
Construct from path to ROOT file. | |
RootImporter (std::string const &filename) | |
Construct with ROOT file name. | |
ImportData | operator() () final |
Load data from the ROOT input file in native units. | |
Additional Inherited Members | |
Protected Member Functions inherited from celeritas::ImporterInterface | |
CELER_DEFAULT_COPY_MOVE (ImporterInterface) | |
Create an ImportData
object from a ROOT data file.
RootImporter loads particle, element, material, process, and volume information from a ROOT file that contains an ImportData
object. Currently, said ROOT file is created by the RootExporter
class. The imported data will be converted to the native unit system.
RootImporter
, along with all Import
[Class] type of classes, are the link between Geant4 and Celeritas. Every Celeritas' host/device class that relies on imported data has its own from_import(...)
function that will take the data loaded by the RootImporter
and load it accordingly: