|
RooParticle
Particle scattering simulator with ROOT
|
Axis-aligned box. More...
#include <eventVolume.hpp>
Public Member Functions | |
| eventVGeneral (Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax, Double_t zmin, Double_t zmax) | |
| Box from its two corners. | |
| eventVGeneral (Double_t xlen, Double_t ylen, Double_t zlen) | |
| Box centred at the origin with the given edge lengths. | |
| Bool_t | Inside (TVector3 position) |
| Is the point inside the box (boundary included)? | |
Public Member Functions inherited from eventVolume | |
| eventVolume () | |
| Create the volume (nothing to initialise). | |
Private Attributes | |
| TVector3 | bottom |
| lower corner (xmin, ymin, zmin) in fm | |
| TVector3 | top |
| upper corner (xmax, ymax, zmax) in fm | |
Axis-aligned box.
The box is the closed set \(x_{min}\le x\le x_{max}\) and likewise in y and z (fm): a point exactly on a face counts as inside. The constructors do not check that min is smaller than max; a reversed or empty range makes Inside() false for every point.
Definition at line 37 of file eventVolume.hpp.
| eventVGeneral::eventVGeneral | ( | Double_t | xmin, |
| Double_t | xmax, | ||
| Double_t | ymin, | ||
| Double_t | ymax, | ||
| Double_t | zmin, | ||
| Double_t | zmax | ||
| ) |
Box from its two corners.
| xmin | lower x bound (fm) |
| xmax | upper x bound (fm) |
| ymin | lower y bound (fm) |
| ymax | upper y bound (fm) |
| zmin | lower z bound (fm) |
| zmax | upper z bound (fm) |
Definition at line 8 of file eventVolume.cpp.
| eventVGeneral::eventVGeneral | ( | Double_t | xlen, |
| Double_t | ylen, | ||
| Double_t | zlen | ||
| ) |
Box centred at the origin with the given edge lengths.
Equivalent to the six-bound constructor with bounds \(\pm\mathrm{len}/2\) in each axis, so eventVGeneral(40.,40.,40.) is the cube \(|x|,|y|,|z|\le 20\) fm.
| xlen | full edge length along x (fm) |
| ylen | full edge length along y (fm) |
| zlen | full edge length along z (fm) |
Definition at line 23 of file eventVolume.cpp.
|
virtual |
Is the point inside the box (boundary included)?
| position | point in fm |
Reimplemented from eventVolume.
Definition at line 32 of file eventVolume.cpp.
|
private |
lower corner (xmin, ymin, zmin) in fm
Definition at line 65 of file eventVolume.hpp.
|
private |
upper corner (xmax, ymax, zmax) in fm
Definition at line 66 of file eventVolume.hpp.