/*
 * FitParticleChargesAction.def
 *
 *  Created on: Jul 03, 2013
 *      Author: heber
 */

// all includes and forward declarations necessary for non-integral types below
#include <boost/filesystem/path.hpp>
#include "Element/element.hpp"
#include <vector>

#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<const element *>)(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<boost::filesystem::path>()) \
(STLVectorValidator< std::vector<const element *> >(1,99, ElementValidator())) \
(NonNegativeValidator<double>())

#undef statetypes
#undef statereferences

// some defines for all the names, you may use ACTION, STATE and PARAMS
#define CATEGORY Fragmentation
#define MENUNAME "fragmentation"
#define MENUPOSITION 9
#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
