Muon trajectory.  
 More...
#include <JSireneToolkit.hh>
 | 
|   | JTrack (const JPoint &point) | 
|   | Constructor.  
  | 
|   | 
| double  | getE (const double z) const | 
|   | Get muon energy at given position along trajectory.  
  | 
|   | 
| JVector2D  | getPosition (const double z) const | 
|   | Get muon position at given position along trajectory.  
  | 
|   | 
Muon trajectory. 
Definition at line 247 of file JSireneToolkit.hh.
 
◆ JTrack()
  
  
      
        
          | JSIRENE::JTrack::JTrack  | 
          ( | 
          const JPoint & |           point | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ getE()
  
  
      
        
          | 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.
  267    {
  268       if (!this->empty()) {
  269        
  271 
  272        if (p != this->end() && p != this->begin()) {
  273          
  274          --p;
  275        
  276          return p->getE() -  (z - p->getZ()) * gWater.getA();
  277        }
  278      }
  279 
  280      return MASS_MUON;
  281    }
double getZ() const
Get z position.
 
JComparator< JResult_t T::*, JComparison::lt > make_comparator(JResult_t T::*member)
Helper method to create comparator between values of data member.
 
 
 
 
◆ getPosition()
  
  
      
        
          | 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.
  291    {
  293 
  294      const double precision = 1.0e-2;
  295 
  296      if (!this->empty()) {
  297        
  299 
  300        if (p == this->end()) { 
  301          --p;
  302        }
  303 
  304        if (p == this->begin()) {
  305 
  307                           p->getY());
  308 
  309        } else {
  310 
  312 
  313          pos  = p->getPosition();
  314 
  315          --p;
  316 
  317          pos -= p->getPosition();
  318 
  319          const double u = (pos.
getZ() > precision ? (z - p->getZ()) / pos.
getZ() : 0.0);
 
  320 
  322                           p->getY() + u * pos.
getY());
 
  323        }
  324      }
  325 
  327    }
Data structure for vector in two dimensions.
 
Data structure for vector in three dimensions.
 
double getY() const
Get y position.
 
double getX() const
Get x position.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
 
 
 
The documentation for this struct was generated from the following file: