1 #ifndef __JAANET__JAANETTOOLKIT__ 
    2 #define __JAANET__JAANETTOOLKIT__ 
   34 namespace JPP { 
using namespace JAANET; }
 
  122         time_range.include(
getTime(*hit));
 
  143     if (time_range.getLength() < T_ns.getLength()) {
 
  144       time_range.setLength(T_ns.getLength());
 
  279   inline double getW(
const Trk& track, 
const size_t index, 
const double value)
 
  281     if (index < track.
fitinf.size())
 
  282       return track.
fitinf[index];
 
  392                                                       ((
int)(track.
type / 1000)) % 10 == 0); }
 
  401                                                       ((
int)(track.
type / 1000)) % 10 != 0); }
 
  624         cascade.
E   += track->E;
 
  625         cascade.
dir += track->dir * track->E;
 
  626         cascade.
t    = track->t;
 
  627         cascade.
pos  = track->pos;
 
bool from_tau(const Hit &hit)
Test whether given hit was produced by a tau. 
 
JVertex3D getVertex(const Trk &track)
Get vertex. 
 
bool is_electron(const Trk &track)
Test whether given track is a (anti-)electron. 
 
int count_electrons(const Evt &evt)
Count the number of electrons in a given event. 
 
JHitType_t
Enumeration of hit types based on km3 codes. 
 
Scattered light from primary shower. 
 
bool is_proton(const Trk &track)
Test whether given track is a (anti-)proton. 
 
const Trk & get_muon(const Evt &evt)
Get first muon from the event tracklist. 
 
Data structure for direction in three dimensions. 
 
JTrack3E getTrack(const Trk &track)
Get track. 
 
Direct light from delta-rays. 
 
double t
track time [ns] (when the particle is at pos ) 
 
Scattered light from muon. 
 
JTransformation3D getTransformation(const Trk &track)
Get transformation. 
 
void 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 defin...
 
bool has_neutrino(const Evt &evt)
Test whether given event has an incoming neutrino. 
 
bool is_muon(const Trk &track)
Test whether given track is a (anti-)muon. 
 
bool has_electron(const Evt &evt)
Test whether given event has an electron. 
 
JTOOLS::JRange< double > JTimeRange
Type definition for time range (unit [ns]). 
 
int count_muons(const Evt &evt)
Count the number of muons in a given event. 
 
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message. 
 
bool has_particleID(const Trk &track, const int type)
Test whether given track corresponds to given particle type. 
 
bool is_charged_lepton(const Trk &track)
Test whether given track is a charged lepton. 
 
Scattered light from Bremsstrahlung. 
 
Direct light from Bremsstrahlung. 
 
double getTime(const Hit &hit)
Get true time of hit. 
 
bool is_baryon(const Trk &track)
Test whether given track is a baryon (is hadron and third digit of PDG code is not zero) ...
 
double E
Energy [GeV] (either MC truth or reconstructed) 
 
Direct light from primary shower. 
 
static const int AASHOWER_RECONSTRUCTION_TYPE
AAshower reconstruction type for AAnet. 
 
bool is_noise(const Hit &hit)
Verify hit origin. 
 
JTimeRange getTimeRange(const Evt &event)
Get time range (i.e. time between earliest and latest hit) of Monte Carlo event. 
 
bool is_neutrino(const Trk &track)
Test whether given track is a neutrino. 
 
bool is_lepton(const Trk &track)
Test whether given track is a lepton. 
 
double getW(const Trk &track, const size_t index, const double value)
Get track information. 
 
double a
hit amplitude (in p.e.) 
 
The Vec class is a straightforward 3-d vector, which also works in pyroot. 
 
JDirection3D getDirection(const Vec &dir)
Get direction. 
 
Trk get_hadronic_cascade(const Evt &evt)
Auxiliary function to get average direction and total energy of a hadronic cascade. 
 
const Trk & get_electron(const Evt &evt)
Get first electron from the event tracklist. 
 
double getDY() const 
Get y direction. 
 
double getDX() const 
Get x direction. 
 
JAxis3D getAxis(const Trk &track)
Get axis. 
 
JPosition3D getPosition(const Vec &pos)
Get position. 
 
std::vector< double > fitinf
place to store additional fit info, for jgandalf, see JFitParameters.hh 
 
double getY() const 
Get y position. 
 
Vec & normalize()
Normalise this vector. 
 
bool is_photon(const Trk &track)
Test whether given track is a photon or neutral pion. 
 
bool from_hadron(const Hit &hit)
Test whether given hit was produced by a hadronic shower. 
 
int type
MC: particle type in PDG encoding. 
 
bool is_pion(const Trk &track)
Test whether given track is a charged pion. 
 
Vec pos
postion of the track at time t [m] 
 
int count_taus(const Evt &evt)
Count the number of taus in a given event. 
 
const Trk & get_tau(const Evt &evt)
Get first tau from the event tracklist. 
 
bool has_muon(const Evt &evt)
Test whether given event has a muon. 
 
std::vector< Hit > mc_hits
MC: list of MC truth hits. 
 
double t
hit time (from tdc+calibration or MC truth) 
 
Scattered light from delta-rays. 
 
Definition of particle types. 
 
double getX() const 
Get x position. 
 
bool has_tau(const Evt &evt)
Test whether given event has a tau. 
 
double getNPE(const Hit &hit)
Get true charge of hit. 
 
Data structure for position in three dimensions. 
 
bool is_neutron(const Trk &track)
Test whether given track is a (anti-)neutron. 
 
Exception for accessing an index in a collection that is outside of its range. 
 
const Trk & get_neutrino(const Evt &evt)
Get incoming neutrino. 
 
bool is_hadron(const Trk &track)
Test whether given track is a hadron. 
 
bool is_tau(const Trk &track)
Test whether given track is a (anti-)tau. 
 
bool from_electron(const Hit &hit)
Test whether given hit was produced by an electron. 
 
The Trk class represents a Monte Carlo (MC) particle as well as a reconstructed track/shower. 
 
int type
particle type or parametrisation used for hit (mc only) 
 
double getZ() const 
Get z position. 
 
double getDZ() const 
Get z direction. 
 
std::vector< Trk > mc_trks
MC: list of MC truth tracks. 
 
bool is_meson(const Trk &track)
Test whether given track is a meson (is hadron and third digit of PDG code is zero) ...
 
The Evt class respresent a Monte Carlo (MC) event as well as an offline event. 
 
int count_hadrons(const Evt &evt)
Count the number of hadrons in a given event (not including neutral pions) 
 
bool from_muon(const Hit &hit)
Test whether given hit was produced by a muon.