Define a Simple Bin. More...
#include <Tally.hxx>
Public Member Functions | |
| SimpleBin (const SimpleBin &b) | |
| Copy constructor. More... | |
| SimpleBin (Cell *C) | |
| Build a Simple Bin of type Cell. More... | |
| SimpleBin (Shape_ptr S) | |
| Build a Simple Bin of type Surface. More... | |
| SimpleBin (int universe) | |
| Build a Simple Bin based on the universe shorthand, for cell type only. More... | |
| SimpleBin () | |
| Build a Simple Bin of type Surface, waiting for the AddSurface method to finish it. More... | |
| TallyBin * | Clone () |
| Clone method. More... | |
| virtual | ~SimpleBin () |
| Destructor. More... | |
| void | AddSurface (int num) |
| Set the number of the surface for the above Constructor. More... | |
| bool | IsSimpleBin () |
| This is a SimpleBin. More... | |
| string | Print (int BeforeRparenthesis=0) |
| Print the SimpleBin in MCNP. More... | |
| string | PrintVolume () |
| Print the SimpleBin Volume(s) for SD cards in MCNP. More... | |
| bool | IsInBin (int num) |
| whether or not the cell/suface "num" is in the bin More... | |
Public Member Functions inherited from TallyBin | |
| TallyBin (const TallyBin &b) | |
| Copy constructor. More... | |
| TallyBin () | |
| Normal Construcator. More... | |
| virtual | ~TallyBin () |
| virtual bool | IsGroupBin () |
| if the TallyBin is a GroupBin More... | |
| virtual bool | IsLatticeBin () |
| int | GetCellType () |
| returns -1, 0, 1 in function of the bin type. More... | |
| virtual bool | NeedVolume () |
| vector< double > | GetVolume () |
| retruns the bin volume vector. More... | |
| double | GetVolume (int i) |
| retruns the ith bin volume vector. More... | |
| double | GetSurface () |
| retruns the bin surface More... | |
| int | GetNumberOfVolume () |
| void | SetSurface (double S, bool Inc=false) |
| Set the bin surface. More... | |
| void | SetVolume (double V, int i=0, bool Inc=false) |
| set the bin volume of ith partial bin. More... | |
| void | SetBinVolume (vector< double > V) |
| Set volume(s) to bin(s) More... | |
Private Attributes | |
| vector< int > | fBin |
| the cell number or surface number(s) More... | |
| vector< bool > | fIsBinUniverse |
| flag to know if an element of fBin corresponds to a universe More... | |
Additional Inherited Members | |
Protected Member Functions inherited from TallyBin | |
| TallyBin (int celltype, vector< double > vol, double surf) | |
| used by Copy constructor of daugthers classes More... | |
Protected Attributes inherited from TallyBin | |
| int | fCellType |
| type of the bin (-1=unknown, 0=surface, 1=cell) More... | |
| vector< double > | fVolume |
| bin volume vector (1 value except for LatticeBin or Universe) More... | |
| double | fSurface |
| bin surface More... | |
Define a Simple Bin.
It could be either a Cell number or a Surface Number (in the latter case it could be a surface list if the Shape is defined by more than one surface.
| SimpleBin::SimpleBin | ( | const SimpleBin & | b | ) |
Copy constructor.
| SimpleBin::SimpleBin | ( | int | universe | ) |
Build a Simple Bin based on the universe shorthand, for cell type only.
| SimpleBin::SimpleBin | ( | ) |
Build a Simple Bin of type Surface, waiting for the AddSurface method to finish it.
|
inlinevirtual |
Destructor.
|
inline |
Set the number of the surface for the above Constructor.
|
virtual |
whether or not the cell/suface "num" is in the bin
Reimplemented from TallyBin.
|
virtual |
|
virtual |
|
private |
the cell number or surface number(s)
|
private |
flag to know if an element of fBin corresponds to a universe