LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "LArVoxelCalculator.h"
Public Member Functions | |
LArVoxelCalculator (fhicl::ParameterSet const &pset, art::ActivityRegistry ®) | |
~LArVoxelCalculator () | |
Destructor. More... | |
void | reconfigure (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 | m_voxelSize |
The sizes of the voxels in (x,y,z,t). Units are (mm,ns). More... | |
vector_type | m_voxelOffset |
double | m_energyCut |
Definition at line 36 of file LArVoxelCalculator.h.
|
private |
Definition at line 89 of file LArVoxelCalculator.h.
sim::LArVoxelCalculator::LArVoxelCalculator | ( | fhicl::ParameterSet const & | pset, |
art::ActivityRegistry & | reg | ||
) |
Definition at line 26 of file LArVoxelCalculator_service.cc.
References reconfigure().
sim::LArVoxelCalculator::~LArVoxelCalculator | ( | ) |
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 80 of file LArVoxelCalculator_service.cc.
References m_voxelOffset, and m_voxelSize.
Referenced by EnergyCut(), TAxisToBin(), XAxisToBin(), YAxisToBin(), and ZAxisToBin().
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 93 of file LArVoxelCalculator_service.cc.
References DEFINE_ART_SERVICE, m_voxelOffset, and m_voxelSize.
Referenced by TAxisToBin(), TBinToAxis(), XBinToAxis(), YBinToAxis(), and ZBinToAxis().
|
inline |
The energy in a voxel must be greater than this cut for it to be written to the output file.
Definition at line 57 of file LArVoxelCalculator.h.
References AxisToBin(), m_energyCut, and SuggestedStepSize().
void sim::LArVoxelCalculator::reconfigure | ( | fhicl::ParameterSet const & | pset | ) |
Definition at line 41 of file LArVoxelCalculator_service.cc.
References fhicl::ParameterSet::get(), m_energyCut, m_voxelOffset, m_voxelSize, voxelSizeX, voxelSizeY, and voxelSizeZ.
Referenced by LArVoxelCalculator().
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 71 of file LArVoxelCalculator_service.cc.
References m_voxelSize, and min.
Referenced by EnergyCut().
|
inline |
Definition at line 73 of file LArVoxelCalculator.h.
References AxisToBin(), and BinToAxis().
Referenced by sim::LArVoxelID::LArVoxelID().
|
inline |
Definition at line 85 of file LArVoxelCalculator.h.
References BinToAxis().
Referenced by sim::LArVoxelID::T().
|
inline |
|
inline |
Definition at line 50 of file LArVoxelCalculator.h.
References m_voxelOffset.
Referenced by larg4::LArVoxelReadoutGeometry::Construct().
|
inline |
Definition at line 51 of file LArVoxelCalculator.h.
References m_voxelOffset.
Referenced by larg4::LArVoxelReadoutGeometry::Construct().
|
inline |
Definition at line 52 of file LArVoxelCalculator.h.
References m_voxelOffset.
Referenced by larg4::LArVoxelReadoutGeometry::Construct().
|
inline |
Definition at line 49 of file LArVoxelCalculator.h.
References m_voxelSize.
|
inline |
Access to voxel dimensions and offsets.
Definition at line 46 of file LArVoxelCalculator.h.
References m_voxelSize.
Referenced by larg4::LArVoxelReadoutGeometry::Construct(), and larg4::ISCalculationSeparate::Initialize().
|
inline |
Definition at line 47 of file LArVoxelCalculator.h.
References m_voxelSize.
Referenced by larg4::LArVoxelReadoutGeometry::Construct(), and larg4::ISCalculationSeparate::Initialize().
|
inline |
Definition at line 48 of file LArVoxelCalculator.h.
References m_voxelSize.
Referenced by larg4::LArVoxelReadoutGeometry::Construct(), and larg4::ISCalculationSeparate::Initialize().
|
inline |
Provide an alternate access to the above routine with individual routines for the axes:
Definition at line 70 of file LArVoxelCalculator.h.
References AxisToBin().
Referenced by sim::LArVoxelID::LArVoxelID().
|
inline |
Provide an alternate access to the above routine with individual routines for the axes:
Definition at line 82 of file LArVoxelCalculator.h.
References BinToAxis().
Referenced by sim::LArVoxelID::X().
|
inline |
Definition at line 71 of file LArVoxelCalculator.h.
References AxisToBin().
Referenced by sim::LArVoxelID::LArVoxelID().
|
inline |
Definition at line 83 of file LArVoxelCalculator.h.
References BinToAxis().
Referenced by sim::LArVoxelID::Y().
|
inline |
Definition at line 72 of file LArVoxelCalculator.h.
References AxisToBin().
Referenced by sim::LArVoxelID::LArVoxelID().
|
inline |
Definition at line 84 of file LArVoxelCalculator.h.
References BinToAxis().
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 100 of file LArVoxelCalculator.h.
Referenced by EnergyCut(), and reconfigure().
|
private |
The offsets of the voxel binning from the origin in (x,y,z,t). Units are (mm,ns).
Definition at line 96 of file LArVoxelCalculator.h.
Referenced by AxisToBin(), BinToAxis(), reconfigure(), VoxelOffsetT(), VoxelOffsetX(), VoxelOffsetY(), and VoxelOffsetZ().
|
private |
The sizes of the voxels in (x,y,z,t). Units are (mm,ns).
Definition at line 92 of file LArVoxelCalculator.h.
Referenced by AxisToBin(), BinToAxis(), reconfigure(), SuggestedStepSize(), VoxelSizeT(), VoxelSizeX(), VoxelSizeY(), and VoxelSizeZ().