Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
566 changes: 407 additions & 159 deletions doc/cpptraj.lyx

Large diffs are not rendered by default.

192 changes: 111 additions & 81 deletions src/Action_Spam.cpp

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion src/Action_Spam.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#include "Vec3.h"
#include "Timer.h"
#include "PairList.h"
// Forward declares
class DataSet_Vector_Scalar;
/**
SPAM is a water profiling technique developed by Guanglei Cui at
GlaxoSmithKline (GSK). The original implementation involved a set of specialized
Expand Down Expand Up @@ -52,6 +54,7 @@ class Action_Spam: public Action {
Action::RetType DoPureWater(int, Frame const&);
Action::RetType DoSPAM(int, Frame&);

int GetPeaks(std::string const&, DataSetList const&);
typedef bool (Action_Spam::*FxnType)(Vec3, Vec3, double) const;
bool inside_box(Vec3, Vec3, double) const;
bool inside_sphere(Vec3, Vec3, double) const;
Expand Down Expand Up @@ -86,11 +89,12 @@ class Action_Spam: public Action {
DataSet* ds_ds_; ///< Hold final -T*S values for each peak
Parray peakFrameData_; ///< A list of all omitted frames for each peak
DSarray myDSL_; ///< Hold energy data sets
Varray peaks_; ///< List of each peak location
Varray comlist_; ///< For given frame, each residue C.O.M. coords.
Rarray solvent_residues_; ///< List of each solvent residue
int Nframes_; ///< Total number of frames
bool overflow_; ///< True if cutoff overflowed our box coordinates
DataSetList peaksdsl_; ///< Will allocate DataSet for peaks data if loading from a file.
DataSet_Vector_Scalar* peaksData_; ///< Hold peaks DataSet
// Timers
Timer t_action_;
Timer t_resCom_;
Expand Down
Loading