File indexing completed on 2026-06-02 08:51:43
0001 #ifndef DVCS_CFF_CONSTANT_H
0002 #define DVCS_CFF_CONSTANT_H
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #include <ElementaryUtils/parameters/GenericType.h>
0013 #include <ElementaryUtils/parameters/Parameters.h>
0014 #include <complex>
0015 #include <map>
0016 #include <string>
0017
0018 #include "../../../beans/gpd/GPDType.h"
0019 #include "DVCSConvolCoeffFunctionModule.h"
0020
0021 namespace PARTONS {
0022
0023
0024
0025
0026
0027
0028 class DVCSCFFConstant: public DVCSConvolCoeffFunctionModule {
0029
0030 public:
0031
0032 static const unsigned int classId;
0033
0034 static const std::string PARAMETER_NAME_CFF_VALUES;
0035
0036 static const std::string PARAMETER_NAME_CFF_H_Re;
0037 static const std::string PARAMETER_NAME_CFF_H_Im;
0038 static const std::string PARAMETER_NAME_CFF_E_Re;
0039 static const std::string PARAMETER_NAME_CFF_E_Im;
0040 static const std::string PARAMETER_NAME_CFF_Ht_Re;
0041 static const std::string PARAMETER_NAME_CFF_Ht_Im;
0042 static const std::string PARAMETER_NAME_CFF_Et_Re;
0043 static const std::string PARAMETER_NAME_CFF_Et_Im;
0044
0045
0046
0047
0048
0049
0050 DVCSCFFConstant(const std::string &className);
0051
0052 virtual DVCSCFFConstant* clone() const;
0053
0054
0055
0056
0057 virtual ~DVCSCFFConstant();
0058
0059 virtual void configure(const ElemUtils::Parameters ¶meters);
0060 virtual std::complex<double> computeCFF();
0061
0062
0063
0064
0065 const std::map<GPDType::Type, std::complex<double> >& getCFFs() const;
0066
0067
0068
0069
0070
0071 void setCFFs(const std::map<GPDType::Type, std::complex<double> >& cffs);
0072
0073
0074
0075
0076
0077 const std::complex<double>& getCFF(GPDType::Type gpdType) const;
0078
0079
0080
0081
0082
0083
0084 void setCFF(GPDType::Type gpdType, const std::complex<double>& cff);
0085
0086 protected:
0087
0088
0089
0090
0091
0092 DVCSCFFConstant(const DVCSCFFConstant &other);
0093
0094 virtual void initModule();
0095 virtual void isModuleWellConfigured();
0096
0097 private:
0098
0099
0100
0101
0102
0103 void printErrorInConfigure(const std::string& key) const;
0104
0105
0106
0107
0108
0109
0110
0111 void configureValue(GPDType::Type gpdType, bool isRealPart,
0112 const ElemUtils::GenericType& value);
0113
0114
0115
0116
0117
0118 std::map<GPDType::Type, std::complex<double> > m_CFFs;
0119 };
0120
0121 }
0122
0123 #endif