Skip to content

Instantly share code, notes, and snippets.

@spinachgui
Created March 11, 2010 18:28
Show Gist options
  • Save spinachgui/329481 to your computer and use it in GitHub Desktop.
Save spinachgui/329481 to your computer and use it in GitHub Desktop.
+ inline void GetTotalInteractionAsMatrixOpt(Interaction::SubType st,
+ Matrix3** mat,
+ energy* xx,energy* yy, energy* zz) const {
+ *mat=mOptList[st].matrix;
+ *xx=mOptList[st].xx;
+ *yy=mOptList[st].yy;
+ *zz=mOptList[st].zz;
+ }
+ inline void GetTotalInteractionAsTraceOpt(Interaction::SubType st, energy* trace) const {
+ *trace=mOptList[st].trace;
+ }
+
private:
std::vector<Interaction*> mInter;
Vector3l mPosition;
std::string mLabel;
long mElement;
std::vector<long> mIsotopes;
+
+ struct OptRecord {
+ Matrix3 matrix;
+ energy xx;
+ energy yy;
+ energy zz;
+ energy trace;
+ };
+ std::vector<OptRecord> mOptList;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment