Muon trajectory.
More...
#include <JSireneToolkit.hh>
Muon trajectory.
Definition at line 216 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 235 of file JSireneToolkit.hh.
237 if (!this->empty()) {
241 if (p != this->end() && p != this->begin()) {
245 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 259 of file JSireneToolkit.hh.
263 const double precision = 1.0e-2;
265 if (!this->empty()) {
269 if (p == this->end()) {
273 if (p == this->begin()) {
275 return JVector2D(p->getX(),
282 pos = p->getPosition();
286 pos -= p->getPosition();
288 const double u = (pos.getZ() > precision ? (z - p->getZ()) / pos.getZ() : 0.0);
290 return JVector2D(p->getX() + u * pos.getX(),
291 p->getY() + u * pos.getY());
295 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: