28 #ifndef SYNTHESIS_NORMALIZER_MIXIN_H_
29 #define SYNTHESIS_NORMALIZER_MIXIN_H_
51 std::vector< std::shared_ptr<SynthesisNormalizer> >
normalizers;
61 if (T::effective_rank(comm) == 0)
62 for (
auto pars : norm_pars) {
65 normalizers.push_back(std::shared_ptr<SynthesisNormalizer>(sn));
71 if (pars.isDefined(
"partimagenames")) {
72 const std::vector<casacore::String> &part_names =
73 pars.asArrayString(
"partimagenames").tovector();
74 for (
size_t p = 0; p < part_names.size(); ++p) {
94 sn->gatherImages(
true,
false,
96 sn->dividePSFByWeight();
103 sn->divideModelByWeight();
111 sn->gatherImages(
false,
true,
113 sn->divideResidualByWeight();
120 sn->multiplyModelByWeight();
126 sn->gatherImages(
false,
false,
128 sn->scatterWeightDensity();
135 #endif // SYNTHESIS_NORMALIZER_MIXIN_H_
void setup_normalizer(MPI_Comm comm, std::vector< casacore::Record > &norm_pars)
void remove()
Remove the file.
void setupNormalizer(casacore::Record normpars)
Copy constructor and assignment operator.
Get information about, and manipulate directories.
Manipulate and get information about regular files.
Class to get file information and a base for other file classes.
void reduce_weight_density()
void normalize_residual()
void removeRecursive(Bool keepDir=False)
Remove the directory and its contents (recursively in all subdirectories).
Simple mixin class to put SynthesisNormalizer into ParallelImagerMixin framework. ...
void teardown_normalizer()
std::vector< std::shared_ptr< SynthesisNormalizer > > normalizers
Bool isDirectory(Bool followSymLink=True) const
Check if the file is a directory.