1#ifndef __JSIRENE__JVISIBLEENERGYTOOLKIT__
2#define __JSIRENE__JVISIBLEENERGYTOOLKIT__
81 if (is_finalstate(
track)) {
95 const double Lmuon = gWater.getX(
track.E, MASS_MUON / getSinThetaC());
105 const double dEc =
Leff / geanc();
111 can.is_inside(getPosition(
track))) {
230 const Trk& leading_lepton = get_leading_lepton(event);
232 if (is_finalstate(leading_lepton)) {
236 if (is_finalstate(*
track) &&
track->mother_id == leading_lepton.
id) {
261 const Trk& leading_lepton = get_leading_lepton(event);
263 if (is_finalstate(leading_lepton)) {
267 if (is_finalstate(*
track) &&
track->mother_id == leading_lepton.
id) {
Definition of particle types.
Data structure for circle in two dimensions.
Data structure for vector in two dimensions.
Template definition of a multi-dimensional oscillation probability interpolation table.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
const JCylinder3D getMaximumContainmentVolume()
Forward function declarations.
double getVisibleEnergyLeadingLepton(const Trk &, const JCylinder3D &)
Vec getVisibleEnergyVectorLeadingLepton(const Evt &event, const JCylinder3D &can=getMaximumContainmentVolume())
Get visible energy vector of the leading lepton of a neutrino interaction.
double getVisibleEnergy(const Trk &, const JCylinder3D &)
Get the visible energy of a track.
static const JPythia pythia
Function object for relative light yield as a function of GEANT particle code.
Vec getVisibleEnergyVector(const Trk &track, const JCylinder3D &can=getMaximumContainmentVolume())
Get the visible energy vector of a track.
const char *const energy_lost_in_can
This file contains converted Fortran code from km3.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
std::vector< Trk > mc_trks
MC: list of MC truth tracks.
static const JPDB & getInstance()
Get particle data book.
The cylinder used for photon tracking.
The Trk class represents a Monte Carlo (MC) particle as well as a reconstructed track/shower.
The Vec class is a straightforward 3-d vector, which also works in pyroot.