RooParticle
Particle scattering simulator with ROOT
Loading...
Searching...
No Matches
eventVolume.hpp
Go to the documentation of this file.
1
3
4#ifndef H_EVENTVOLUME
5#define H_EVENTVOLUME 1;
6
7#include "TROOT.h"
8#include "TVector3.h"
9
20public:
26 virtual Bool_t Inside(TVector3 position){return true;}
27protected:
28private:
29};
30
38public:
46 eventVGeneral(Double_t xmin, Double_t xmax,
47 Double_t ymin, Double_t ymax,
48 Double_t zmin, Double_t zmax);
57 eventVGeneral(Double_t xlen, Double_t ylen, Double_t zlen);
62 Bool_t Inside(TVector3 position);
63protected:
64private:
65 TVector3 bottom;
66 TVector3 top;
67};
68
69#endif
Axis-aligned box.
TVector3 bottom
lower corner (xmin, ymin, zmin) in fm
TVector3 top
upper corner (xmax, ymax, zmax) in fm
Bool_t Inside(TVector3 position)
Is the point inside the box (boundary included)?
Base class of event volumes: the region in which an event is "alive".
eventVolume()
Create the volume (nothing to initialise).
virtual Bool_t Inside(TVector3 position)
Is the point inside the volume?