Jpp
Public Member Functions | Protected Attributes | List of all members
JSIRENE::JVertex Struct Reference

Vertex of energy loss of muon. More...

#include <JSireneToolkit.hh>

Public Member Functions

 JVertex ()
 Default constructor. More...
 
 JVertex (const double z, const double t, const double E)
 Constructor. More...
 
double getZ () const
 Get position. More...
 
double getT () const
 Get time. More...
 
double getE () const
 Get muon energy. More...
 
double getEs () const
 Get shower energy. More...
 
double getRange () const
 Get range of muon. More...
 
double getRange (const JGeane &geane) const
 Get range of muon. More...
 
void applyEloss (const double Es)
 Apply energy loss energy. More...
 
JVertexstep (const double ds)
 Step. More...
 
JVertexstep (const JGeane &geane, const double ds)
 Step. More...
 

Protected Attributes

double z
 
double t
 
double E
 
double Es
 

Detailed Description

Vertex of energy loss of muon.

Definition at line 146 of file JSireneToolkit.hh.

Constructor & Destructor Documentation

◆ JVertex() [1/2]

JSIRENE::JVertex::JVertex ( )
inline

Default constructor.

Definition at line 150 of file JSireneToolkit.hh.

150  :
151  z (0.0),
152  t (0.0),
153  E (0.0),
154  Es(0.0)
155  {}

◆ JVertex() [2/2]

JSIRENE::JVertex::JVertex ( const double  z,
const double  t,
const double  E 
)
inline

Constructor.

Parameters
zposition [m]
ttime [ns]
Eenergy [GeV]

Definition at line 165 of file JSireneToolkit.hh.

168  {
169  this->z = z;
170  this->t = t;
171  this->E = E;
172  this->Es = 0.0;
173  }

Member Function Documentation

◆ getZ()

double JSIRENE::JVertex::getZ ( ) const
inline

Get position.

Returns
position [m]

Definition at line 181 of file JSireneToolkit.hh.

182  {
183  return z;
184  }

◆ getT()

double JSIRENE::JVertex::getT ( ) const
inline

Get time.

Returns
time [ns]

Definition at line 192 of file JSireneToolkit.hh.

193  {
194  return t;
195  }

◆ getE()

double JSIRENE::JVertex::getE ( ) const
inline

Get muon energy.

Returns
energy [GeV]

Definition at line 203 of file JSireneToolkit.hh.

204  {
205  return E;
206  }

◆ getEs()

double JSIRENE::JVertex::getEs ( ) const
inline

Get shower energy.

Returns
energy [GeV]

Definition at line 214 of file JSireneToolkit.hh.

215  {
216  return Es;
217  }

◆ getRange() [1/2]

double JSIRENE::JVertex::getRange ( ) const
inline

Get range of muon.

This method applies only ionisation energy loss.

Returns
range [m]

Definition at line 226 of file JSireneToolkit.hh.

227  {
228  if (E > MASS_MUON * getIndexOfRefraction())
229  return (E - MASS_MUON * getIndexOfRefraction()) / gWater.getA();
230  else
231  return 0.0;
232  }

◆ getRange() [2/2]

double JSIRENE::JVertex::getRange ( const JGeane geane) const
inline

Get range of muon.

Parameters
geaneenergy loss
Returns
range [m]

Definition at line 241 of file JSireneToolkit.hh.

242  {
243  return geane(E);
244  }

◆ applyEloss()

void JSIRENE::JVertex::applyEloss ( const double  Es)
inline

Apply energy loss energy.

Parameters
Esenergy [GeV]

Definition at line 252 of file JSireneToolkit.hh.

253  {
254  this->E -= Es;
255  this->Es = Es;
256  }

◆ step() [1/2]

JVertex& JSIRENE::JVertex::step ( const double  ds)
inline

Step.

This method applies only ionisation energy loss.

Parameters
dsstep [m]
Returns
this vertex

Definition at line 266 of file JSireneToolkit.hh.

267  {
268  z += ds;
269  t += ds / getSpeedOfLight();
270  E -= ds * gWater.getA();
271 
272  return *this;
273  }

◆ step() [2/2]

JVertex& JSIRENE::JVertex::step ( const JGeane geane,
const double  ds 
)
inline

Step.

Parameters
geaneenergy loss
dsstep [m]
Returns
this vertex

Definition at line 283 of file JSireneToolkit.hh.

284  {
285  z += ds;
286  t += ds / getSpeedOfLight();
287  E = geane(E, ds);
288 
289  return *this;
290  }

Member Data Documentation

◆ z

double JSIRENE::JVertex::z
protected

Definition at line 293 of file JSireneToolkit.hh.

◆ t

double JSIRENE::JVertex::t
protected

Definition at line 294 of file JSireneToolkit.hh.

◆ E

double JSIRENE::JVertex::E
protected

Definition at line 295 of file JSireneToolkit.hh.

◆ Es

double JSIRENE::JVertex::Es
protected

Definition at line 296 of file JSireneToolkit.hh.


The documentation for this struct was generated from the following file:
JSIRENE::JVertex::z
double z
Definition: JSireneToolkit.hh:293
JTOOLS::getSpeedOfLight
const double getSpeedOfLight()
Number of bytes in a gigabyte.
Definition: JConstants.hh:89
JTOOLS::MASS_MUON
static const double MASS_MUON
muon mass [GeV]
Definition: JConstants.hh:59
JPHYSICS::gWater
static const JGeaneWater gWater
Function object for energy loss of muon in sea water.
Definition: JGeane.hh:328
JSIRENE::JVertex::Es
double Es
Definition: JSireneToolkit.hh:296
JTOOLS::getIndexOfRefraction
double getIndexOfRefraction()
Get average index of refraction of water.
Definition: JConstants.hh:111
JSIRENE::JVertex::E
double E
Definition: JSireneToolkit.hh:295
JSIRENE::JVertex::t
double t
Definition: JSireneToolkit.hh:294
JPHYSICS::JGeaneWater::getA
virtual double getA() const
Get energy loss constant.
Definition: JGeane.hh:234