ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/applications/staticProps/RhoZ.hpp
(Generate patch)

Comparing trunk/src/applications/staticProps/RhoZ.hpp (file contents):
Revision 769 by chuckv, Wed Nov 30 21:00:39 2005 UTC vs.
Revision 1267 by gpuliti, Mon Jun 30 17:53:42 2008 UTC

# Line 44 | Line 44
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.5 2008-06-30 17:53:42 gpuliti Exp $
48   *
49   */
50   #ifndef APPLICATIONS_STATICPROPS_RHOZ_HPP
51   #define APPLICATIONS_STATICPROPS_RHOZ_HPP
52  
53 < #include "applications/staticProps/RadialDistrFunc.hpp"
53 > #include <string>
54 > #include <vector>
55 > #include "selection/SelectionEvaluator.hpp"
56 > #include "selection/SelectionManager.hpp"
57 > #include "utils/NumericConstant.hpp"
58 > #include "applications/staticProps/StaticAnalyser.hpp"
59 >
60   namespace oopse {
61    
62 <  class RhoZ : public RadialDistrFunc {
62 >  class RhoZ : public StaticAnalyser {
63      
64 < public:
65 <    RhoZ(SimInfo* info, const std::string& filename, const std::string& sele1,
60 <         const std::string& sele2, double len, int nrbins);
64 >  public:
65 >    RhoZ(SimInfo* info, const std::string& filename, const std::string& sele, int nzbins);
66      
67 <    int getNRBins() {
68 <      return nRBins_;
67 >    int getNZBins() {
68 >      return nZBins_;
69      }
70      
71 <    double getLength() {
67 <      return len_;
68 <    }
71 >    virtual void process();
72      
73 < private:
71 <      
72 <      virtual void preProcess();
73 <    virtual void initalizeHistogram();
74 <    virtual void collectHistogram(StuntDouble* sd1, StuntDouble* sd2);
75 <    virtual void processHistogram();
73 >  private:
74      
75 <    virtual void writeRdf();
75 >    virtual void writeDensity();
76      
79    double len_;
80    int nRBins_;
81    double deltaR_;
77      
78 <    std::vector<int> histogram_;
79 <    std::vector<double> avgGofr_;
78 >    Snapshot* currentSnapshot_;
79 >    
80 >    int nProcessed_;
81 >    std::string selectionScript_;
82 >    SelectionEvaluator evaluator_;
83 >    SelectionManager seleMan_;
84 >    
85 >    int nZBins_;
86 >    
87 >    std::vector<std::vector<StuntDouble*> > sliceSDLists_;
88 >    std::vector<RealType> zBox_;
89 >    std::vector<RealType> density_;
90    };
91    
92   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines