Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

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  {}
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

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

Get position.

Returns
position [m]

Definition at line 181 of file JSireneToolkit.hh.

182  {
183  return z;
184  }
double JSIRENE::JVertex::getT ( ) const
inline

Get time.

Returns
time [ns]

Definition at line 192 of file JSireneToolkit.hh.

193  {
194  return t;
195  }
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  }
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  }
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  }
static const JGeane gWater(2.67e-1 *JTOOLS::DENSITY_SEA_WATER, 3.4e-4 *JTOOLS::DENSITY_SEA_WATER)
Function object for Energy loss of muon in sea water.
static const double MASS_MUON
muon mass [GeV]
Definition: JConstants.hh:59
double getIndexOfRefraction()
Get average index of refraction of water.
Definition: JConstants.hh:111
double getA() const
Get energy loss constant.
Definition: JGeane.hh:57
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  }
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  }
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  }
static const JGeane gWater(2.67e-1 *JTOOLS::DENSITY_SEA_WATER, 3.4e-4 *JTOOLS::DENSITY_SEA_WATER)
Function object for Energy loss of muon in sea water.
const double getSpeedOfLight()
Number of bytes in a gigabyte.
Definition: JConstants.hh:89
double getA() const
Get energy loss constant.
Definition: JGeane.hh:57
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  }
const double getSpeedOfLight()
Number of bytes in a gigabyte.
Definition: JConstants.hh:89

Member Data Documentation

double JSIRENE::JVertex::z
protected

Definition at line 293 of file JSireneToolkit.hh.

double JSIRENE::JVertex::t
protected

Definition at line 294 of file JSireneToolkit.hh.

double JSIRENE::JVertex::E
protected

Definition at line 295 of file JSireneToolkit.hh.

double JSIRENE::JVertex::Es
protected

Definition at line 296 of file JSireneToolkit.hh.


The documentation for this struct was generated from the following file: