sfof
option_class.hpp
Go to the documentation of this file.
1 
7 #ifndef OPTION_CLASS_H
8 #define OPTION_CLASS_H
9 
10 #include <fstream>
11 #include <iomanip>
12 #include <iostream>
13 #include <string>
14 
24 class Option { // Class for code options
25 
26 public:
27 
30  int min_ngal;
31 
33  int max_ngal;
34 
36  int n_ra_bins;
37 
40 
42  int n_procs;
43 
45  double link_r;
46 
48  double link_z;
49 
51  double z_bin_size;
52 
54  double z_min;
55 
57  double z_max;
58 
60  double z_ref;
61 
63  double z_err_max;
64 
66  std::string nz_data;
67 
69  double c;
70 
72  double H0;
73 
75  double omega_m;
76 
78  double omega_l;
79 
81  double ra_lower;
82 
84  double ra_upper;
85 
87  double dec_lower;
88 
90  double dec_upper;
91 
93  double ra_overlap;
94 
96  double dec_overlap;
97 
99  std::string config_file;
100 
102  std::string input_file;
103 
105  std::string output_clusters;
106 
108  std::string output_members;
109 
111  std::string output_file;
112 
115 
118 
121 
123  std::string bg_data;
124 
126  std::string input_mode;
127 
129  std::string output_mode;
130 
132  std::string fof_mode;
133 
135  std::string link_mode;
136 
138  std::string size_units;
139 
146  void read_opts (int, char *[], double);
147 
154  void read_merge_opts (int, char *[], double);
155 
162  void read_split_opts (int, char *[], double);
163 
164 private:
165 
169  void version(double);
170 
174  void print_parameters();
175 
176 };
177 
178 #endif /* OPTION_CLASS_H */
Option::bg_data
std::string bg_data
Input file name for background data.
Definition: option_class.hpp:123
Option::fof_mode
std::string fof_mode
FoF mode ["spec"/"phot"].
Definition: option_class.hpp:132
Option
Class for reading code options.
Definition: option_class.hpp:24
Option::max_ngal
int max_ngal
Maximum number of member Galaxy allowed to form a Cluster instance.
Definition: option_class.hpp:33
Option::output_file
std::string output_file
Output file name.
Definition: option_class.hpp:111
Option::z_bin_size
double z_bin_size
Redshift bin size.
Definition: option_class.hpp:51
Option::read_merge_opts
void read_merge_opts(int, char *[], double)
This method reads options provided as arguments for Cat_Merge.
Definition: option_class.cpp:168
Option::version
void version(double)
This method prints the code version number.
Definition: option_class.cpp:7
Option::z_err_max
double z_err_max
Maxmimum photometric redshift error allowed.
Definition: option_class.hpp:63
Option::output_members
std::string output_members
Output member file name.
Definition: option_class.hpp:108
Option::z_ref
double z_ref
Reference redshift for calculations.
Definition: option_class.hpp:60
Option::print_parameters
void print_parameters()
This method prints the current parameter values.
Definition: option_class.cpp:14
Option::n_procs
int n_procs
Number of processes.
Definition: option_class.hpp:42
Option::min_ngal
int min_ngal
Minimum number of member Galaxy instances required to form a Cluster instance.
Definition: option_class.hpp:30
Option::omega_m
double omega_m
Matter density.
Definition: option_class.hpp:75
Option::print_bin_data
bool print_bin_data
Option to print Zbin data.
Definition: option_class.hpp:114
Option::n_ra_bins
int n_ra_bins
Number of bins in right ascension.
Definition: option_class.hpp:36
Option::dec_upper
double dec_upper
Maximum declination of range.
Definition: option_class.hpp:90
Option::nz_data
std::string nz_data
Input file name for N(z) data.
Definition: option_class.hpp:66
Option::z_min
double z_min
Minimum redshift allowed.
Definition: option_class.hpp:54
Option::print_bg_data
bool print_bg_data
Option to print background data.
Definition: option_class.hpp:120
Option::size_units
std::string size_units
Cluser size units ["arcmin"/"deg"/"Mpc"].
Definition: option_class.hpp:138
Option::link_mode
std::string link_mode
FoF linking mode ["dynamic"/"fixed"].
Definition: option_class.hpp:135
Option::input_mode
std::string input_mode
Input mode ["ascii"/"fits"].
Definition: option_class.hpp:126
Option::config_file
std::string config_file
Configuration File.
Definition: option_class.hpp:99
Option::H0
double H0
Hubble parameter [km/s/Mpc].
Definition: option_class.hpp:72
Option::n_dec_bins
int n_dec_bins
Number of bins in declination.
Definition: option_class.hpp:39
Option::ra_lower
double ra_lower
Minimum right ascension of range.
Definition: option_class.hpp:81
Option::print_kdtree_data
bool print_kdtree_data
Option to print kd-tree data.
Definition: option_class.hpp:117
Option::z_max
double z_max
Maximum redshift allowed.
Definition: option_class.hpp:57
Option::read_opts
void read_opts(int, char *[], double)
This method reads options provided as arguments for Main.
Definition: option_class.cpp:42
Option::link_r
double link_r
Transverse linking parameter.
Definition: option_class.hpp:45
Option::c
double c
Speed of light [km/s].
Definition: option_class.hpp:69
Option::link_z
double link_z
Line-of-sight linking parameter.
Definition: option_class.hpp:48
Option::output_mode
std::string output_mode
Output mode ["ascii"/"fits"].
Definition: option_class.hpp:129
Option::ra_upper
double ra_upper
Maximum right ascension of range.
Definition: option_class.hpp:84
Option::omega_l
double omega_l
Dark energy density.
Definition: option_class.hpp:78
Option::ra_overlap
double ra_overlap
Overlap in right ascension.
Definition: option_class.hpp:93
Option::output_clusters
std::string output_clusters
Output cluster file name.
Definition: option_class.hpp:105
Option::dec_overlap
double dec_overlap
Overlap in declination.
Definition: option_class.hpp:96
Option::dec_lower
double dec_lower
Minimum declination of range.
Definition: option_class.hpp:87
Option::read_split_opts
void read_split_opts(int, char *[], double)
This method reads options provided as arguments for Cat_Split.
Definition: option_class.cpp:204
Option::input_file
std::string input_file
Input file name.
Definition: option_class.hpp:102