43#include "applications/dynamicProps/FrameTimeCorrFunc.hpp"
47 FrameTimeCorrFunc::FrameTimeCorrFunc(SimInfo * info,
48 const std::string & filename,
49 const std :: string & sele1,
50 const std :: string & sele2,
51 int storageLayout,
long long int memSize)
52 : TimeCorrFunc(info, filename, sele1, sele2, storageLayout, memSize){
55 void FrameTimeCorrFunc::correlateFrames(
int frame1,
int frame2) {
56 Snapshot* snapshot1 = bsMan_->getSnapshot(frame1);
57 Snapshot* snapshot2 = bsMan_->getSnapshot(frame2);
58 assert(snapshot1 && snapshot2);
60 RealType time1 = snapshot1->getTime();
61 RealType time2 = snapshot2->getTime();
63 int timeBin = int ((time2 - time1) /deltaTime_ + 0.5);
65 RealType corrVal = calcCorrVal(frame1, frame2);
66 histogram_[timeBin] += corrVal;
This basic Periodic Table class was originally taken from the data.cpp file in OpenBabel.