Celeritas 0.7-develop+ddcb429
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Friends | List of all members
celeritas::OrangeInput Struct Reference

Construction definition for a full ORANGE geometry. More...

#include <OrangeInput.hh>

Public Member Functions

 operator bool () const
 Whether the unit definition is valid.
 

Public Attributes

std::vector< VariantUniverseInput > universes
 
ConstructionOptions construction_opts
 
Tolerance tol
 Relative and absolute error for construction and transport.
 
LogicNotation logic {LogicNotation::postfix}
 Logic expression notation.
 

Friends

std::ostream & operator<< (std::ostream &os, OrangeInput const &)
 Helper to write the input to a file or stream.
 
std::istream & operator>> (std::istream &is, OrangeInput &)
 Helper to read the input from a file or stream.
 

Detailed Description

Construction definition for a full ORANGE geometry.

The tolerance tol should be the same as at construction time: it will be used at runtime to bump tracks if needed.

The logic is used to convert to the runtime tracking implementation. If set to LogicNotation::infix, the input logic must be simplified to remove negation of parenthesized elements.

Friends And Related Symbol Documentation

◆ operator>>

std::istream & operator>> ( std::istream &  is,
OrangeInput &  inp 
)
friend

Helper to read the input from a file or stream.

Example to read from a file:

std::ifstream("foo.org.json") >> inp;
Construction definition for a full ORANGE geometry.
Definition OrangeInput.hh:204

The documentation for this struct was generated from the following file: