/* * FitParticleChargesAction.def * * Created on: Jul 03, 2013 * Author: heber */ // all includes and forward declarations necessary for non-integral types below #include #include "Element/element.hpp" #include #include "Parameters/Validators/DummyValidator.hpp" #include "Parameters/Validators/GenericValidators.hpp" #include "Parameters/Validators/STLVectorValidator.hpp" #include "Parameters/Validators/Specific/ElementValidator.hpp" // i.e. there is an integer with variable name Z that can be found in // ValueStorage by the token "Z" -> first column: int, Z, "Z" // "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value #define paramtypes (boost::filesystem::path)(std::vector)(double) #define paramtokens ("potential-file")("fragment-charges")("radius") #define paramdescriptions ("potential file specifying multiple potentials to fit")("charges specifying the fragment")("radius of sphere around nuclei where potential does not need to match") #define paramdefaults (NOPARAM_DEFAULT)(NOPARAM_DEFAULT)(PARAM_DEFAULT(0)) #define paramreferences (potential_file)(fragment)(radius) #define paramvalids \ (DummyValidator()) \ (STLVectorValidator< std::vector >(1,99, ElementValidator())) \ (NonNegativeValidator()) #undef statetypes #undef statereferences // some defines for all the names, you may use ACTION, STATE and PARAMS #define CATEGORY Potential #define MENUNAME "potential" #define MENUPOSITION 4 #define ACTIONNAME FitParticleCharges #define TOKEN "fit-particle-charges" // finally the information stored in the ActionTrait specialization #define DESCRIPTION "fits partial nuclear charges to present particle types from long-range fragmentation results" #undef SHORTFORM