19#ifndef _MURETALLYBIN_HXX_
20#define _MURETALLYBIN_HXX_
107 virtual string Print(
int BeforeRparenthesis = 0) = 0;
157 void SetVolume(
double V,
int i = 0,
bool Inc =
false);
186 MureTallyBin(
int bintype, vector < double > vol,
double surf);
Header file for Monte-Carlo Source abstract class.
const double CubicMeter2CubicCentimeter
Definition MureTallyBin.hxx:37
TallyType
Define tally type according to MCNP notation (1=Current/surf, 2=flux/surf, 4=flux/cell,...
Definition MureTallyBin.hxx:41
@ kCellFlux
Definition MureTallyBin.hxx:41
@ kSurfaceFlux
Definition MureTallyBin.hxx:41
@ kSurfaceCurrent
Definition MureTallyBin.hxx:41
@ kFissionEnergyDeposition
Definition MureTallyBin.hxx:42
@ kEnergyDeposition
Definition MureTallyBin.hxx:42
const double SquareMeter2SquareCentimeter
Definition MureTallyBin.hxx:38
A Cell is composed from a Shape and a Material.
Definition Cell.hxx:84
Define a general Tally Bin.
Definition MureTallyBin.hxx:62
double GetVolume(int i)
retruns the ith bin volume vector.
Definition MureTallyBin.hxx:125
bool IsUniverseBin()
Definition MureTallyBin.hxx:102
virtual string PrintVolume()
Print the Volume of the bin.
Definition MureTallyBin.cxx:75
vector< double > fVolume
bin volume vector (1 value except for LatticeBin or Universe)
Definition MureTallyBin.hxx:189
bool IsCellBin()
Definition MureTallyBin.hxx:98
void SetBinVolume(vector< double > V)
Set volume(s) to bin(s)
Definition MureTallyBin.cxx:134
vector< double > GetVolume()
retruns the bin volume vector.
Definition MureTallyBin.hxx:117
virtual MureTallyBin * Clone()=0
The "Virtual Copy Constructor".
bool fIsPinCellBin
if the cell type bin is from a PinCell
Definition MureTallyBin.hxx:191
virtual bool IsInBin(Cell *C)
Definition MureTallyBin.hxx:162
int GetType()
returns -1, 0, 1 or 2 in function of the bin type.
Definition MureTallyBin.hxx:86
int fBinType
type of the bin (-1=unknown, 0=surface, 1=cell, 2=universe)
Definition MureTallyBin.hxx:188
bool IsSurfaceBin()
Definition MureTallyBin.hxx:94
virtual string Print(int BeforeRparenthesis=0)=0
Print the MureTallyBin.
int GetNumberOfVolume()
Definition MureTallyBin.hxx:133
virtual void UpdateTallyBinVolume()=0
Reread all bins and assign necessary volume.
virtual bool NeedVolume()
Definition MureTallyBin.cxx:67
virtual bool IsLatticeBin()
Definition MureTallyBin.hxx:77
void SetVolume(double V, int i=0, bool Inc=false)
set the bin volume of ith partial bin.
Definition MureTallyBin.cxx:106
virtual bool IsGroupBin()
Definition MureTallyBin.hxx:73
virtual ~MureTallyBin()=default
Destructor.
bool IsPinCellBin()
Definition MureTallyBin.hxx:176
double GetSurface()
Definition MureTallyBin.hxx:129
virtual bool IsInBin(Shape_ptr S)
Definition MureTallyBin.hxx:166
virtual bool IsInBin(int num)
Definition MureTallyBin.hxx:158
MureTallyBin()
Normal Construcator.
Definition MureTallyBin.cxx:39
void SetPinCellBin(bool flag)
Definition MureTallyBin.hxx:180
void SetType(int type)
Definition MureTallyBin.hxx:90
virtual bool IsSimpleBin()
Definition MureTallyBin.hxx:69
void SetSurface(double S, bool Inc=false)
Set the bin area.
Definition MureTallyBin.cxx:96
virtual double RescanVolume()
Definition MureTallyBin.hxx:171
double fSurface
bin surface
Definition MureTallyBin.hxx:190
the namespace of the Standard C++