LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
sim::PhotonVoxel Class Reference

#include "PhotonVoxels.h"

Public Member Functions

 PhotonVoxel (double xMin, double xMax, double yMin, double yMax, double zMin, double zMax, int N=0)
 
 PhotonVoxel ()
 
TVector3 GetLowerCorner () const
 
TVector3 GetUpperCorner () const
 
TVector3 GetCenter () const
 

Private Attributes

double xVoxelMin
 
double xVoxelMax
 
double yVoxelMin
 
double yVoxelMax
 
double zVoxelMin
 
double zVoxelMax
 
int NPhotons
 

Detailed Description

Definition at line 9 of file PhotonVoxels.h.

Constructor & Destructor Documentation

sim::PhotonVoxel::PhotonVoxel ( double  xMin,
double  xMax,
double  yMin,
double  yMax,
double  zMin,
double  zMax,
int  N = 0 
)

Definition at line 10 of file PhotonVoxels.cxx.

References NPhotons, xVoxelMax, xVoxelMin, yVoxelMax, yVoxelMin, zVoxelMax, and zVoxelMin.

17  {
18  xVoxelMin = xMin;
19  xVoxelMax = xMax;
20  yVoxelMin = yMin;
21  yVoxelMax = yMax;
22  zVoxelMin = zMin;
23  zVoxelMax = zMax;
24  NPhotons = N;
25  }
sim::PhotonVoxel::PhotonVoxel ( )

Definition at line 28 of file PhotonVoxels.cxx.

Referenced by sim::PhotonVoxelDef::GetPhotonVoxel().

29  {
30  }

Member Function Documentation

TVector3 sim::PhotonVoxel::GetCenter ( void  ) const

Definition at line 49 of file PhotonVoxels.cxx.

References xVoxelMax, xVoxelMin, yVoxelMax, yVoxelMin, zVoxelMax, and zVoxelMin.

Referenced by phot::CreateHybridLibrary::CreateHybridLibrary(), phot::PhotonLibraryHybrid::GetCount(), and evgen::LightSource::produce().

50  {
51  TVector3 Center = TVector3((xVoxelMin+xVoxelMax)/2.0, (yVoxelMin+yVoxelMax)/2.0, (zVoxelMin+zVoxelMax)/2.0);
52  return Center;
53  }
TVector3 sim::PhotonVoxel::GetLowerCorner ( ) const

Definition at line 33 of file PhotonVoxels.cxx.

References xVoxelMin, yVoxelMin, and zVoxelMin.

34  {
35  TVector3 LowerCorner = TVector3(xVoxelMin, yVoxelMin, zVoxelMin);
36  return LowerCorner;
37  }
TVector3 sim::PhotonVoxel::GetUpperCorner ( ) const

Definition at line 41 of file PhotonVoxels.cxx.

References xVoxelMax, yVoxelMax, and zVoxelMax.

42  {
43  TVector3 UpperCorner = TVector3(xVoxelMax, yVoxelMax, zVoxelMax);
44  return UpperCorner;
45  }

Member Data Documentation

int sim::PhotonVoxel::NPhotons
private

Definition at line 28 of file PhotonVoxels.h.

Referenced by PhotonVoxel().

double sim::PhotonVoxel::xVoxelMax
private

Definition at line 22 of file PhotonVoxels.h.

Referenced by GetCenter(), GetUpperCorner(), and PhotonVoxel().

double sim::PhotonVoxel::xVoxelMin
private

Definition at line 21 of file PhotonVoxels.h.

Referenced by GetCenter(), GetLowerCorner(), and PhotonVoxel().

double sim::PhotonVoxel::yVoxelMax
private

Definition at line 24 of file PhotonVoxels.h.

Referenced by GetCenter(), GetUpperCorner(), and PhotonVoxel().

double sim::PhotonVoxel::yVoxelMin
private

Definition at line 23 of file PhotonVoxels.h.

Referenced by GetCenter(), GetLowerCorner(), and PhotonVoxel().

double sim::PhotonVoxel::zVoxelMax
private

Definition at line 26 of file PhotonVoxels.h.

Referenced by GetCenter(), GetUpperCorner(), and PhotonVoxel().

double sim::PhotonVoxel::zVoxelMin
private

Definition at line 25 of file PhotonVoxels.h.

Referenced by GetCenter(), GetLowerCorner(), and PhotonVoxel().


The documentation for this class was generated from the following files: