forked from celeritas-project/celeritas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
OrangeParamsOutput.hh
51 lines (43 loc) · 1.59 KB
/
OrangeParamsOutput.hh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//----------------------------------*-C++-*----------------------------------//
// Copyright 2023-2024 UT-Battelle, LLC, and other Celeritas developers.
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: (Apache-2.0 OR MIT)
//---------------------------------------------------------------------------//
//! \file orange/OrangeParamsOutput.hh
//---------------------------------------------------------------------------//
#pragma once
#include <memory>
#include "corecel/io/OutputInterface.hh"
namespace celeritas
{
class OrangeParams;
//---------------------------------------------------------------------------//
/*!
* Save detailed debugging information about the ORANGE geometry.
*
* This is to be used in *addition* to the standard bbox/volume/surface data
* saved by GeoParamsOutput.
*
* \sa celeritas/geo/GeoParamsOutput.hh
*/
class OrangeParamsOutput final : public OutputInterface
{
public:
//!@{
//! \name Type aliases
using SPConstOrangeParams = std::shared_ptr<OrangeParams const>;
//!@}
public:
// Construct from shared geometry data
explicit OrangeParamsOutput(SPConstOrangeParams orange);
//! Category of data to write
Category category() const final { return Category::internal; }
//! Name of the entry inside the category.
std::string_view label() const final { return "orange"; }
// Write output to the given JSON object
void output(JsonPimpl*) const final;
private:
SPConstOrangeParams orange_;
};
//---------------------------------------------------------------------------//
} // namespace celeritas