Class to check whether a photon emitted from a position along the z-axis crosses a DOM (approximated by a disc) first, inefficient version.
More...
#include <DomCrossing.hh>
Class to check whether a photon emitted from a position along the z-axis crosses a DOM (approximated by a disc) first, inefficient version.
- Author
- mdejong
Definition at line 18 of file DomCrossing.hh.
◆ DomCrossing()
DomCrossing::DomCrossing |
( |
const double | Rdom | ) |
|
|
inline |
◆ ~DomCrossing()
DomCrossing::~DomCrossing |
( |
| ) |
|
|
inline |
◆ operator()()
bool DomCrossing::operator() |
( |
const double | theta, |
|
|
const double | phi, |
|
|
const double | z, |
|
|
const double | R, |
|
|
const double | dscat ) |
|
inline |
Definition at line 29 of file DomCrossing.hh.
34 {
36
40 const JVector3D l(sin(theta)*cos(phi),sin(theta)*sin(phi),cos(theta));
41
43
44 if(d<0) return false;
45
47
48 const double hitdist = (p0-crossing).getLength();
49
50 const double dist = sqrt(z*z+R*R);
51
52 if(hitdist<__Rdom&&dscat>=dist) return true;
53 else return false;
54
55 }
Data structure for vector in three dimensions.
double getDot(const JVector3D &vector) const
Get dot product.
Auxiliary classes and methods for 3D geometrical objects and operations.
◆ __Rdom
double DomCrossing::__Rdom |
|
private |
The documentation for this class was generated from the following file: