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 
25 class OpenMCProblemBase;
26 
30 class OpenMCTallyEditor : public GeneralUserObject, public OpenMCBase
31 {
32 public:
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 
68 protected:
70  const int32_t & _tally_id;
71 };
Definition: OpenMCBase.h:30
Definition: OpenMCTallyEditor.h:30
const int32_t & _tally_id
Tally ID to modify.
Definition: OpenMCTallyEditor.h:70
virtual void execute() override
virtual void finalize() override
Definition: OpenMCTallyEditor.h:47
bool tallyExists() const
void mappedTallyError(const int32_t &id) const
OpenMCTallyEditor(const InputParameters &parameters)
int32_t tallyIndex() const
void duplicateTallyError(const int32_t &id) const
Definition: OpenMCProblemBase.h:52
static InputParameters validParams()
virtual void initialize() override
Definition: OpenMCTallyEditor.h:46
int32_t tallyId() const
Definition: OpenMCTallyEditor.h:66