1 #ifndef __JSIRENE__JSIRENETOOLKIT__
2 #define __JSIRENE__JSIRENETOOLKIT__
25 namespace JPP {
using namespace JSIRENE; }
62 for (
int i = N; i != 0; --i) {
63 if (gRandom->Rndm() * NPE < npe) {
72 return gRandom->Poisson(npe);
89 static const int NPE = 20;
93 const int n = (int) (NPE *
log10((
double) npe / (
double) NPE));
114 using namespace JAANET;
115 using namespace JPHYSICS;
339 std::vector<
JVertex>(1, vertex)
349 double getE(
const double z)
const
351 if (!this->empty()) {
355 if (pos != this->end() && pos != this->begin()) {
359 return pos->getE() - (z - pos->getZ()) *
gWater.
getA();
378 return sqrt((E - m) * (E + m));
JHitType_t
Enumeration of hit types based on km3 codes.
double getEs() const
Get shower energy.
JTrack(const JVertex &vertex)
Constructor.
Scattered light from primary shower.
double getT() const
Get time.
JVertex & step(const double ds)
Step using default ionisation energy loss.
JComparator< JResult_t T::*, JComparison::lt > make_comparator(JResult_t T::*member)
Helper method to create comparator between values of data member.
double getRange(double a) const
Get range of muon using given ionisation energy loss.
void applyEloss(const double Es)
Apply energy loss.
Direct light from delta-rays.
Scattered light from muon.
double getIndexOfRefraction()
Get average index of refraction of water corresponding to group velocity.
scattered light from EM shower
JHitType_t getHitType(const JPDFType_t pdf, const bool shower=false)
Get hit type corresponding to given PDF type.
static const double MASS_MUON
muon mass [GeV]
then JShowerPostfit f $INPUT_FILE o $OUTPUT_FILE N
double getE() const
Get muon energy.
Scattered light from Bremsstrahlung.
static const JGeaneWater gWater
Function object for energy loss of muon in sea water.
Direct light from Bremsstrahlung.
Direct light from primary shower.
JVertex & step(const double a, const double ds)
Step using given ionisation energy loss.
JVertex()
Default constructor.
JVertex(const double z, const double t, const double E)
Constructor.
Numbering scheme for PDF types.
JVertex & step(const JGeane &geane, const double ds)
Step using given energy loss function.
scattered light from muon
double getZ() const
Get position.
set_variable E_E log10(E_{fit}/E_{#mu})"
double getE(const double z) const
Get muon energy at given position.
scattered light from delta-rays
direct light from EM shower
Interface for muon energy loss.
double getKineticEnergy(const double E, const double m)
Get kinetic energy of particle with given mass.
double getRange(const JGeane &geane) const
Get range of muon using given energy loss function.
Vertex of energy loss of muon.
direct light from delta-rays
int getNumberOfPhotoElectrons(const double NPE, const int N, const double npe)
Get number of photo-electrons of a hit given the expectation values of the number of photo-electrons ...
const double getSpeedOfLight()
Get speed of light.
Scattered light from delta-rays.
double getRange() const
Get range of muon using default ionisation energy loss.
virtual double getA() const override
Get energy loss constant.