Celeritas 0.7.0-dev.127+develop.e63889793
Loading...
Searching...
No Matches
Classes | Enumerations | Functions
Options.hh File Reference
#include <iosfwd>
#include <string>
#include "corecel/Config.hh"
#include "geocel/detail/LengthUnits.hh"
#include "orange/OrangeTypes.hh"
This graph shows which files directly or indirectly include this file:

Classes

struct  celeritas::g4org::Options
 Construction options for Geant4 conversion. More...
 

Enumerations

enum class  celeritas::g4org::InlineSingletons {
  none , untransformed , unrotated , all ,
  size_
}
 How to inline volumes used only once. More...
 

Functions

char constceleritas::g4org::to_cstring (InlineSingletons value)
 Get a string corresponding to an inline singletons option.
 
std::istream & celeritas::g4org::operator>> (std::istream &is, Options &inp)
 Helper to read the conversion options from a file or stream.
 
std::ostream & celeritas::g4org::operator<< (std::ostream &os, Options const &inp)
 Helper to write the options to a file or stream.
 

Enumeration Type Documentation

◆ InlineSingletons

How to inline volumes used only once.

Enumerator
none 

Never.

untransformed 

Only if not translated nor rotated.

unrotated 

Only if translated.

all 

Always.

Function Documentation

◆ operator>>()

std::istream & celeritas::g4org::operator>> ( std::istream &  is,
Options inp 
)
inline

Helper to read the conversion options from a file or stream.

Example to read from a file:

Options inp;
std::ifstream("foo.json") >> inp;