#include <LArVoxelID.h>
Definition at line 54 of file LArVoxelID.h.
sim::LArVoxelID::LArVoxelID |
( |
const int |
x = 0 , |
|
|
const int |
y = 0 , |
|
|
const int |
z = 0 , |
|
|
const int |
t = 0 |
|
) |
| |
sim::LArVoxelID::LArVoxelID |
( |
const TLorentzVector & |
v | ) |
|
|
explicit |
Standard constructors.
Definition at line 42 of file LArVoxelID.cxx.
45 fbins = std::vector<int>(4);
47 for ( Ssiz_t
a = 0;
a != 4; ++
a ){
auto coord(Vector &v, unsigned int n) noexcept
Returns an object to manage the coordinate n of a vector.
sim::LArVoxelID::LArVoxelID |
( |
const double |
x, |
|
|
const double |
y, |
|
|
const double |
z, |
|
|
const double |
t |
|
) |
| |
Definition at line 53 of file LArVoxelID.cxx.
58 fbins = std::vector<int>(4);
int ZAxisToBin(const double value) const
int XAxisToBin(const double value) const
int TAxisToBin(const double value) const
int YAxisToBin(const double value) const
sim::LArVoxelID::~LArVoxelID |
( |
| ) |
|
|
virtual |
sim::LArVoxelID::operator TLorentzVector |
( |
| ) |
const |
sim::LArVoxelID::operator TVector3 |
( |
| ) |
const |
The comparison operator. This a key function, since it establishes the sort order of the voxels in a list.
Definition at line 135 of file LArVoxelID.cxx.
double sim::LArVoxelID::operator[] |
( |
const int |
i | ) |
const |
double sim::LArVoxelID::T |
( |
| ) |
const |
Definition at line 93 of file LArVoxelID.cxx.
double TBinToAxis(const int value) const
int sim::LArVoxelID::TBin |
( |
| ) |
const |
|
inline |
double sim::LArVoxelID::X |
( |
| ) |
const |
The accessors I expect to be used: The values of the co-ordinates at the bin centers.
Definition at line 72 of file LArVoxelID.cxx.
double XBinToAxis(const int value) const
int sim::LArVoxelID::XBin |
( |
| ) |
const |
|
inline |
double sim::LArVoxelID::Y |
( |
| ) |
const |
Definition at line 79 of file LArVoxelID.cxx.
double YBinToAxis(const int value) const
int sim::LArVoxelID::YBin |
( |
| ) |
const |
|
inline |
double sim::LArVoxelID::Z |
( |
void |
| ) |
const |
Definition at line 86 of file LArVoxelID.cxx.
double ZBinToAxis(const int value) const
int sim::LArVoxelID::ZBin |
( |
| ) |
const |
|
inline |
std::ostream& operator<< |
( |
std::ostream & |
output, |
|
|
const LArVoxelID & |
id |
|
) |
| |
|
friend |
Put the contents on the output stream. We have a choice: write the bin number, or write the position represented by the bins. For now, let's pick writing the positions.
Definition at line 121 of file LArVoxelID.cxx.
The documentation for this class was generated from the following files: