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 |
( |
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 29 of file DomCrossing.hh.
35 using namespace JGEOMETRY3D;
48 const double hitdist = (p0-crossing).getLength();
50 const double dist = sqrt(
z*
z+
R*
R);
52 if(hitdist<__Rdom&&dscat>=dist)
return true;
Data structure for vector in three dimensions.
then JCookie sh JDataQuality D $DETECTOR_ID R
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
then usage $script[energy[distance[z of PMT]]] fi case set_variable z
double getDot(const JVector3D &vector) const
Get dot product.
double DomCrossing::__Rdom |
|
private |
The documentation for this class was generated from the following file: