Jpp
|
Definition of hit and track types and auxiliary methods for handling Monte Carlo data. More...
#include <stdlib.h>
#include <limits>
#include <algorithm>
#include "evt/Hit.hh"
#include "evt/Vec.hh"
#include "evt/Trk.hh"
#include "evt/Evt.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 "JFit/JFitApplications.hh"
#include "JAAnet/JParticleTypes.hh"
Go to the source code of this file.
Classes | |
struct | JAANET::quality_sorter< reconstruction_type > |
Reconstruction type dependent comparison of track quality. More... | |
struct | JAANET::has_history |
Auxiliary class to test whether given track has specified history. More... | |
Namespaces | |
JAANET | |
Extensions to AAnet data format. | |
JPP | |
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. More... | |
JTimeRange | JAANET::getTimeRange (const Evt &event, const JTimeRange &T_ns) |
Get time range (i.e. 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... | |
bool | JAANET::has_muon_prefit (const Trk &track) |
Test whether given track has muon prefit in history. More... | |
bool | JAANET::has_muon_simplex (const Trk &track) |
Test whether given track has muon simplex fit in history. More... | |
bool | JAANET::has_muon_gandalf (const Trk &track) |
Test whether given track has muon gandalf fit in history. More... | |
bool | JAANET::has_muon_energy (const Trk &track) |
Test whether given track has muon energy fit in history. More... | |
bool | JAANET::has_muon_start (const Trk &track) |
Test whether given track has muon start fit in history. More... | |
bool | JAANET::has_muon_fit (const Trk &track) |
Test whether given track has default muon fit in history. More... | |
bool | JAANET::has_shower_prefit (const Trk &track) |
Test whether given track has shower prefit in history. More... | |
bool | JAANET::has_shower_positionfit (const Trk &track) |
Test whether given track has shower position fit in history. More... | |
bool | JAANET::has_shower_completefit (const Trk &track) |
Test whether given track has shower complete fit in history. More... | |
bool | JAANET::has_shower_fit (const Trk &track) |
Test whether given track has default shower fit in history. More... | |
bool | JAANET::has_aashower_fit (const Trk &track) |
Test whether given track has default shower fit in history. More... | |
template<class JTrackSelector_t > | |
bool | JAANET::has_reconstructed_track (const Evt &evt, JTrackSelector_t selector) |
Test whether given event has a track according selection. More... | |
template<int reconstruction_type> | |
bool | JAANET::has_reconstructed_track (const Evt &evt, const JRange< int > range=JRange< int >()) |
Test whether given event has a track according selection. More... | |
bool | JAANET::has_reconstructed_muon (const Evt &evt) |
Test whether given event has a track with muon reconstruction. More... | |
bool | JAANET::has_reconstructed_shower (const Evt &evt) |
Test whether given event has a track with shower reconstruction. More... | |
bool | JAANET::has_reconstructed_aashower (const Evt &evt) |
Test whether given event has a track with aashower reconstruction. More... | |
template<class JTrackSelector_t , class JQualitySorter_t > | |
const Trk & | JAANET::get_best_reconstructed_track (const Evt &evt, JTrackSelector_t selector, JQualitySorter_t comparator) |
Get best reconstructed track. More... | |
template<int reconstruction_type> | |
const Trk & | JAANET::get_best_reconstructed_track (const Evt &evt, const JRange< int > range=JRange< int >()) |
Get best reconstructed track. More... | |
const Trk & | JAANET::get_best_reconstructed_muon (const Evt &evt) |
Get best reconstructed muon. More... | |
const Trk & | JAANET::get_best_reconstructed_shower (const Evt &evt) |
Get best reconstructed shower. More... | |
const Trk & | JAANET::get_best_reconstructed_aashower (const Evt &evt) |
Get best reconstructed aashower. 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.