| 
    Jpp
    17.1.1
    
   the software that should make you happy 
   | 
 
Definition of hit and track types and auxiliary methods for handling Monte Carlo data. More...
#include <cstdlib>#include <algorithm>#include "km3net-dataformat/offline/Hit.hh"#include "km3net-dataformat/offline/Vec.hh"#include "km3net-dataformat/offline/Trk.hh"#include "km3net-dataformat/offline/Evt.hh"#include "km3net-dataformat/definitions/fitparameters.hh"#include "km3net-dataformat/definitions/reconstruction.hh"#include "km3net-dataformat/tools/reconstruction.hh"#include "JLang/JException.hh"#include "JLang/JPredicate.hh"#include "JGeometry3D/JPosition3D.hh"#include "JGeometry3D/JDirection3D.hh"#include "JGeometry3D/JAxis3D.hh"#include "JGeometry3D/JTrack3D.hh"#include "JGeometry3D/JTrack3E.hh"#include "JGeometry3D/JVertex3D.hh"#include "JGeometry3D/JTransformation3D.hh"#include "JPhysics/JConstants.hh"#include "JPhysics/JTimeRange.hh"#include "JPhysics/JGeane.hh"#include "JAAnet/JParticleTypes.hh"#include "JAAnet/JPDB.hh"Go to the source code of this file.
Namespaces | |
| JAANET | |
| Extensions to Evt data format.  | |
| JPP | |
| This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).  | |
Enumerations | |
| enum | JAANET::JHitType_t {  JAANET::HIT_TYPE_MUON_DIRECT = +5, JAANET::HIT_TYPE_MUON_SCATTERED = -5, JAANET::HIT_TYPE_DELTARAYS_DIRECT = +4, JAANET::HIT_TYPE_DELTARAYS_SCATTERED = -4, JAANET::HIT_TYPE_BREMSSTRAHLUNG_DIRECT = +3, JAANET::HIT_TYPE_BREMSSTRAHLUNG_SCATTERED = -3, JAANET::HIT_TYPE_SHOWER_DIRECT = +99, JAANET::HIT_TYPE_SHOWER_SCATTERED = -99, JAANET::HIT_TYPE_NOISE = -1, JAANET::HIT_TYPE_UNKNOWN = 0 }  | 
| Enumeration of hit types based on km3 codes.  More... | |
Functions | |
| double | JAANET::getTime (const Hit &hit) | 
| Get true time of hit.  More... | |
| double | JAANET::getNPE (const Hit &hit) | 
| Get true charge of hit.  More... | |
| bool | JAANET::is_noise (const Hit &hit) | 
| Verify hit origin.  More... | |
| JTimeRange | JAANET::getTimeRange (const Evt &event) | 
| Get time range (i.e. time between earliest and latest hit) of Monte Carlo event.  More... | |
| JTimeRange | JAANET::getTimeRange (const Evt &event, const JTimeRange &T_ns) | 
| Get time range (i.e. time between earliest and latest hit) of Monte Carlo event.  More... | |
| JPosition3D | JAANET::getPosition (const Vec &pos) | 
| Get position.  More... | |
| Vec | JAANET::getPosition (const JPosition3D &pos) | 
| Get position.  More... | |
| JPosition3D | JAANET::getPosition (const Trk &track) | 
| Get position.  More... | |
| JDirection3D | JAANET::getDirection (const Vec &dir) | 
| Get direction.  More... | |
| Vec | JAANET::getDirection (const JDirection3D &dir) | 
| Get direction.  More... | |
| JDirection3D | JAANET::getDirection (const Trk &track) | 
| Get direction.  More... | |
| JAxis3D | JAANET::getAxis (const Trk &track) | 
| Get axis.  More... | |
| JTrack3E | JAANET::getTrack (const Trk &track) | 
| Get track.  More... | |
| JVertex3D | JAANET::getVertex (const Trk &track) | 
| Get vertex.  More... | |
| JTransformation3D | JAANET::getTransformation (const Trk &track) | 
| Get transformation.  More... | |
| double | JAANET::getW (const Trk &track, const size_t index, const double value) | 
| Get track information.  More... | |
| bool | JAANET::is_photon (const Trk &track) | 
| Test whether given track is a photon or neutral pion.  More... | |
| bool | JAANET::is_neutrino (const Trk &track) | 
| Test whether given track is a neutrino.  More... | |
| bool | JAANET::is_electron (const Trk &track) | 
| Test whether given track is a (anti-)electron.  More... | |
| bool | JAANET::is_muon (const Trk &track) | 
| Test whether given track is a (anti-)muon.  More... | |
| bool | JAANET::is_tau (const Trk &track) | 
| Test whether given track is a (anti-)tau.  More... | |
| bool | JAANET::is_pion (const Trk &track) | 
| Test whether given track is a charged pion.  More... | |
| bool | JAANET::is_proton (const Trk &track) | 
| Test whether given track is a (anti-)proton.  More... | |
| bool | JAANET::is_neutron (const Trk &track) | 
| Test whether given track is a (anti-)neutron.  More... | |
| bool | JAANET::is_lepton (const Trk &track) | 
| Test whether given track is a lepton.  More... | |
| bool | JAANET::is_charged_lepton (const Trk &track) | 
| Test whether given track is a charged lepton.  More... | |
| bool | JAANET::is_hadron (const Trk &track) | 
| Test whether given track is a hadron.  More... | |
| bool | JAANET::is_meson (const Trk &track) | 
| Test whether given track is a meson (is hadron and third digit of PDG code is zero)  More... | |
| bool | JAANET::is_baryon (const Trk &track) | 
| Test whether given track is a baryon (is hadron and third digit of PDG code is not zero)  More... | |
| bool | JAANET::has_particleID (const Trk &track, const int type) | 
| Test whether given track corresponds to given particle type.  More... | |
| bool | JAANET::has_neutrino (const Evt &evt) | 
| Test whether given event has an incoming neutrino.  More... | |
| const Trk & | JAANET::get_neutrino (const Evt &evt) | 
| Get incoming neutrino.  More... | |
| int | JAANET::count_electrons (const Evt &evt) | 
| Count the number of electrons in a given event.  More... | |
| bool | JAANET::has_electron (const Evt &evt) | 
| Test whether given event has an electron.  More... | |
| const Trk & | JAANET::get_electron (const Evt &evt) | 
| Get first electron from the event tracklist.  More... | |
| bool | JAANET::from_electron (const Hit &hit) | 
| Test whether given hit was produced by an electron.  More... | |
| int | JAANET::count_muons (const Evt &evt) | 
| Count the number of muons in a given event.  More... | |
| bool | JAANET::has_muon (const Evt &evt) | 
| Test whether given event has a muon.  More... | |
| const Trk & | JAANET::get_muon (const Evt &evt) | 
| Get first muon from the event tracklist.  More... | |
| bool | JAANET::from_muon (const Hit &hit) | 
| Test whether given hit was produced by a muon.  More... | |
| int | JAANET::count_taus (const Evt &evt) | 
| Count the number of taus in a given event.  More... | |
| bool | JAANET::has_tau (const Evt &evt) | 
| Test whether given event has a tau.  More... | |
| const Trk & | JAANET::get_tau (const Evt &evt) | 
| Get first tau from the event tracklist.  More... | |
| bool | JAANET::from_tau (const Hit &hit) | 
| Test whether given hit was produced by a tau.  More... | |
| int | JAANET::count_hadrons (const Evt &evt) | 
| Count the number of hadrons in a given event (not including neutral pions)  More... | |
| bool | JAANET::from_hadron (const Hit &hit) | 
| Test whether given hit was produced by a hadronic shower.  More... | |
| void | JAANET::add_time_offset (Evt &evt, const double tOff) | 
| Add time offset to mc event; according to current definition, the absolute time of the event is defined by the track "t" attribute; this could change in the future if the global attribute mc_t is assigned to this purpose.  More... | |
| double | JAANET::getKineticEnergy (const double E, const double m) | 
| Get kinetic energy of particle with given mass.  More... | |
| double | JAANET::getKineticEnergy (const Trk &trk) | 
| Get track kinetic energy.  More... | |
| double | JAANET::getE0 (const Evt &evt) | 
| Get initial state energy of a neutrino interaction.  More... | |
| double | JAANET::getE1 (const Evt &evt) | 
| Get final state energy of a neutrino interaction.  More... | |
| Vec | JAANET::getP0 (const Evt &evt) | 
| Get momentum vector of the initial state of a neutrino interaction.  More... | |
| Vec | JAANET::getP1 (const Evt &evt) | 
| Get momentum vector of the final state of a neutrino interaction.  More... | |
Variables | |
| static const int | JAANET::AASHOWER_RECONSTRUCTION_TYPE = 101 | 
| AAnet shower fit reconstruction type.  More... | |
Definition of hit and track types and auxiliary methods for handling Monte Carlo data.
Definition in file JAAnetToolkit.hh.
 1.8.5