19#ifndef _LatticeCell_HXX_
20#define _LatticeCell_HXX_
22#include <libValErr/ValErr.hxx>
152 void SetLatticeRange(
int Xmin = 0,
int Xmax = 0,
int Ymin = 0,
int Ymax = 0,
int Zmin = 0,
int Zmax = 0);
202 int FillLattice(
int Universe,
int *Pos =
nullptr,
int Trans = 0);
Header file for Cell class.
Header file for Monte-Carlo Source abstract class.
Header file for PinCell class.
Header file for Shape class and Shape_ptr type.
Header file for TReference class and Reference_ptr template.
A Cell is composed from a Shape and a Material.
Definition Cell.hxx:84
Shape_ptr fShape
Shape of the Cell.
Definition Cell.hxx:611
A LatticeCell is used to fill a cell with universes..
Definition LatticeCell.hxx:69
bool IsLatticeFullyFilled()
verify that all lattice elements have been filled ; print a warning if not.
Definition LatticeCell.cxx:170
int fNy
number of element along Y
Definition LatticeCell.hxx:269
int GetMinLatticeRange_Z()
Definition LatticeCell.hxx:179
vector< double > fOrigin
the lattice origin (i.e. of the ShapeGenerator)
Definition LatticeCell.hxx:273
bool fIsInit
Whether or not fLattice has been initialiazed.
Definition LatticeCell.hxx:271
int GetNumberOfLatticeElement_Z()
Definition LatticeCell.hxx:137
vector< vector< vector< int > > > fLattice
the lattice array containing universe number
Definition LatticeCell.hxx:266
int GetMinLatticeRange_Y()
Definition LatticeCell.hxx:171
int fNx
number of element along X
Definition LatticeCell.hxx:268
void SetNumberOfLatticeElement(int Nx, int Ny, int Nz=1)
Definition of the Lattice size (number of elements).
Definition LatticeCell.cxx:93
int GetMinLatticeRange_X()
Definition LatticeCell.hxx:163
bool fIsFilled
Whether or not fLattice has been filled.
Definition LatticeCell.hxx:272
int GetMaxLatticeRange_Y()
Definition LatticeCell.hxx:175
int GetNumberOfLatticeElement_Y()
Definition LatticeCell.hxx:133
void SetLatticeRange(int Xmin=0, int Xmax=0, int Ymin=0, int Ymax=0, int Zmin=0, int Zmax=0)
Definition of the Lattice range (extension).
Definition LatticeCell.cxx:122
vector< vector< vector< int > > > & GetTransLattice()
Definition LatticeCell.hxx:252
int fNz
number of element along Z
Definition LatticeCell.hxx:270
vector< vector< int > > & GetLatticeElementRange()
Get the Lattice range vector.
Definition LatticeCell.hxx:159
vector< double > GetPitch()
Returns a pitch vector of the Lattice.
Definition LatticeCell.cxx:292
~LatticeCell() override
destructor
int GetUniverse() override
Definition LatticeCell.hxx:240
int GetNumberOfLatticeElement_X()
Definition LatticeCell.hxx:129
vector< vector< int > > & GetLatticeRange()
Definition LatticeCell.hxx:248
int GetMaxLatticeRange_Z()
Definition LatticeCell.hxx:183
vector< vector< vector< int > > > fTransLattice
the lattice array containing transformation number
Definition LatticeCell.hxx:267
Cell * Clone() override
Definition LatticeCell.hxx:107
int FillLattice(int Universe, int *Pos=nullptr, int Trans=0)
Fill a Cell Lattice with Universe.
Definition LatticeCell.cxx:207
void InitLattice()
initialize fLattice &fTransLattice vector
Definition LatticeCell.cxx:146
vector< vector< int > > fLatticeRange
the lattice range if exists
Definition LatticeCell.hxx:265
vector< vector< vector< int > > > & GetLattice()
Definition LatticeCell.hxx:244
vector< double > GetOrigin() const
Definition LatticeCell.hxx:236
int GetMaxLatticeRange_X()
Definition LatticeCell.hxx:167
A Material constituing a Cell.
Definition Material.hxx:83
PinCell class allows to create cylindrical cell set included as Matrioshka.
Definition PinCell.hxx:53