| 45 |
|
|
| 46 |
|
namespace oopse { |
| 47 |
|
|
| 48 |
< |
RadialDistrFunc:: RadialDistrFunc(SimInfo* info, const std::string& filename, const std::string& sele1, const std::string& sele2, double len) |
| 49 |
< |
: info_(info), currentSnapshot_(NULL), dumpFilename_(filename), len_(len), nbins_(50), step_(1), |
| 48 |
> |
RadialDistrFunc:: RadialDistrFunc(SimInfo* info, const std::string& filename, const std::string& sele1, const std::string& sele2) |
| 49 |
> |
: info_(info), currentSnapshot_(NULL), dumpFilename_(filename), step_(1), |
| 50 |
|
selectionScript1_(sele1), selectionScript2_(sele2), evaluator1_(info), evaluator2_(info){ |
| 51 |
|
|
| 52 |
|
evaluator1_.loadScriptString(sele1); |
| 59 |
|
seleMan2_.setSelectionSet(evaluator2_->evaluate()); |
| 60 |
|
} |
| 61 |
|
|
| 62 |
– |
deltaR_ = len_ /nbins_; |
| 62 |
|
} |
| 63 |
|
|
| 64 |
|
void RadialDistrFunc::process() { |