8 #ifndef EXPLICIT_MAPMAKING_DATA_MANAGER_HPP_
9 #define EXPLICIT_MAPMAKING_DATA_MANAGER_HPP_
15 #include <boost/filesystem.hpp>
17 namespace fs = boost::filesystem;
23 DataManager(
const std::vector<int>& obspix,
const MPI_Comm comm,
24 char stokes,
int n_poly);
25 void SetNCESHitThreshold(
int n_ces_hits,
int max_n_pixel);
26 int n_pixel()
const {
return obspix_.size(); };
27 char stokes()
const {
return stokes_; };
28 std::vector<int> obspix()
const {
return obspix_; }
29 CES& AddCES(
int n_sample) { ceses_.emplace_back(n_sample, filters_);
return ceses_.back(); }
30 std::list<CES>& ceses() {
return ceses_; }
32 void RemovePathologicalPixels(
double threshold);
34 void SetObspix(fs::path obspix_filename);
35 void SaveObspix(fs::path obspix_filename);
36 void ComputeCcCsSsNhits();
37 void SaveCcCsSsNhitsWeigths(fs::path filename);
40 std::vector<double> cc_;
41 std::vector<double> cs_;
42 std::vector<double> ss_;
43 std::vector<double> weights_;
44 std::vector<int> nhits_;
45 std::vector<int> obspix_;
51 std::list<CES> ceses_;
52 void MaskPixels(std::vector<int> mask);
56 #endif // EXPLICIT_MAPMAKING_DATA_MANAGER_HPP_
Definition: data_manager.hpp:21
Definition: filters.hpp:17
Data storage and accessing.