diff options
Diffstat (limited to 'mass_profile/calc_lx_beta.cpp')
-rw-r--r-- | mass_profile/calc_lx_beta.cpp | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/mass_profile/calc_lx_beta.cpp b/mass_profile/calc_lx_beta.cpp index dcbf1ad..11d7b04 100644 --- a/mass_profile/calc_lx_beta.cpp +++ b/mass_profile/calc_lx_beta.cpp @@ -1,9 +1,10 @@ -/* - Perform a double-beta density model fitting to the surface brightness data - Author: Junhua Gu - Last modified: 2011.01.01 - This code is distributed with no warrant -*/ +/** + * Calculate the total luminosity and flux within the specified radius. + * + * Base on 'fit_beta_sbp.cpp' and supersede 'calc_lx.cpp' + * + * Author: Junhua Gu + */ #include <iostream> #include <fstream> @@ -71,7 +72,7 @@ int main(int argc,char* argv[]) { if(argc<4) { - cerr<<argv[0]<<" <configure file> <rout in kpc> <bolo erg cfunc file>"<<endl; + cerr<<argv[0]<<" <sbp.conf> <rout_kpc> <cfunc_erg> [cfunc2_erg ...]"<<endl; return -1; } //initialize the parameters list @@ -460,7 +461,7 @@ int main(int argc,char* argv[]) for(int n=3;n<argc;++n) { - spline_func_obj cf_bolo_erg; + spline_func_obj cf_erg; for(ifstream ifs(argv[n]);;) { assert(ifs.is_open()); @@ -472,12 +473,12 @@ int main(int argc,char* argv[]) } //cerr<<x<<"\t"<<y<<endl; - cf_bolo_erg.add_point(x,y);//change with source + cf_erg.add_point(x,y);//change with source } - cf_bolo_erg.gen_spline(); + cf_erg.gen_spline(); projector<double>& pj=dynamic_cast<projector<double>&>(f.get_model()); - pj.attach_cfunc(cf_bolo_erg); + pj.attach_cfunc(cf_erg); |