| 79 |
|
} |
| 80 |
|
|
| 81 |
|
|
| 82 |
< |
void GofXyz::initalizeHistogram() { |
| 82 |
> |
void GofXyz::initializeHistogram() { |
| 83 |
|
//calculate the center of mass of the molecule of selected stuntdouble in selection1 |
| 84 |
|
|
| 85 |
|
if (!evaluator3_.isDynamic()) { |
| 140 |
|
|
| 141 |
|
Vector3d newR12 = i->second * r12; |
| 142 |
|
// x, y and z's possible values range -halfLen_ to halfLen_ |
| 143 |
< |
int xbin = (newR12.x() + halfLen_) / deltaR_; |
| 144 |
< |
int ybin = (newR12.y() + halfLen_) / deltaR_; |
| 145 |
< |
int zbin = (newR12.z() + halfLen_) / deltaR_; |
| 143 |
> |
int xbin = int((newR12.x() + halfLen_) / deltaR_); |
| 144 |
> |
int ybin = int((newR12.y() + halfLen_) / deltaR_); |
| 145 |
> |
int zbin = int((newR12.z() + halfLen_) / deltaR_); |
| 146 |
|
|
| 147 |
|
if (xbin < nRBins_ && xbin >=0 && |
| 148 |
|
ybin < nRBins_ && ybin >= 0 && |