43#include "applications/dynamicProps/MPFrameTimeCorrFunc.hpp"
49 MPFrameTimeCorrFunc<T>::MPFrameTimeCorrFunc(SimInfo* info,
50 const std::string & filename,
51 const std::string & sele1,
52 const std::string & sele2,
54 : MultipassCorrFunc<T>(info, filename, sele1, sele2, storageLayout) {
55 this->autoCorrFunc_ =
true;
59 void MPFrameTimeCorrFunc<T>::computeFrame(
int istep) {
61 if (this->evaluator1_.isDynamic()) {
62 this->seleMan1_.setSelectionSet(this->evaluator1_.evaluate());
63 this->validateSelection(this->seleMan1_);
66 if (this->uniqueSelections_ && this->evaluator2_.isDynamic()) {
67 this->seleMan2_.setSelectionSet(this->evaluator2_.evaluate());
68 this->validateSelection(this->seleMan2_);
71 computeProperty(istep);
75 void MPFrameTimeCorrFunc<T>::correlateFrames(
int frame1,
int frame2,
80 corrVal = calcCorrVal(frame1, frame2);
81 this->histogram_[timeBin] += corrVal;
82 this->count_[timeBin]++;
85 template class MPFrameTimeCorrFunc<RealType>;
86 template class MPFrameTimeCorrFunc<Vector3d>;
87 template class MPFrameTimeCorrFunc<Mat3x3d>;
88 template class MPFrameTimeCorrFunc<DynamicVector<RealType> >;
This basic Periodic Table class was originally taken from the data.cpp file in OpenBabel.