| 84 |
|
class SpatialStatistics : public StaticAnalyser { |
| 85 |
|
|
| 86 |
|
public: |
| 87 |
< |
SpatialStatistics(SimInfo* info, const string& filename, const string& sele, int nbins); |
| 87 |
> |
SpatialStatistics(SimInfo* info, const string& filename, |
| 88 |
> |
const string& sele, int nbins); |
| 89 |
|
~SpatialStatistics(); |
| 90 |
|
|
| 91 |
|
void addOutputData(OutputData* dat) {data_.push_back(dat);} |
| 99 |
|
OutputData* beginOutputData(vector<OutputData*>::iterator& i); |
| 100 |
|
OutputData* nextOutputData(vector<OutputData*>::iterator& i); |
| 101 |
|
void writeData(ostream& os, OutputData* dat, unsigned int bin); |
| 102 |
< |
void writeStdDev(ostream& os, OutputData* dat, unsigned int bin); |
| 102 |
> |
void writeErrorBars(ostream& os, OutputData* dat, unsigned int bin); |
| 103 |
|
|
| 104 |
|
Snapshot* currentSnapshot_; |
| 105 |
|
int nProcessed_; |
| 110 |
|
OutputData* counts_; |
| 111 |
|
vector<OutputData*> data_; |
| 112 |
|
}; |
| 113 |
< |
|
| 113 |
> |
|
| 114 |
|
class SlabStatistics : public SpatialStatistics { |
| 115 |
|
public: |
| 116 |
< |
SlabStatistics(SimInfo* info, const string& filename, const string& sele, int nbins); |
| 116 |
> |
SlabStatistics(SimInfo* info, const string& filename, |
| 117 |
> |
const string& sele, int nbins); |
| 118 |
|
virtual ~SlabStatistics(); |
| 119 |
|
|
| 120 |
|
virtual int getBin(Vector3d pos); |
| 128 |
|
|
| 129 |
|
class ShellStatistics : public SpatialStatistics { |
| 130 |
|
public: |
| 131 |
< |
ShellStatistics(SimInfo* info, const string& filename, const string& sele, int nbins); |
| 131 |
> |
ShellStatistics(SimInfo* info, const string& filename, const string& sele, |
| 132 |
> |
int nbins); |
| 133 |
|
virtual ~ShellStatistics(); |
| 134 |
|
virtual int getBin(Vector3d pos); |
| 135 |
|
|