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

Comparing trunk/OOPSE-4/src/applications/staticProps/GofXyz.hpp (file contents):
Revision 1994 by tim, Thu Feb 10 18:14:03 2005 UTC vs.
Revision 2048 by tim, Thu Feb 17 19:50:30 2005 UTC

# Line 41 | Line 41
41   #ifndef APPLICATIONS_STATICPROPS_GOFXYZ_HPP
42   #define APPLICATIONS_STATICPROPS_GOFXYZ_HPP
43  
44 < #include "application/staticProps/RadialDistrFunc.hpp"
44 > #include "applications/staticProps/RadialDistrFunc.hpp"
45   namespace oopse {
46  
47   class GofXyz : public RadialDistrFunc {
48      
49      public:
50 <        GofXyz(SimInfo* info, const std::string& filename, const std::string& sele1, const std::string& sele2);
50 >        GofXyz(SimInfo* info, const std::string& filename, const std::string& sele1, const std::string& sele2, double len, int nrbins);
51  
52 <        void setNRBins(int nbins) {
53 <            assert(nbins > 0);
54 <            nRBins_ = nbins;
55 <            deltaR_ = len_ / nRBins_;
56 <            
57 <            histogram_.resize(nRBins_);
58 <            for (int i = 0 ; i < nRBins_; ++i) {
59 <                histogram_[i].resize(nRBins_);
60 <                for(int j = 0; j < nRBins_; ++j) {
61 <                    histogram_[i][j].resize(nRBins_);
62 <                }
63 <            }            
52 >        int getNRBins() {
53 >            return nRBins_;
54          }
65
55          
56 +        double getLength() {
57 +            return len_;
58 +        }
59 +        
60      private:
61  
62          virtual void preProcess();
63 +        void initalizeHistogram();
64          virtual void collectHistogram(StuntDouble* sd1, StuntDouble* sd2);
71        void processHistogram();
65          virtual void writeRdf();
66  
67 +        Vector3d getMolCom(StuntDouble* sd);
68 +        
69 +        //virtual void validateSelection1(SelectionManager& sman);
70 +        
71          double len_;
72 +        double halfLen_;
73          int nRBins_;
74          double deltaR_;
75          
76          std::vector<std::vector<std::vector<int> > > histogram_;
77  
78 <        int npairs_;
78 >        struct CoorSet {
79 >            Vector3d xaxis;
80 >            Vector3d yaxis;
81 >            Vector3d zaxis;
82 >        };
83 >
84 >        std::map<int, CoorSet> coorSets_;
85 >        std::vector<Molecule*> atom2Mol_;
86   };
87  
88  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines