48 |
|
|
49 |
|
class DensityPlot : public StaticAnalyser{ |
50 |
|
public: |
51 |
< |
DensityPlot(SimInfo* info, const std::string& filename, const std::string& sele, const std::string& cmSele,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 |
|
|
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_; |