Created
March 11, 2010 18:28
-
-
Save spinachgui/329481 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ 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