#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 |
|
) |
| |
Expert constructor based on actual bins.
Definition at line 27 of file LArVoxelID.cxx.
32 fbins = std::vector<int>(4);
process_name opflash particleana ie ie ie z
process_name opflash particleana ie x
process_name opflash particleana ie ie y
sim::LArVoxelID::LArVoxelID |
( |
const TLorentzVector & |
v | ) |
|
|
explicit |
Standard constructors.
Definition at line 42 of file LArVoxelID.cxx.
45 fbins = std::vector<int>(4);
46 art::ServiceHandle<sim::LArVoxelCalculator const> voxelCalc;
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.
55 art::ServiceHandle<sim::LArVoxelCalculator const> voxelCalc;
58 fbins = std::vector<int>(4);
59 fbins[0] = voxelCalc->XAxisToBin(
x );
60 fbins[1] = voxelCalc->YAxisToBin(
y );
61 fbins[2] = voxelCalc->ZAxisToBin(
z );
62 fbins[3] = voxelCalc->TAxisToBin( t );
process_name opflash particleana ie ie ie z
process_name opflash particleana ie x
process_name opflash particleana ie ie y
sim::LArVoxelID::~LArVoxelID |
( |
| ) |
|
|
virtual |
sim::LArVoxelID::operator TLorentzVector |
( |
| ) |
const |
sim::LArVoxelID::operator TVector3 |
( |
| ) |
const |
bool sim::LArVoxelID::operator< |
( |
const LArVoxelID & |
other | ) |
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.
141 if (
fbins[3] < other.fbins[3] )
return true;
143 if (
fbins[3] == other.fbins[3] ){
144 if (
fbins[2] < other.fbins[2] )
return true;
147 if (
fbins[0] < other.fbins[0] )
return true;
149 if (
fbins[0] == other.fbins[0] ){
150 if (
fbins[1] < other.fbins[1] )
return true;
bool sim::LArVoxelID::operator== |
( |
const LArVoxelID & |
other | ) |
const |
Test for equality. Handy, but not usually necessary.
Definition at line 160 of file LArVoxelID.cxx.
162 if (
fbins[0] == other.fbins[0] &&
163 fbins[1] == other.fbins[1] &&
164 fbins[2] == other.fbins[2] &&
165 fbins[3] == other.fbins[3] )
double sim::LArVoxelID::operator[] |
( |
const int |
i | ) |
const |
double sim::LArVoxelID::T |
( |
| ) |
const |
Definition at line 93 of file LArVoxelID.cxx.
95 art::ServiceHandle<sim::LArVoxelCalculator const> voxelCalc;
96 return voxelCalc->TBinToAxis(
fbins[3]);
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.
74 art::ServiceHandle<sim::LArVoxelCalculator const> voxelCalc;
75 return voxelCalc->XBinToAxis(
fbins[0]);
int sim::LArVoxelID::XBin |
( |
| ) |
const |
|
inline |
double sim::LArVoxelID::Y |
( |
| ) |
const |
Definition at line 79 of file LArVoxelID.cxx.
81 art::ServiceHandle<sim::LArVoxelCalculator const> voxelCalc;
82 return voxelCalc->YBinToAxis(
fbins[1]);
int sim::LArVoxelID::YBin |
( |
| ) |
const |
|
inline |
double sim::LArVoxelID::Z |
( |
| ) |
const |
Definition at line 86 of file LArVoxelID.cxx.
88 art::ServiceHandle<sim::LArVoxelCalculator const> voxelCalc;
89 return voxelCalc->ZBinToAxis(
fbins[2]);
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.
BEGIN_PROLOG sequence::SlidingWindowTriggerPatternsOppositeWindows END_PROLOG simSlidingORM6O6 effSlidingORW output
std::vector<int> sim::LArVoxelID::fbins |
|
private |
The documentation for this class was generated from the following files: