Muon trajectory.
More...
#include <JSireneToolkit.hh>
Muon trajectory.
Definition at line 218 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 237 of file JSireneToolkit.hh.
239 if (!this->empty()) {
243 if (p != this->end() && p != this->begin()) {
247 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 261 of file JSireneToolkit.hh.
265 const double precision = 1.0e-2;
267 if (!this->empty()) {
271 if (p == this->end()) {
275 if (p == this->begin()) {
277 return JVector2D(p->getX(),
284 pos = p->getPosition();
288 pos -= p->getPosition();
290 const double u = (pos.getZ() > precision ? (z - p->getZ()) / pos.getZ() : 0.0);
292 return JVector2D(p->getX() + u * pos.getX(),
293 p->getY() + u * pos.getY());
297 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: