47 |
|
#include "selection/SelectionEvaluator.hpp" |
48 |
|
#include "selection/SelectionManager.hpp" |
49 |
|
#include "utils/NumericConstant.hpp" |
50 |
+ |
#include "applications/staticProps/StaticAnalyser.hpp" |
51 |
+ |
|
52 |
|
namespace oopse { |
53 |
|
|
54 |
|
/** |
55 |
|
* @class RadialDistrFunc |
56 |
|
* @brief Radial Distribution Function |
57 |
|
*/ |
58 |
< |
class RadialDistrFunc { |
58 |
> |
class RadialDistrFunc : public StaticAnalyser { |
59 |
|
public: |
60 |
|
RadialDistrFunc(SimInfo* info, const std::string& filename, const std::string& sele1, const std::string& sele2); |
61 |
|
|
63 |
|
|
64 |
|
void process(); |
65 |
|
|
64 |
– |
void setOutputName(const std::string& filename) { |
65 |
– |
outputFilename_ = filename; |
66 |
– |
} |
66 |
|
|
68 |
– |
const std::string& getOutputFileName() const { |
69 |
– |
return outputFilename_; |
70 |
– |
} |
71 |
– |
|
72 |
– |
void setStep(int step) { |
73 |
– |
assert(step > 0); |
74 |
– |
step_ =step; |
75 |
– |
} |
67 |
|
|
68 |
|
protected: |
69 |
|
|
72 |
|
|
73 |
|
int getNPairs() { return nPairs_;} |
74 |
|
|
84 |
– |
SimInfo* info_; |
75 |
|
Snapshot* currentSnapshot_; |
76 |
|
|
87 |
– |
std::string dumpFilename_; |
88 |
– |
std::string outputFilename_; |
89 |
– |
int step_; |
77 |
|
std::string selectionScript1_; |
78 |
|
std::string selectionScript2_; |
79 |
|
int nProcessed_; |