Cardinal
TallyRelativeError.h
Go to the documentation of this file.
1 /********************************************************************/
2 /* SOFTWARE COPYRIGHT NOTIFICATION */
3 /* Cardinal */
4 /* */
5 /* (c) 2021 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 "GeneralPostprocessor.h"
22 
23 #include "TallyInterface.h"
24 #include "CardinalEnums.h"
25 #include "TallyBase.h"
26 
30 class TallyRelativeError : public GeneralPostprocessor, public TallyInterface
31 {
32 public:
33  static InputParameters validParams();
34 
35  TallyRelativeError(const InputParameters & parameters);
36 
37  virtual void initialize() override {}
38  virtual void execute() override {}
39 
40  virtual Real getValue() const override;
41 
42 protected:
45 
47  std::string _score;
48 
50  const TallyBase * _tally;
51 };
Definition: TallyInterface.h:27
std::string _score
The tally score we want to fetch the relative error of.
Definition: TallyRelativeError.h:47
virtual Real getValue() const override
Definition: TallyRelativeError.h:30
const TallyBase * _tally
The tally we're computing the relative error from.
Definition: TallyRelativeError.h:50
OperationEnum
Enumeration of possible operations to perform in global postprocessors.
Definition: CardinalEnums.h:149
static InputParameters validParams()
const operation::OperationEnum _type
type of extrema operation
Definition: TallyRelativeError.h:44
Definition: TallyBase.h:35
virtual void execute() override
Definition: TallyRelativeError.h:38
TallyRelativeError(const InputParameters &parameters)
virtual void initialize() override
Definition: TallyRelativeError.h:37