45#include "applications/dynamicProps/MeanDisplacement.hpp" 
   49#include "utils/Revision.hpp" 
   52  MeanDisplacement::MeanDisplacement(SimInfo* info, 
const std::string& filename,
 
   53                                     const std::string& sele1,
 
   54                                     const std::string& sele2) :
 
   55      ObjectACF<Vector3d>(info, filename, sele1, sele2) {
 
   56    setCorrFuncType(
"Mean Displacement");
 
   57    setOutputName(
getPrefix(dumpFilename_) + 
".meandisp");
 
   59    positions_.resize(nFrames_);
 
   63  int MeanDisplacement::computeProperty1(
int frame, StuntDouble* sd) {
 
   64    positions_[frame].push_back(sd->getPos());
 
   65    return positions_[frame].size() - 1;
 
   68  Vector3d MeanDisplacement::calcCorrVal(
int frame1, 
int frame2, 
int id1,
 
   70    Vector3d diff = positions_[frame2][id2] - positions_[frame1][id1];
 
This basic Periodic Table class was originally taken from the data.cpp file in OpenBabel.
 
std::string getPrefix(const std::string &str)