48 |
|
|
49 |
|
class DensityPlot : public StaticAnalyser{ |
50 |
|
public: |
51 |
< |
DensityPlot(SimInfo* info, const std::string& filename, const std::string& sele, double len, int nrbins); |
51 |
> |
DensityPlot(SimInfo* info, const std::string& filename, const std::string& sele, const std::string& cmSele,RealType len, int nrbins); |
52 |
|
virtual void process(); |
53 |
|
|
54 |
|
int getNRBins() { |
55 |
|
return nRBins_; |
56 |
|
} |
57 |
|
|
58 |
< |
double getLength() { |
58 |
> |
RealType getLength() { |
59 |
|
return len_; |
60 |
|
} |
61 |
|
|
62 |
|
|
63 |
|
private: |
64 |
+ |
Vector3d calcNewOrigin(); |
65 |
+ |
|
66 |
|
void writeDensity(); |
67 |
+ |
|
68 |
|
Snapshot* currentSnapshot_; |
69 |
< |
double len_; |
70 |
< |
double halfLen_; |
69 |
> |
RealType len_; |
70 |
> |
RealType halfLen_; |
71 |
|
int nRBins_; |
72 |
< |
double deltaR_; |
72 |
> |
RealType deltaR_; |
73 |
|
std::vector<int> histogram_; |
74 |
< |
std::vector<double> density_; |
74 |
> |
std::vector<RealType> density_; |
75 |
|
|
76 |
|
std::string selectionScript_; |
77 |
|
SelectionManager seleMan_; |
78 |
< |
SelectionEvaluator evaluator_; |
78 |
> |
SelectionEvaluator evaluator_; |
79 |
> |
std::string cmSelectionScript_; |
80 |
> |
SelectionManager cmSeleMan_; |
81 |
> |
SelectionEvaluator cmEvaluator_; |
82 |
> |
|
83 |
> |
|
84 |
|
}; |
85 |
|
} |
86 |
|
|