| 44 |
|
* |
| 45 |
|
* Created by Charles F. Vardeman II on 11/26/05. |
| 46 |
|
* @author Charles F. Vardeman II |
| 47 |
< |
* @version $Id: RhoZ.hpp,v 1.1 2005-11-30 21:00:39 chuckv Exp $ |
| 47 |
> |
* @version $Id: RhoZ.hpp,v 1.4 2006-05-17 21:51:42 tim Exp $ |
| 48 |
|
* |
| 49 |
|
*/ |
| 50 |
|
#ifndef APPLICATIONS_STATICPROPS_RHOZ_HPP |
| 53 |
|
#include "applications/staticProps/RadialDistrFunc.hpp" |
| 54 |
|
namespace oopse { |
| 55 |
|
|
| 56 |
< |
class RhoZ : public RadialDistrFunc { |
| 56 |
> |
class RhoZ : public StaticAnalyser { |
| 57 |
|
|
| 58 |
|
public: |
| 59 |
< |
RhoZ(SimInfo* info, const std::string& filename, const std::string& sele1, |
| 60 |
< |
const std::string& sele2, double len, int nrbins); |
| 59 |
> |
RhoZ(SimInfo* info, const std::string& filename, const std::string& sele, RealType len, int nrbins); |
| 60 |
|
|
| 61 |
|
int getNRBins() { |
| 62 |
|
return nRBins_; |
| 63 |
|
} |
| 64 |
|
|
| 65 |
< |
double getLength() { |
| 65 |
> |
RealType getLength() { |
| 66 |
|
return len_; |
| 67 |
|
} |
| 68 |
+ |
|
| 69 |
+ |
virtual void process(); |
| 70 |
|
|
| 71 |
|
private: |
| 71 |
– |
|
| 72 |
– |
virtual void preProcess(); |
| 73 |
– |
virtual void initalizeHistogram(); |
| 74 |
– |
virtual void collectHistogram(StuntDouble* sd1, StuntDouble* sd2); |
| 75 |
– |
virtual void processHistogram(); |
| 72 |
|
|
| 73 |
< |
virtual void writeRdf(); |
| 73 |
> |
virtual void writeDensity(); |
| 74 |
> |
|
| 75 |
> |
|
| 76 |
> |
Snapshot* currentSnapshot_; |
| 77 |
> |
|
| 78 |
> |
int nProcessed_; |
| 79 |
> |
std::string selectionScript_; |
| 80 |
> |
SelectionEvaluator evaluator_; |
| 81 |
> |
SelectionManager seleMan_; |
| 82 |
|
|
| 83 |
< |
double len_; |
| 84 |
< |
int nRBins_; |
| 85 |
< |
double deltaR_; |
| 83 |
> |
RealType len_; |
| 84 |
> |
int nRBins_; |
| 85 |
> |
RealType deltaR_; |
| 86 |
|
|
| 87 |
< |
std::vector<int> histogram_; |
| 88 |
< |
std::vector<double> avgGofr_; |
| 87 |
> |
std::vector<std::vector<StuntDouble*> > sliceSDLists_; |
| 88 |
> |
std::vector<RealType> density_; |
| 89 |
|
}; |
| 90 |
|
|
| 91 |
|
} |