Loading [MathJax]/extensions/tex2jax.js
Cardinal
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
OpenMCTallyEditor.h
Go to the documentation of this file.
1/********************************************************************/
2/* SOFTWARE COPYRIGHT NOTIFICATION */
3/* Cardinal */
4/* */
5/* (c) 2024 UChicago Argonne, LLC */
6/* ALL RIGHTS RESERVED */
7/* */
8/* Prepared by UChicago Argonne, LLC */
9/* Under Contract No. DE-AC02-06CH11357 */
10/* With the U. S. Department of Energy */
11/* */
12/* Prepared by Battelle Energy Alliance, LLC */
13/* Under Contract No. DE-AC07-05ID14517 */
14/* With the U. S. Department of Energy */
15/* */
16/* See LICENSE for full restrictions */
17/********************************************************************/
18
19#pragma once
20
21#include "GeneralUserObject.h"
22
23#include "OpenMCBase.h"
24
26
30class OpenMCTallyEditor : public GeneralUserObject, public OpenMCBase
31{
32public:
33 static InputParameters validParams();
34
35 OpenMCTallyEditor(const InputParameters & parameters);
36
37 bool tallyExists() const;
38
43 int32_t tallyIndex() const;
44
45 virtual void execute() override;
46 virtual void initialize() override{};
47 virtual void finalize() override {}
48
53 void duplicateTallyError(const int32_t & id) const;
54
60 void mappedTallyError(const int32_t & id) const;
61
66 int32_t tallyId() const { return _tally_id; }
67
68protected:
70 const int32_t & _tally_id;
71};
Definition OpenMCBase.h:31
Definition OpenMCProblemBase.h:53
Definition OpenMCTallyEditor.h:31
static InputParameters validParams()
const int32_t & _tally_id
Tally ID to modify.
Definition OpenMCTallyEditor.h:70
void duplicateTallyError(const int32_t &id) const
int32_t tallyId() const
Definition OpenMCTallyEditor.h:66
virtual void finalize() override
Definition OpenMCTallyEditor.h:47
OpenMCTallyEditor(const InputParameters &parameters)
virtual void initialize() override
Definition OpenMCTallyEditor.h:46
bool tallyExists() const
virtual void execute() override
int32_t tallyIndex() const
void mappedTallyError(const int32_t &id) const