Commit 88a491e755854d87323bf869acddaeeea290925f

Authored by jean perrot
1 parent 769d42b6

ctselect netoyage 2

src/ctselect/ctselect.cpp
... ... @@ -401,30 +401,6 @@ void ctselect::set_emin_emax(double& temin, double& temax, double comparemin, do
401 401 }
402 402 }
403 403  
404   -double ctselect::set_emin(double temin, double comparemin) const{
405   -
406   - // Raise minimum energy to lower boundary/threshold
407   - if ((temin == 0.0) ||
408   - ((comparemin > 0.0) && (temin < comparemin))) {
409   - return comparemin;
410   - }
411   - else {
412   - return temin;
413   - }
414   -}
415   -
416   -double ctselect::set_emax(double temax, double comparemax) const{
417   -
418   - // Lower maximum energy to upper boundary/threshold
419   - if ((temax == 0.0) ||
420   - ((comparemax > 0.0) && (temax > comparemax))) {
421   - return comparemax;
422   - }
423   - else {
424   - return temax;
425   - }
426   -}
427   -
428 404 /*==========================================================================
429 405 = =
430 406 = Private methods =
... ... @@ -1166,8 +1142,6 @@ GEbounds ctselect::set_ebounds(GCTAObservation* obs, const GEbounds&amp; ebounds) co
1166 1142 // Check if we have already energy boundaries
1167 1143 if (ebounds.size() > 0) {
1168 1144 set_emin_emax(emin, emax, ebounds.emin(0).TeV(), ebounds.emax(0).TeV());
1169   - // emin = set_emin(emin, ebounds.emin(0).TeV());
1170   - // emax = set_emax(emax, ebounds.emax(0).TeV());
1171 1145 } // endif: there were already energy boundaries
1172 1146  
1173 1147 // Check if default threshold (the one from the IRF, also known as save
... ... @@ -1198,8 +1172,6 @@ GEbounds ctselect::set_ebounds(GCTAObservation* obs, const GEbounds&amp; ebounds) co
1198 1172 }
1199 1173  
1200 1174 set_emin_emax(emin, emax, lo_save_thres, hi_save_thres);
1201   - // emin = set_emin(emin, lo_save_thres);
1202   - // emax = set_emax(emax, hi_save_thres);
1203 1175 } //endif: usethres was "DEFAULT"
1204 1176  
1205 1177 // ... otherwise check if a user specified threshold should be applied
... ... @@ -1219,8 +1191,6 @@ GEbounds ctselect::set_ebounds(GCTAObservation* obs, const GEbounds&amp; ebounds) co
1219 1191 }
1220 1192  
1221 1193 set_emin_emax(emin, emax, lo_user_thres, hi_user_thres);
1222   - // emin = set_emin(emin, lo_user_thres);
1223   - // emax = set_emax(emax, hi_user_thres);
1224 1194 } // endif: usethres was "USER
1225 1195  
1226 1196 // Set selection energy boundaries
... ...
src/ctselect/ctselect.hpp
... ... @@ -62,8 +62,6 @@ public:
62 62 void save(void);
63 63 void publish(const std::string& name = "");
64 64 void set_emin_emax(double& temin, double& temax, double comparemin, double comparemax) const;
65   - double set_emin(double temin, double comparemin) const;
66   - double set_emax(double temax, double comparemax) const;
67 65  
68 66  
69 67 protected:
... ...