ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/applications/staticProps/GofR.hpp
(Generate patch)

Comparing trunk/OOPSE-4/src/applications/staticProps/GofR.hpp (file contents):
Revision 1994 by tim, Thu Feb 10 18:14:03 2005 UTC vs.
Revision 2038 by tim, Wed Feb 16 20:30:50 2005 UTC

# Line 41 | Line 41
41   #ifndef APPLICATIONS_STATICPROPS_GOFR_HPP
42   #define APPLICATIONS_STATICPROPS_GOFR_HPP
43  
44 < #include "application/staticProps/RadialDistrFunc.hpp"
44 > #include "applications/staticProps/RadialDistrFunc.hpp"
45   namespace oopse {
46  
47   class GofR : public RadialDistrFunc {
48      
49      public:
50 <        GofR(SimInfo* info, const std::string& filename, const std::string& sele1, const std::string& sele2);
50 >        GofR(SimInfo* info, const std::string& filename, const std::string& sele1,
51 >            const std::string& sele2, double len, int nrbins);
52  
52
53        void setNRBins(int nbins) {
54            assert(nbins > 0);
55            nRBins_ = nbins;
56            deltaR_ = len_ / nRBins_;
57            histogram_.resize(nRBins_);
58            avgGofr_.resize(nRBins_);
59        }
60
53          int getNRBins() {
54              return nRBins_;
55          }
56 +
57 +        double getLength() {
58 +            return len_;
59 +        }
60          
61      private:
62  
# Line 77 | Line 73 | class GofR : public RadialDistrFunc {
73          
74          std::vector<int> histogram_;
75          std::vector<double> avgGofr_;
80        int npairs_;
76   };
77  
78   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines