SourceXtractorPlusPlus  0.12
Please provide a description of the project.
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
SourceXtractor::PsfPluginConfig Class Reference

#include <PsfPluginConfig.h>

Inheritance diagram for SourceXtractor::PsfPluginConfig:
[legend]
Collaboration diagram for SourceXtractor::PsfPluginConfig:
[legend]

Public Member Functions

virtual ~PsfPluginConfig ()=default
 
 PsfPluginConfig (long manager_id)
 
std::map< std::string, OptionDescriptionListgetProgramOptions () override
 
void preInitialize (const UserValues &args) override
 
void initialize (const UserValues &args) override
 
const std::shared_ptr< VariablePsf > & getPsf () const
 
- Public Member Functions inherited from Euclid::Configuration::Configuration
 Configuration (long manager_id)
 
virtual ~Configuration ()=default
 
virtual void postInitialize (const UserValues &args)
 
const std::set< std::type_index > & getDependencies ()
 
StategetCurrentState ()
 
State getCurrentState () const
 

Static Public Member Functions

static std::shared_ptr< VariablePsfreadPsf (const std::string &filename, int hdu_number=1)
 
static std::shared_ptr< VariablePsfgenerateGaussianPsf (SeFloat fwhm, SeFloat pixel_sampling)
 

Private Attributes

std::shared_ptr< VariablePsfm_vpsf
 

Additional Inherited Members

- Public Types inherited from Euclid::Configuration::Configuration
enum  State { State::CONSTRUCTED, State::PRE_INITIALIZED, State::INITIALIZED, State::FINAL }
 
typedef std::vector< boost::program_options::option_description > OptionDescriptionList
 
typedef std::map< std::string, boost::program_options::variable_value > UserValues
 
- Protected Member Functions inherited from Euclid::Configuration::Configuration
void declareDependency ()
 
T & getDependency ()
 
const T & getDependency () const
 

Detailed Description

Definition at line 33 of file PsfPluginConfig.h.

Constructor & Destructor Documentation

◆ ~PsfPluginConfig()

virtual SourceXtractor::PsfPluginConfig::~PsfPluginConfig ( )
virtualdefault

◆ PsfPluginConfig()

SourceXtractor::PsfPluginConfig::PsfPluginConfig ( long  manager_id)
inline

Definition at line 37 of file PsfPluginConfig.h.

Member Function Documentation

◆ generateGaussianPsf()

std::shared_ptr< VariablePsf > SourceXtractor::PsfPluginConfig::generateGaussianPsf ( SeFloat  fwhm,
SeFloat  pixel_sampling 
)
static

Definition at line 179 of file PsfPluginConfig.cpp.

References SourceXtractor::VectorImage< T >::create(), std::exp(), Elements::Logging::info(), SourceXtractor::logger, x, and y.

Referenced by initialize(), and TestImage::mainMethod().

Here is the call graph for this function:

◆ getProgramOptions()

std::map< std::string, Configuration::OptionDescriptionList > SourceXtractor::PsfPluginConfig::getProgramOptions ( )
overridevirtual

Reimplemented from Euclid::Configuration::Configuration.

Definition at line 207 of file PsfPluginConfig.cpp.

References std::string::c_str(), SourceXtractor::PSF_FILE, SourceXtractor::PSF_FWHM, and SourceXtractor::PSF_PIXEL_SAMPLING.

Here is the call graph for this function:

◆ getPsf()

const std::shared_ptr< VariablePsf > & SourceXtractor::PsfPluginConfig::getPsf ( ) const

Definition at line 235 of file PsfPluginConfig.cpp.

References m_vpsf.

◆ initialize()

void SourceXtractor::PsfPluginConfig::initialize ( const UserValues args)
overridevirtual

Reimplemented from Euclid::Configuration::Configuration.

Definition at line 226 of file PsfPluginConfig.cpp.

References std::map< K, T >::end(), std::map< K, T >::find(), generateGaussianPsf(), m_vpsf, SourceXtractor::PSF_FILE, SourceXtractor::PSF_FWHM, SourceXtractor::PSF_PIXEL_SAMPLING, and readPsf().

Here is the call graph for this function:

◆ preInitialize()

void SourceXtractor::PsfPluginConfig::preInitialize ( const UserValues args)
overridevirtual

Reimplemented from Euclid::Configuration::Configuration.

Definition at line 218 of file PsfPluginConfig.cpp.

References std::map< K, T >::end(), std::map< K, T >::find(), SourceXtractor::PSF_FILE, SourceXtractor::PSF_FWHM, and SourceXtractor::PSF_PIXEL_SAMPLING.

Here is the call graph for this function:

◆ readPsf()

std::shared_ptr< VariablePsf > SourceXtractor::PsfPluginConfig::readPsf ( const std::string filename,
int  hdu_number = 1 
)
static

Reads a PSF from a fits file. The image must be square and have sides of odd number of pixels.

Definition at line 154 of file PsfPluginConfig.cpp.

References e, conf::filename, SourceXtractor::readImage(), and SourceXtractor::readPsfEx().

Referenced by SourceXtractor::PsfTaskFactory::configure(), initialize(), and TestImage::mainMethod().

Here is the call graph for this function:

Member Data Documentation

◆ m_vpsf

std::shared_ptr<VariablePsf> SourceXtractor::PsfPluginConfig::m_vpsf
private

Definition at line 50 of file PsfPluginConfig.h.

Referenced by getPsf(), and initialize().


The documentation for this class was generated from the following files: