Jpp - the software that should make you happy
 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 (double a) const
 Get range of muon using precalculated a parameter This method applies only ionisation energy loss. 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 double ds, const double a)
 
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  }
double getIndexOfRefraction()
Get average index of refraction of water corresponding to group velocity.
static const double MASS_MUON
muon mass [GeV]
static const JGeaneWater gWater
Function object for energy loss of muon in sea water.
Definition: JGeane.hh:323
virtual double getA() const override
Get energy loss constant.
Definition: JGeane.hh:229
double JSIRENE::JVertex::getRange ( double  a) const
inline

Get range of muon using precalculated a parameter This method applies only ionisation energy loss.

Parameters
aionization a parameter[GeV/m]
Returns
range [m]

Definition at line 239 of file JSireneToolkit.hh.

239  {
240  if (E > MASS_MUON * getIndexOfRefraction())
241  return (E - MASS_MUON * getIndexOfRefraction()) / a;
242  else
243  return 0.0; }
double getIndexOfRefraction()
Get average index of refraction of water corresponding to group velocity.
static const double MASS_MUON
muon mass [GeV]
then JCalibrateToT a
Definition: JTuneHV.sh:116
double JSIRENE::JVertex::getRange ( const JGeane geane) const
inline

Get range of muon.

Parameters
geaneenergy loss
Returns
range [m]

Definition at line 252 of file JSireneToolkit.hh.

253  {
254  return geane(E);
255  }
void JSIRENE::JVertex::applyEloss ( const double  Es)
inline

Apply energy loss energy.

Parameters
Esenergy [GeV]

Definition at line 263 of file JSireneToolkit.hh.

264  {
265  this->E -= Es;
266  this->Es = Es;
267  }
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 277 of file JSireneToolkit.hh.

278  {
279  z += ds;
280  t += ds / getSpeedOfLight();
281  E -= ds * gWater.getA();
282 
283  return *this;
284  }
static const JGeaneWater gWater
Function object for energy loss of muon in sea water.
Definition: JGeane.hh:323
const double getSpeedOfLight()
Get speed of light.
virtual double getA() const override
Get energy loss constant.
Definition: JGeane.hh:229
JVertex& JSIRENE::JVertex::step ( const double  ds,
const double  a 
)
inline

Definition at line 291 of file JSireneToolkit.hh.

292  {
293  z += ds;
294  t += ds / getSpeedOfLight();
295  E -= ds * a;
296 
297  return *this;
298  }
const double getSpeedOfLight()
Get speed of light.
then JCalibrateToT a
Definition: JTuneHV.sh:116
JVertex& JSIRENE::JVertex::step ( const JGeane geane,
const double  ds 
)
inline

Step.

Parameters
geaneenergy loss
dsstep [m]
Returns
this vertex

Definition at line 306 of file JSireneToolkit.hh.

307  {
308  z += ds;
309  t += ds / getSpeedOfLight();
310  E = geane(E, ds);
311 
312  return *this;
313  }
const double getSpeedOfLight()
Get speed of light.

Member Data Documentation

double JSIRENE::JVertex::z
protected

Definition at line 316 of file JSireneToolkit.hh.

double JSIRENE::JVertex::t
protected

Definition at line 317 of file JSireneToolkit.hh.

double JSIRENE::JVertex::E
protected

Definition at line 318 of file JSireneToolkit.hh.

double JSIRENE::JVertex::Es
protected

Definition at line 319 of file JSireneToolkit.hh.


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