Celeritas 0.7.0-dev.226+develop.a6a728ea
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
CheckedGeoTrackView.cc File Reference
#include "CheckedGeoTrackView.hh"
#include <optional>
#include "corecel/Assert.hh"
#include "corecel/Types.hh"
#include "corecel/cont/ArrayIO.hh"
#include "corecel/io/Logger.hh"
#include "corecel/io/Repr.hh"
#include "corecel/math/ArrayOperators.hh"
#include "corecel/math/ArrayUtils.hh"
#include "geocel/GeoParamsInterface.hh"
#include "geocel/VolumeParams.hh"

Namespaces

namespace  celeritas::test
 Test harness base class for optical physics.
 

Macros

#define CGTV_VALIDATE_NOT_FAILED(CGTV, WHERE)
 
#define CGTV_VALIDATE(CGTV, COND, WHAT)
 

Functions

std::string celeritas::test::volume_name (GeoTrackInterface< real_type > const &geo, VolumeParams const &params)
 Get the descriptive, robust volume name based on the geo state.
 
std::string celeritas::test::volume_name (GeoTrackInterface< real_type > const &geo, GeoParamsInterface const &params)
 Get the descriptive, robust impl volume name based on the geo state.
 
std::string celeritas::test::volume_instance_name (GeoTrackInterface< real_type > const &geo, VolumeParams const &params)
 Get the descriptive, robust volume instance name based on the geo state.
 
std::string celeritas::test::unique_volume_name (GeoTrackInterface< real_type > const &geo, VolumeParams const &params)
 Get the descriptive, robust volume instance name based on the geo state.
 
std::ostream & celeritas::test::operator<< (std::ostream &os, CheckedGeoTrackView const &geo)
 Output the state of a checked track view.
 

Macro Definition Documentation

◆ CGTV_VALIDATE

#define CGTV_VALIDATE (   CGTV,
  COND,
  WHAT 
)
Value:
do \
{ \
if (CELER_UNLIKELY(!(COND))) \
{ \
std::ostringstream msg_; \
msg_ WHAT; \
throw_cgtv_error( \
CGTV, std::move(msg_), #COND, __FILE__, __LINE__); \
} \
} while (0)
#define CELER_UNLIKELY(COND)
Mark the result of this condition to be "unlikely".
Definition Macros.hh:101

◆ CGTV_VALIDATE_NOT_FAILED

#define CGTV_VALIDATE_NOT_FAILED (   CGTV,
  WHERE 
)
Value:
do \
{ \
if ((CGTV).check_failure() && CELER_UNLIKELY((CGTV).failed())) \
{ \
std::ostringstream msg_; \
msg_ << "failed during " << WHERE; \
throw_cgtv_error(CGTV, std::move(msg_), {}, __FILE__, __LINE__); \
} \
} while (0)