24 #include "cheetah/generators/PhaseModelFactory.h" 25 #include "cheetah/generators/src/SimplePhaseModel.h" 26 #include "cheetah/generators/src/Tempo2PhaseModel.h" 27 #include "cheetah/generators/PulsarInjectionConfig.h" 28 #include <panda/Error.h> 32 namespace generators {
35 PhaseModelFactory::PhaseModelFactory(ConfigType
const& config)
37 , _types({
"simple",
"tempo2"})
41 PhaseModelFactory::~PhaseModelFactory()
48 return SimplePhaseModel(static_cast<SimplePhaseModelConfig const&>(_iterators.config(
"simple_phase_model")));
50 else if(type==
"tempo2") {
51 return Tempo2PhaseModel(static_cast<Tempo2PhaseModelConfig const&>(_iterators.config(
"tempo2_phase_model")));
54 panda::Error e(
"phase_model: unknown phase model type requested:");
A simple Taylor Expansion phase model.
std::vector< std::string > const & types() const
return the types supported
Some limits and constants for FLDO.
type create(std::string const &type) const
creates a phase model of the specified type, using the next available suitable configuration that is ...
Parameters for specifying the tempo2 phase model.