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

Comparing trunk/OOPSE-4/src/applications/staticProps/GofRAngle.cpp (file contents):
Revision 1995 by tim, Thu Feb 10 22:37:21 2005 UTC vs.
Revision 2012 by tim, Sun Feb 13 20:36:24 2005 UTC

# Line 100 | Line 100 | void GofRAngle::collectHistogram(StuntDouble* sd1, Stu
100      double distance = r12.length();
101      int whichRBin = distance / deltaR_;
102  
103 <    
104 <    double cosAngle = evaluateAngle(sd1, sd2);
105 <    double halfBin = (nAngleBins_ - 1) * 0.5;
106 <    int whichThetaBin = halfBin * (cosAngle + 1.0);
107 <    ++histogram_[whichRBin][whichThetaBin];
108 <    
109 <    ++npairs_;
103 >    if (distance <= len_) {
104 >        double cosAngle = evaluateAngle(sd1, sd2);
105 >        double halfBin = (nAngleBins_ - 1) * 0.5;
106 >        int whichThetaBin = halfBin * (cosAngle + 1.0);
107 >        ++histogram_[whichRBin][whichThetaBin];
108 >        
109 >        ++npairs_;
110 >    }
111   }
112  
113   void GofRAngle::writeRdf() {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines