41 |
|
#ifndef APPLICATIONS_STATICPROPS_RADIALDISTRFUNC_HPP |
42 |
|
#define APPLICATIONS_STATICPROPS_RADIALDISTRFUNC_HPP |
43 |
|
|
44 |
+ |
#include <string> |
45 |
|
#include <vector> |
46 |
|
|
47 |
|
#include "selection/SelectionEvaluator.hpp" |
54 |
|
*/ |
55 |
|
class RadialDistrFunc { |
56 |
|
public: |
57 |
< |
RadialDistrFunc(SimInfo* info, const std::string& filename, const std::string& sele1, const std::string& sele2. double len); |
57 |
> |
RadialDistrFunc(SimInfo* info, const std::string& filename, const std::string& sele1, const std::string& sele2); |
58 |
|
|
59 |
+ |
virtual ~RadialDistrFunc() {} |
60 |
+ |
|
61 |
|
void process(); |
62 |
|
|
60 |
– |
void setNBins(int nbins) { |
61 |
– |
assert(nbins > 0); |
62 |
– |
nbins_ = nbins; |
63 |
– |
delta_ = len_ / nbins_; |
64 |
– |
} |
65 |
– |
|
66 |
– |
int getNBins() { |
67 |
– |
return nbins_; |
68 |
– |
} |
69 |
– |
|
63 |
|
void setOutputName(const std::string& filename) { |
64 |
|
outputFilename_ = filename; |
65 |
|
} |
80 |
|
|
81 |
|
SimInfo* info_; |
82 |
|
Snapshot* currentSnapshot_; |
83 |
< |
double len_; |
91 |
< |
int nbins_; |
92 |
< |
double delta_; |
83 |
> |
|
84 |
|
std::string dumpFilename_; |
85 |
|
std::string outputFilename_; |
86 |
|
int step_; |
87 |
|
std::string selectionScript1_; |
88 |
|
std::string selectionScript2_; |
89 |
< |
|
89 |
> |
int nProcessed_; |
90 |
|
private: |
91 |
|
|
92 |
|
virtual void initalizeHistogram() {} |