Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-06-02 08:51:42

0001 #ifndef GPD_RESULT_H
0002 #define GPD_RESULT_H
0003 
0004 /**
0005  * @file GPDSubtractionConstantResult.h
0006  * @author: Bryan BERTHOU (SPhN / CEA Saclay)
0007  * @date 26 April 2015
0008  * @version 1.0
0009  */
0010 
0011 #include <string>
0012 
0013 #include "../../utils/type/PhysicalType.h"
0014 #include "../Result.h"
0015 #include "GPDSubtractionConstantKinematic.h"
0016 
0017 namespace PARTONS {
0018 
0019 /**
0020  * @class GPDSubtractionConstantResult
0021  *
0022  * @brief Class representing single result of GPD subtraction constant computation.
0023  *
0024  * This class is used to store results of a single GPD subtraction constant computation.
0025  */
0026 class GPDSubtractionConstantResult: public Result<
0027         GPDSubtractionConstantKinematic> {
0028 
0029 public:
0030 
0031     /**
0032      * Default constructor.
0033      */
0034     GPDSubtractionConstantResult();
0035 
0036     /**
0037      * Assignment constructor.
0038      * @param value Value to be assigned.
0039      */
0040     GPDSubtractionConstantResult(const PhysicalType<double>& value);
0041 
0042     /**
0043      * Assignment constructor.
0044      * @param kinematic GPD kinematics to be assigned.
0045      */
0046     GPDSubtractionConstantResult(
0047             const GPDSubtractionConstantKinematic& kinematic);
0048 
0049     /**
0050      * Assignment constructor.
0051      * @param value Value to be assigned.
0052      * @param kinematic GPD kinematics to be assigned.
0053      */
0054     GPDSubtractionConstantResult(const PhysicalType<double>& value,
0055             const GPDSubtractionConstantKinematic& kinematic);
0056 
0057     /**
0058      * Copy constructor.
0059      * @param other Object to be copied.
0060      */
0061     GPDSubtractionConstantResult(const GPDSubtractionConstantResult &other);
0062 
0063     /**
0064      * Destructor.
0065      */
0066     virtual ~GPDSubtractionConstantResult();
0067 
0068     virtual std::string toString() const;
0069 
0070     //********************************************************
0071     //*** SETTERS AND GETTERS ********************************
0072     //********************************************************
0073 
0074     /**
0075      * Get value of result.
0076      */
0077     const PhysicalType<double>& getValue() const;
0078 
0079     /**
0080      * Set value of result.
0081      */
0082     void setValue(const PhysicalType<double>& value);
0083 
0084 private:
0085 
0086     /**
0087      * Result of computation.
0088      */
0089     PhysicalType<double> m_value;
0090 };
0091 
0092 } /* namespace PARTONS */
0093 
0094 #endif /* GPD_RESULT_H */