LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "LArVoxelID.h"
Public Member Functions | |
LArVoxelID (const int x=0, const int y=0, const int z=0, const int t=0) | |
Expert constructor based on actual bins. More... | |
LArVoxelID (const TLorentzVector &v) | |
Standard constructors. More... | |
LArVoxelID (const double x, const double y, const double z, const double t) | |
virtual | ~LArVoxelID () |
Destructor. More... | |
int | XBin () const |
int | YBin () const |
int | ZBin () const |
int | TBin () const |
double | X () const |
double | Y () const |
double | Z () const |
double | T () const |
double | operator[] (const int) const |
operator TLorentzVector () const | |
operator TVector3 () const | |
bool | operator< (const LArVoxelID &) const |
bool | operator== (const LArVoxelID &) const |
Test for equality. Handy, but not usually necessary. More... | |
Private Attributes | |
std::vector< int > | fbins |
Friends | |
std::ostream & | operator<< (std::ostream &output, const LArVoxelID &) |
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 |
||
) |
|
explicit |
Standard constructors.
Definition at line 42 of file LArVoxelID.cxx.
References fbins.
sim::LArVoxelID::LArVoxelID | ( | const double | x, |
const double | y, | ||
const double | z, | ||
const double | t | ||
) |
Definition at line 53 of file LArVoxelID.cxx.
References fbins, sim::LArVoxelCalculator::TAxisToBin(), sim::LArVoxelCalculator::XAxisToBin(), sim::LArVoxelCalculator::YAxisToBin(), and sim::LArVoxelCalculator::ZAxisToBin().
|
virtual |
sim::LArVoxelID::operator TLorentzVector | ( | ) | const |
sim::LArVoxelID::operator TVector3 | ( | ) | const |
Definition at line 178 of file LArVoxelID.cxx.
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.
References fbins.
bool sim::LArVoxelID::operator== | ( | const LArVoxelID & | other | ) | const |
Test for equality. Handy, but not usually necessary.
Definition at line 160 of file LArVoxelID.cxx.
References fbins.
double sim::LArVoxelID::operator[] | ( | const int | i | ) | const |
double sim::LArVoxelID::T | ( | ) | const |
Definition at line 93 of file LArVoxelID.cxx.
References fbins, and sim::LArVoxelCalculator::TBinToAxis().
Referenced by operator TLorentzVector(), and operator[]().
|
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.
References fbins, and sim::LArVoxelCalculator::XBinToAxis().
Referenced by evd::SimulationDrawer::MCTruth3D(), evd::SimulationDrawer::MCTruthOrtho(), operator TLorentzVector(), operator TVector3(), and operator[]().
|
inline |
double sim::LArVoxelID::Y | ( | ) | const |
Definition at line 79 of file LArVoxelID.cxx.
References fbins, and sim::LArVoxelCalculator::YBinToAxis().
Referenced by evd::SimulationDrawer::MCTruth3D(), evd::SimulationDrawer::MCTruthOrtho(), operator TLorentzVector(), operator TVector3(), and operator[]().
|
inline |
double sim::LArVoxelID::Z | ( | ) | const |
Definition at line 86 of file LArVoxelID.cxx.
References fbins, and sim::LArVoxelCalculator::ZBinToAxis().
Referenced by evd::SimulationDrawer::MCTruth3D(), evd::SimulationDrawer::MCTruthOrtho(), operator TLorentzVector(), operator TVector3(), and operator[]().
|
inline |
|
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.
|
private |
Definition at line 91 of file LArVoxelID.h.
Referenced by LArVoxelID(), operator<(), operator==(), T(), TBin(), X(), XBin(), Y(), YBin(), Z(), and ZBin().