LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "LArVoxelCalculator.h"
Public Member Functions | |
LArVoxelCalculator (fhicl::ParameterSet const &pset) | |
double | VoxelSizeX () const |
Access to voxel dimensions and offsets. More... | |
double | VoxelSizeY () const |
double | VoxelSizeZ () const |
double | VoxelSizeT () const |
double | VoxelOffsetX () const |
double | VoxelOffsetY () const |
double | VoxelOffsetZ () const |
double | VoxelOffsetT () const |
double | EnergyCut () const |
double | SuggestedStepSize () const |
int | AxisToBin (const int, const double) const |
int | XAxisToBin (const double value) const |
int | YAxisToBin (const double value) const |
int | ZAxisToBin (const double value) const |
int | TAxisToBin (const double value) const |
double | BinToAxis (const int, const int) const |
double | XBinToAxis (const int value) const |
double | YBinToAxis (const int value) const |
double | ZBinToAxis (const int value) const |
double | TBinToAxis (const int value) const |
Private Types | |
typedef std::vector< double > | vector_type |
Private Attributes | |
vector_type const | m_voxelSize |
The sizes of the voxels in (x,y,z,t). Units are (mm,ns). More... | |
vector_type const | m_voxelOffset |
double const | m_energyCut |
Definition at line 33 of file LArVoxelCalculator.h.
|
private |
Definition at line 80 of file LArVoxelCalculator.h.
sim::LArVoxelCalculator::LArVoxelCalculator | ( | fhicl::ParameterSet const & | pset | ) |
Definition at line 27 of file LArVoxelCalculator.cc.
References fhicl::ParameterSet::get(), m_energyCut, and m_voxelOffset.
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.
References m_voxelOffset, and m_voxelSize.
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 63 of file LArVoxelCalculator.cc.
References m_voxelOffset, and m_voxelSize.
|
inline |
The energy in a voxel must be greater than this cut for it to be written to the output file.
Definition at line 49 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.
References m_voxelSize.
|
inline |
Definition at line 65 of file LArVoxelCalculator.h.
Referenced by sim::LArVoxelID::LArVoxelID().
|
inline |
Definition at line 77 of file LArVoxelCalculator.h.
Referenced by sim::LArVoxelID::T().
|
inline |
Definition at line 45 of file LArVoxelCalculator.h.
|
inline |
Definition at line 42 of file LArVoxelCalculator.h.
Referenced by larg4::LArVoxelReadoutGeometry::Construct().
|
inline |
Definition at line 43 of file LArVoxelCalculator.h.
Referenced by larg4::LArVoxelReadoutGeometry::Construct().
|
inline |
Definition at line 44 of file LArVoxelCalculator.h.
Referenced by larg4::LArVoxelReadoutGeometry::Construct().
|
inline |
Definition at line 41 of file LArVoxelCalculator.h.
|
inline |
Access to voxel dimensions and offsets.
Definition at line 38 of file LArVoxelCalculator.h.
Referenced by larg4::LArVoxelReadoutGeometry::Construct(), larg4::ISCalculationCorrelated::ISCalculationCorrelated(), and larg4::ISCalculationSeparate::ISCalculationSeparate().
|
inline |
Definition at line 39 of file LArVoxelCalculator.h.
Referenced by larg4::LArVoxelReadoutGeometry::Construct(), larg4::ISCalculationCorrelated::ISCalculationCorrelated(), and larg4::ISCalculationSeparate::ISCalculationSeparate().
|
inline |
Definition at line 40 of file LArVoxelCalculator.h.
Referenced by larg4::LArVoxelReadoutGeometry::Construct(), larg4::ISCalculationCorrelated::ISCalculationCorrelated(), and larg4::ISCalculationSeparate::ISCalculationSeparate().
|
inline |
Provide an alternate access to the above routine with individual routines for the axes:
Definition at line 62 of file LArVoxelCalculator.h.
Referenced by sim::LArVoxelID::LArVoxelID().
|
inline |
Provide an alternate access to the above routine with individual routines for the axes:
Definition at line 74 of file LArVoxelCalculator.h.
Referenced by sim::LArVoxelID::X().
|
inline |
Definition at line 63 of file LArVoxelCalculator.h.
Referenced by sim::LArVoxelID::LArVoxelID().
|
inline |
Definition at line 75 of file LArVoxelCalculator.h.
Referenced by sim::LArVoxelID::Y().
|
inline |
Definition at line 64 of file LArVoxelCalculator.h.
Referenced by sim::LArVoxelID::LArVoxelID().
|
inline |
Definition at line 76 of file LArVoxelCalculator.h.
Referenced by sim::LArVoxelID::Z().
|
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 91 of file LArVoxelCalculator.h.
Referenced by LArVoxelCalculator().
|
private |
The offsets of the voxel binning from the origin in (x,y,z,t). Units are (mm,ns).
Definition at line 87 of file LArVoxelCalculator.h.
Referenced by AxisToBin(), BinToAxis(), and LArVoxelCalculator().
|
private |
The sizes of the voxels in (x,y,z,t). Units are (mm,ns).
Definition at line 83 of file LArVoxelCalculator.h.
Referenced by AxisToBin(), BinToAxis(), and SuggestedStepSize().