LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "PhotonVoxels.h"
Classes | |
struct | NeiInfo |
Public Member Functions | |
PhotonVoxelDef (double xMin, double xMax, int xN, double yMin, double yMax, int yN, double zMin, double zMax, int z) | |
PhotonVoxelDef () | |
TVector3 | GetRegionUpperCorner () const |
TVector3 | GetRegionLowerCorner () const |
TVector3 | GetSteps () const |
TVector3 | GetVoxelSize () const |
int | GetNVoxels () const |
int | GetVoxelID (const TVector3 &) const |
int | GetVoxelID (double const *) const |
bool | IsLegalVoxelID (int) const |
void | GetNeighboringVoxelIDs (const TVector3 &v, std::vector< NeiInfo > &ret) const |
PhotonVoxel | GetPhotonVoxel (int ID) const |
std::vector< int > | GetVoxelCoords (int ID) const |
PhotonVoxel | GetContainingVoxel (TVector3) const |
bool | operator== (const PhotonVoxelDef &rhs) const |
bool | operator!= (const PhotonVoxelDef &rhs) const |
Private Attributes | |
TVector3 | fLowerCorner |
TVector3 | fUpperCorner |
int | fxSteps |
int | fySteps |
int | fzSteps |
Definition at line 42 of file PhotonVoxels.h.
sim::PhotonVoxelDef::PhotonVoxelDef | ( | double | xMin, |
double | xMax, | ||
int | xN, | ||
double | yMin, | ||
double | yMax, | ||
int | yN, | ||
double | zMin, | ||
double | zMax, | ||
int | z | ||
) |
Definition at line 57 of file PhotonVoxels.cxx.
sim::PhotonVoxelDef::PhotonVoxelDef | ( | ) |
Definition at line 77 of file PhotonVoxels.cxx.
PhotonVoxel sim::PhotonVoxelDef::GetContainingVoxel | ( | TVector3 | ) | const |
void sim::PhotonVoxelDef::GetNeighboringVoxelIDs | ( | const TVector3 & | v, |
std::vector< NeiInfo > & | ret | ||
) | const |
Definition at line 146 of file PhotonVoxels.cxx.
References d, e, max, min, n, and w.
Referenced by phot::PhotonVisibilityService::GetVisibility(), and GetVoxelID().
int sim::PhotonVoxelDef::GetNVoxels | ( | ) | const |
Definition at line 109 of file PhotonVoxels.cxx.
Referenced by phot::PhotonLibraryAnalyzer::beginJob(), phot::CreateHybridLibrary::CreateHybridLibrary(), evgen::LightSource::LightSource(), phot::PhotonVisibilityService::LoadLibrary(), and phot::PhotonLibraryHybrid::NVoxels().
PhotonVoxel sim::PhotonVoxelDef::GetPhotonVoxel | ( | int | ID | ) | const |
Definition at line 223 of file PhotonVoxels.cxx.
References sim::PhotonVoxel::PhotonVoxel().
Referenced by phot::CreateHybridLibrary::CreateHybridLibrary(), phot::PhotonLibraryHybrid::GetCount(), and evgen::LightSource::produce().
TVector3 sim::PhotonVoxelDef::GetRegionLowerCorner | ( | ) | const |
Definition at line 82 of file PhotonVoxels.cxx.
Referenced by phot::PhotonLibraryAnalyzer::beginJob(), and operator==().
TVector3 sim::PhotonVoxelDef::GetRegionUpperCorner | ( | ) | const |
Definition at line 88 of file PhotonVoxels.cxx.
Referenced by phot::PhotonLibraryAnalyzer::beginJob(), and operator==().
TVector3 sim::PhotonVoxelDef::GetSteps | ( | ) | const |
Definition at line 94 of file PhotonVoxels.cxx.
Referenced by phot::PhotonLibraryAnalyzer::beginJob(), and operator==().
std::vector< int > sim::PhotonVoxelDef::GetVoxelCoords | ( | int | ID | ) | const |
Definition at line 253 of file PhotonVoxels.cxx.
Referenced by phot::PhotonLibraryAnalyzer::beginJob().
int sim::PhotonVoxelDef::GetVoxelID | ( | const TVector3 & | p | ) | const |
Definition at line 115 of file PhotonVoxels.cxx.
Referenced by phot::PhotonVisibilityService::GetAllVisibilities(), phot::PhotonVisibilityService::GetReflT0s(), phot::PhotonVisibilityService::GetTimingPar(), phot::PhotonVisibilityService::GetTimingTF1(), and phot::PhotonVisibilityService::GetVisibility().
int sim::PhotonVoxelDef::GetVoxelID | ( | double const * | Position | ) | const |
TVector3 sim::PhotonVoxelDef::GetVoxelSize | ( | ) | const |
Definition at line 213 of file PhotonVoxels.cxx.
Referenced by evgen::LightSource::LightSource().
bool sim::PhotonVoxelDef::IsLegalVoxelID | ( | int | ID | ) | const |
Definition at line 248 of file PhotonVoxels.cxx.
|
inline |
Definition at line 95 of file PhotonVoxels.h.
bool sim::PhotonVoxelDef::operator== | ( | const PhotonVoxelDef & | rhs | ) | const |
Definition at line 101 of file PhotonVoxels.cxx.
References GetRegionLowerCorner(), GetRegionUpperCorner(), and GetSteps().
|
private |
Definition at line 57 of file PhotonVoxels.h.
|
private |
Definition at line 58 of file PhotonVoxels.h.
|
private |
Definition at line 59 of file PhotonVoxels.h.
|
private |
Definition at line 60 of file PhotonVoxels.h.
|
private |
Definition at line 61 of file PhotonVoxels.h.