SourceXtractorPlusPlus  0.16
Please provide a description of the project.
SourcePsfTask.h
Go to the documentation of this file.
1 
18 #ifndef _SEIMPLEMENTATION_PLUGIN_SOURCEPSF_SOURCEPSFTASK_H_
19 #define _SEIMPLEMENTATION_PLUGIN_SOURCEPSF_SOURCEPSFTASK_H_
20 
22 #include "SEFramework/Psf/Psf.h"
23 
24 namespace SourceXtractor {
25 
26 class SourcePsfTask: public SourceTask {
27 public:
28  virtual ~SourcePsfTask() = default;
29 
30  SourcePsfTask(unsigned instance, const std::shared_ptr<Psf> &vpsf);
31 
32  void computeProperties(SourceInterface& source) const override;
33 
34  typedef std::function<double(SourceXtractor::SourceInterface &group, unsigned instance)> ValueGetter;
36 
37 private:
38  unsigned m_instance;
40 };
41 
42 } // end SourceXtractor
43 
44 #endif //_SEIMPLEMENTATION_PLUGIN_SOURCEPSF_SOURCEPSFTASK_H_
The SourceInterface is an abstract "source" that has properties attached to it.
std::function< double(SourceXtractor::SourceInterface &group, unsigned instance)> ValueGetter
Definition: SourcePsfTask.h:34
virtual ~SourcePsfTask()=default
static std::map< std::string, ValueGetter > component_value_getters
Definition: SourcePsfTask.h:35
void computeProperties(SourceInterface &source) const override
Computes one or more properties for the Source.
std::shared_ptr< Psf > m_vpsf
Definition: SourcePsfTask.h:39
SourcePsfTask(unsigned instance, const std::shared_ptr< Psf > &vpsf)
A Task that acts on a Source to compute one or more properties.
Definition: SourceTask.h:36