#include <LArVoxelCalculator.h>
Definition at line 33 of file LArVoxelCalculator.h.
sim::LArVoxelCalculator::LArVoxelCalculator |
( |
fhicl::ParameterSet const & |
pset | ) |
|
Definition at line 27 of file LArVoxelCalculator.cc.
29 pset.get<
double>(
"VoxelSizeY"),
30 pset.get<
double>(
"VoxelSizeZ"),
31 pset.get<
double>(
"VoxelSizeT")}
33 pset.get<
double>(
"VoxelOffsetY"),
34 pset.get<
double>(
"VoxelOffsetZ"),
35 pset.get<
double>(
"VoxelOffsetT")}
vector_type const m_voxelOffset
vector_type const m_voxelSize
The sizes of the voxels in (x,y,z,t). Units are (mm,ns).
int sim::LArVoxelCalculator::AxisToBin |
( |
const int |
axis, |
|
|
const double |
coord |
|
) |
| const |
Convert a co-ordinate axis (x, y, z, or t) into a bin number. The first argument is the axis (x=0, y=1, z=2, t=3) and the second is the value on that axis.
Definition at line 51 of file LArVoxelCalculator.cc.
vector_type const m_voxelOffset
vector_type const m_voxelSize
The sizes of the voxels in (x,y,z,t). Units are (mm,ns).
auto coord(Vector &v, unsigned int n) noexcept
Returns an object to manage the coordinate n of a vector.
double sim::LArVoxelCalculator::BinToAxis |
( |
const int |
axis, |
|
|
const int |
bin |
|
) |
| const |
Get the value of an axis at the center of the given bin. The first argument is the axis (x=0, y=1, z=2, t=3) and the second is the bin number on that axis.
Definition at line 64 of file LArVoxelCalculator.cc.
vector_type const m_voxelOffset
vector_type const m_voxelSize
The sizes of the voxels in (x,y,z,t). Units are (mm,ns).
constexpr details::BinObj< T > bin(T value)
Returns a wrapper to print the specified data in binary format.
double sim::LArVoxelCalculator::EnergyCut |
( |
| ) |
const |
|
inline |
The energy in a voxel must be greater than this cut for it to be written to the output file.
Definition at line 50 of file LArVoxelCalculator.h.
double sim::LArVoxelCalculator::SuggestedStepSize |
( |
| ) |
const |
Returns a step size that's reasonable to use so that each segment of a track will be contained within a single voxel.
Returns a Monte-Carlo step size that's reasonable to use so that each segment of a track will be contained within a single voxel.
Definition at line 42 of file LArVoxelCalculator.cc.
vector_type const m_voxelSize
The sizes of the voxels in (x,y,z,t). Units are (mm,ns).
int sim::LArVoxelCalculator::TAxisToBin |
( |
const double |
value | ) |
const |
|
inline |
double sim::LArVoxelCalculator::TBinToAxis |
( |
const int |
value | ) |
const |
|
inline |
double sim::LArVoxelCalculator::VoxelOffsetT |
( |
| ) |
const |
|
inline |
double sim::LArVoxelCalculator::VoxelOffsetX |
( |
| ) |
const |
|
inline |
double sim::LArVoxelCalculator::VoxelOffsetY |
( |
| ) |
const |
|
inline |
double sim::LArVoxelCalculator::VoxelOffsetZ |
( |
| ) |
const |
|
inline |
double sim::LArVoxelCalculator::VoxelSizeT |
( |
| ) |
const |
|
inline |
Definition at line 42 of file LArVoxelCalculator.h.
vector_type const m_voxelSize
The sizes of the voxels in (x,y,z,t). Units are (mm,ns).
double sim::LArVoxelCalculator::VoxelSizeX |
( |
| ) |
const |
|
inline |
Access to voxel dimensions and offsets.
Definition at line 39 of file LArVoxelCalculator.h.
vector_type const m_voxelSize
The sizes of the voxels in (x,y,z,t). Units are (mm,ns).
double sim::LArVoxelCalculator::VoxelSizeY |
( |
| ) |
const |
|
inline |
Definition at line 40 of file LArVoxelCalculator.h.
vector_type const m_voxelSize
The sizes of the voxels in (x,y,z,t). Units are (mm,ns).
double sim::LArVoxelCalculator::VoxelSizeZ |
( |
| ) |
const |
|
inline |
Definition at line 41 of file LArVoxelCalculator.h.
vector_type const m_voxelSize
The sizes of the voxels in (x,y,z,t). Units are (mm,ns).
int sim::LArVoxelCalculator::XAxisToBin |
( |
const double |
value | ) |
const |
|
inline |
Provide an alternate access to the above routine with individual routines for the axes:
Definition at line 63 of file LArVoxelCalculator.h.
int AxisToBin(const int, const double) const
double sim::LArVoxelCalculator::XBinToAxis |
( |
const int |
value | ) |
const |
|
inline |
Provide an alternate access to the above routine with individual routines for the axes:
Definition at line 75 of file LArVoxelCalculator.h.
double BinToAxis(const int, const int) const
int sim::LArVoxelCalculator::YAxisToBin |
( |
const double |
value | ) |
const |
|
inline |
double sim::LArVoxelCalculator::YBinToAxis |
( |
const int |
value | ) |
const |
|
inline |
int sim::LArVoxelCalculator::ZAxisToBin |
( |
const double |
value | ) |
const |
|
inline |
double sim::LArVoxelCalculator::ZBinToAxis |
( |
const int |
value | ) |
const |
|
inline |
double const sim::LArVoxelCalculator::m_energyCut |
|
private |
The total amount of energy in a voxel must be greater than this value for it to be written to the output.
Definition at line 93 of file LArVoxelCalculator.h.
vector_type const sim::LArVoxelCalculator::m_voxelOffset |
|
private |
The offsets of the voxel binning from the origin in (x,y,z,t). Units are (mm,ns).
Definition at line 89 of file LArVoxelCalculator.h.
The documentation for this class was generated from the following files: