108 (
GetSteps() == right.GetSteps()) );
129 if((0 <= xStep) && (xStep < fxSteps) &&
130 (0 <= yStep) && (yStep < fySteps) &&
131 (0 <= zStep) && (zStep < fzSteps) )
136 + zStep * (fxSteps * fySteps);
160 if((0 <= xStep) && (xStep < fxSteps) &&
161 (0 <= yStep) && (yStep < fySteps) &&
162 (0 <= zStep) && (zStep < fzSteps) )
167 + zStep * (fxSteps * fySteps);
190 if((0 <= xStep) && (xStep < fxSteps) &&
191 (0 <= yStep) && (yStep < fySteps) &&
192 (0 <= zStep) && (zStep < fzSteps) )
197 + zStep * (fxSteps * fySteps);
233 double xMax = VoxelSize[0] * (xStep+1) +
fLowerCorner[0];
235 double yMax = VoxelSize[1] * (yStep+1) +
fLowerCorner[1];
237 double zMax = VoxelSize[2] * (zStep+1) +
fLowerCorner[2];
241 return PhotonVoxel(xMin, xMax, yMin, yMax, zMin, zMax);
252 std::vector<int> ReturnVector;
253 ReturnVector.resize(3);
254 ReturnVector.at(0) = ID %
fxSteps ;
255 ReturnVector.at(1) = ((ID - ReturnVector.at(0) ) /
fxSteps) %
fySteps ;
process_name opflash particleana ie ie ie z
Vector GetVoxelSize() const
Returns a vector describing the span of a single voxel in x, y an z [cm].
process_name opflash particleana ie x
std::array< unsigned int, 3U > GetSteps() const
Returns the number of voxels along each of the three dimensions.
bool operator==(const PhotonVoxelDef &rhs) const
int GetVoxelID(Point const &p) const
Returns the ID of the voxel containing p, or -1 if none.
unsigned int GetNVoxels() const
Returns the total number of voxels in the volume.
process_name opflash particleana ie ie y
decltype(auto) GetRegionLowerCorner() const
Returns the volume vertex (type Point) with the lowest coordinates.
Point GetCenter() const
Returns the center of the voxel (type Point).
decltype(auto) GetLowerCorner() const
Returns the voxel vertex (type Point) with the lowest coordinates.
decltype(auto) GetRegionUpperCorner() const
Returns the volume vertex (type Point) with the highest coordinates.
bool IsLegalVoxelID(int) const
std::array< int, 3U > GetVoxelCoords(int ID) const
geo::Point_t fLowerCorner
geo::Point_t fUpperCorner
process_name largeant stream1 can override from command line with o or output physics producers generator N
decltype(auto) GetUpperCorner() const
Returns the voxel vertex (type Point) with the highest coordinates.
PhotonVoxel GetPhotonVoxel(int ID) const