Jpp
|
Definition of hit and track types and auxiliary methods for handling Monte Carlo data. More...
#include <stdlib.h>
#include <limits>
#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 "JTools/JRange.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 "JTrigger/JHitL0.hh"
#include "JDetector/JTimeRange.hh"
#include "JDetector/JModuleRouter.hh"
#include "JDetector/JPMTRouter.hh"
#include "JAAnet/JParticleTypes.hh"
Go to the source code of this file.
Namespaces | |
JAANET | |
Extensions to AAnet 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 &v) |
Get position. More... | |
JPosition3D | JAANET::getPosition (const Trk &track) |
Get position. More... | |
JDirection3D | JAANET::getDirection (const Vec &v) |
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... | |
JHitL0 | JAANET::getHit (const Hit &hit) |
Get transformation. More... | |
JHitL0 | JAANET::getHit (const Hit &hit, const JModuleRouter &router) |
Get transformation. More... | |
JHitL0 | JAANET::getHit (const Hit &hit, const JPMTRouter &router) |
Get transformation. 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_hadron (const Trk &track) |
Test whether given track is a hadron. 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... | |
Trk | JAANET::get_hadronic_cascade (const Evt &evt) |
Auxiliary function to get average direction and total energy of a hadronic cascade. 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... | |
Variables | |
static const int | JAANET::AASHOWER_RECONSTRUCTION_TYPE = 101 |
AAshower reconstruction type for AAnet. More... | |
Definition of hit and track types and auxiliary methods for handling Monte Carlo data.
Definition in file JAAnetToolkit.hh.