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 11 of file DomCrossing.hh.
DomCrossing::DomCrossing |
( |
const double |
Rdom | ) |
|
|
inline |
DomCrossing::~DomCrossing |
( |
| ) |
|
|
inline |
bool DomCrossing::operator() |
( |
const double |
theta, |
|
|
const double |
phi, |
|
|
const double |
z, |
|
|
const double |
R, |
|
|
const double |
dscat |
|
) |
| |
|
inline |
Definition at line 22 of file DomCrossing.hh.
28 using namespace JGEOMETRY3D;
33 const JVector3D l(sin(theta)*cos(phi),sin(theta)*sin(phi),cos(theta));
41 const double hitdist = (p0-crossing).getLength();
43 const double dist = sqrt(z*z+
R*
R);
45 if(hitdist<__Rdom&&dscat>=dist)
return true;
Data structure for vector in three dimensions.
then usage $script[distance] fi case set_variable R
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
double getDot(const JVector3D &vector) const
Get dot product.
double DomCrossing::__Rdom |
|
private |
The documentation for this class was generated from the following file: