RooParticle
Particle scattering simulator with ROOT
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
eventVGeneral Class Reference

Axis-aligned box. More...

#include <eventVolume.hpp>

Inheritance diagram for eventVGeneral:
eventVolume

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ eventVGeneral() [1/2]

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.

Parameters
xminlower x bound (fm)
xmaxupper x bound (fm)
yminlower y bound (fm)
ymaxupper y bound (fm)
zminlower z bound (fm)
zmaxupper z bound (fm)

Definition at line 8 of file eventVolume.cpp.

◆ eventVGeneral() [2/2]

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.

Parameters
xlenfull edge length along x (fm)
ylenfull edge length along y (fm)
zlenfull edge length along z (fm)

Definition at line 23 of file eventVolume.cpp.

Member Function Documentation

◆ Inside()

Bool_t eventVGeneral::Inside ( TVector3  position)
virtual

Is the point inside the box (boundary included)?

Parameters
positionpoint in fm
Returns
true if all three coordinates lie within the bounds, boundary included; false otherwise

Reimplemented from eventVolume.

Definition at line 32 of file eventVolume.cpp.

Member Data Documentation

◆ bottom

TVector3 eventVGeneral::bottom
private

lower corner (xmin, ymin, zmin) in fm

Definition at line 65 of file eventVolume.hpp.

◆ top

TVector3 eventVGeneral::top
private

upper corner (xmax, ymax, zmax) in fm

Definition at line 66 of file eventVolume.hpp.


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