Define group a cell or surface bin. More...
#include <Tally.hxx>
Public Member Functions | |
GroupBin (const GroupBin &b) | |
Copy constructor. More... | |
GroupBin (Cell *C) | |
Build a Group Bin of type Cell. More... | |
GroupBin (Shape_ptr S) | |
Build a Group Bin of type Surface. More... | |
GroupBin (TallyBin *theTallyBin) | |
Build a Group Bin of type of TallyBin. More... | |
GroupBin (int universe) | |
Build a Group Bin based on the universe shorthand, for cell type only. More... | |
TallyBin * | Clone () |
Clone method. More... | |
~GroupBin () | |
Destructor. More... | |
bool | IsGroupBin () |
This is a GroupBin. More... | |
void | Add (Cell *C) |
Add a Cell to a Cell type GroupBin. More... | |
void | Add (Shape_ptr S) |
Add a Surface to a Surface type GroupBin. More... | |
void | Add (TallyBin *theTallyBin) |
Add a TallyBin to a GroupBin if type are compatible. More... | |
void | Add (int universe) |
Add a universe shortcut as bin to a GroupBin if type are compatible. More... | |
string | Print (int BeforeRparenthesis=0) |
Print the GroupBin 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 | IsSimpleBin () |
if the TallyBin is a SimpleBin More... | |
virtual bool | IsLatticeBin () |
int | GetCellType () |
returns -1, 0, 1 in function of the bin type. More... | |
virtual string | PrintVolume () |
Print the Volume of the bin in MCNP. 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< TallyBin * > | fBin |
the TallyBin vector 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 group a cell or surface bin.
That is to say, only one bin for a list of Cells or Surfaces.
Note that a GroupBin is either a Cell type either a Surface type but not both. Their is no default constructor!
GroupBin::GroupBin | ( | const GroupBin & | b | ) |
Copy constructor.
GroupBin::GroupBin | ( | int | universe | ) |
Build a Group Bin based on the universe shorthand, for cell type only.
GroupBin::~GroupBin | ( | ) |
Destructor.
void GroupBin::Add | ( | int | universe | ) |
Add a universe shortcut as bin to a GroupBin if type are compatible.
|
virtual |
whether or not the cell/suface "num" is in the bin
Reimplemented from TallyBin.
|
virtual |