Muon trajectory.
More...
#include <JSireneToolkit.hh>
Muon trajectory.
Definition at line 247 of file JSireneToolkit.hh.
JSIRENE::JTrack::JTrack |
( |
const JPoint & |
point | ) |
|
|
inline |
double JSIRENE::JTrack::getE |
( |
const double |
z | ) |
const |
|
inline |
Get muon energy at given position along trajectory.
- Parameters
-
- Returns
- energy [GeV]
Definition at line 266 of file JSireneToolkit.hh.
268 if (!this->empty()) {
272 if (p != this->end() && p != this->begin()) {
276 return p->getE() - (z - p->getZ()) *
gWater.
getA();
JComparator< JResult_t T::*, JComparison::lt > make_comparator(JResult_t T::*member)
Helper method to create comparator between values of data member.
static const double MASS_MUON
muon mass [GeV]
static const JGeaneWater gWater
Function object for energy loss of muon in sea water.
double getZ() const
Get z position.
virtual double getA() const override
Get energy loss constant.
JVector2D JSIRENE::JTrack::getPosition |
( |
const double |
z | ) |
const |
|
inline |
Get muon position at given position along trajectory.
- Parameters
-
- Returns
- position
Definition at line 290 of file JSireneToolkit.hh.
294 const double precision = 1.0e-2;
296 if (!this->empty()) {
300 if (p == this->end()) {
304 if (p == this->begin()) {
306 return JVector2D(p->getX(),
313 pos = p->getPosition();
317 pos -= p->getPosition();
319 const double u = (pos.getZ() > precision ? (z - p->getZ()) / pos.getZ() : 0.0);
321 return JVector2D(p->getX() + u * pos.getX(),
322 p->getY() + u * pos.getY());
326 return JVector2D(0.0, 0.0);
JComparator< JResult_t T::*, JComparison::lt > make_comparator(JResult_t T::*member)
Helper method to create comparator between values of data member.
double getZ() const
Get z position.
The documentation for this struct was generated from the following file: