Jpp
|
Extensions to AAnet data format. More...
Classes | |
struct | can |
The cylinder used for photon tracking. More... | |
struct | coord_origin |
Coordinate origin. More... | |
struct | cut |
General purpose class of phase space generation. More... | |
struct | cut_in |
Phase space of incoming particle. More... | |
struct | cut_nu |
Phase space of incident neutrino. More... | |
struct | cut_primary |
Phase space of primary particle. More... | |
struct | cut_seamuon |
Phase space of atmospheric muon generation. More... | |
struct | DAQ |
Livetime of DAQ data. More... | |
struct | detector |
Detector file. More... | |
struct | end_event |
End of event record. More... | |
struct | fixedcan |
The fixe cylinder used for photon tracking. More... | |
struct | flux |
Neutrino flux. More... | |
struct | generator |
Description of Monte Carlo event generation applications. More... | |
struct | genhencut |
Phase space for incident neutrino. More... | |
struct | genvol |
Neutrino vertex volume. More... | |
struct | getCorsikaHeader |
Match header for Corsika. More... | |
struct | getDAQHeader |
Match header for DAQ. More... | |
struct | getGenhenHeader |
Match header for genhen. More... | |
struct | getGenieHeader |
Match header for genie. More... | |
struct | getGSeaGenHeader |
Match header for gseagen. More... | |
struct | getKM3Header |
Match header for km3. More... | |
struct | getKM3SimHeader |
Match header for km3. More... | |
struct | getMUPAGEHeader |
Match header for MUPAGE. More... | |
struct | getSireneHeader |
Match header for JSirene.cc. More... | |
struct | has_history |
Auxiliary class to test whether given track has specified history. More... | |
struct | JEvtEvaluator |
Auxiliary class to determine value of Evt objects. More... | |
struct | JHead |
Monte Carlo run header. More... | |
struct | JHit_t |
Auxiliary class to set-up Hit. More... | |
struct | JHits_t |
Auxiliary data structure for list of hits with hit merging capability. More... | |
struct | JParticle |
Auxiliary class to handle particle name, codes and mass. More... | |
struct | JPDB |
Collection of particles. More... | |
struct | JTrk_t |
Auxiliary class to set-up Trk. More... | |
struct | JWeightEvent |
Low-level interface for event weighing. More... | |
struct | JWeightEventHelper |
Helper class for event weighing. More... | |
struct | JWeightFileScanner |
Template file scanner with event weight. More... | |
struct | JWeightMupage |
Implementation of event weighing for MUPAGE data. More... | |
struct | livetime |
Normalisation of MUPAGE events. More... | |
struct | muon_desc_file |
Muon descriptor file. More... | |
struct | norma |
Normlisation of CORSIKA events. More... | |
struct | physics |
Generator for neutrino interaction. More... | |
struct | primary |
Primary particle. More... | |
struct | quality_sorter |
Reconstruction type dependent comparison of track quality. More... | |
struct | seabottom |
The bottom of the sea. More... | |
struct | simul |
Generator for simulation. More... | |
struct | spectrum |
Neutrino energy spectrum. More... | |
struct | start_run |
Start of run record. More... | |
struct | String |
General purpose string class. More... | |
struct | target |
Target. More... | |
struct | tgen |
Scaling time of neutrino interaction generators. More... | |
struct | XSecFile |
Neutrino cross section file. More... | |
Functions | |
double | getTime (const Hit &hit) |
Get true time of hit. More... | |
double | getNPE (const Hit &hit) |
Get true charge of hit. More... | |
bool | is_noise (const Hit &hit) |
Verify hit origin. More... | |
JTimeRange | getTimeRange (const Evt &event) |
Get time range (i.e. More... | |
JTimeRange | getTimeRange (const Evt &event, const JTimeRange &T_ns) |
Get time range (i.e. More... | |
JPosition3D | getPosition (const Vec &v) |
Get position. More... | |
JPosition3D | getPosition (const Trk &track) |
Get position. More... | |
JDirection3D | getDirection (const Vec &v) |
Get direction. More... | |
JDirection3D | getDirection (const Trk &track) |
Get direction. More... | |
JAxis3D | getAxis (const Trk &track) |
Get axis. More... | |
JTrack3E | getTrack (const Trk &track) |
Get track. More... | |
JVertex3D | getVertex (const Trk &track) |
Get vertex. More... | |
JTransformation3D | getTransformation (const Trk &track) |
Get transformation. More... | |
JHitL0 | getHit (const Hit &hit) |
Get transformation. More... | |
JHitL0 | getHit (const Hit &hit, const JModuleRouter &router) |
Get transformation. More... | |
JHitL0 | getHit (const Hit &hit, const JPMTRouter &router) |
Get transformation. More... | |
bool | is_photon (const Trk &track) |
Test whether given track is a photon or neutral pion. More... | |
bool | is_neutrino (const Trk &track) |
Test whether given track is a neutrino. More... | |
bool | is_electron (const Trk &track) |
Test whether given track is a (anti-)electron. More... | |
bool | is_muon (const Trk &track) |
Test whether given track is a (anti-)muon. More... | |
bool | is_tau (const Trk &track) |
Test whether given track is a (anti-)tau. More... | |
bool | is_pion (const Trk &track) |
Test whether given track is a charged pion. More... | |
bool | is_proton (const Trk &track) |
Test whether given track is a (anti-)proton. More... | |
bool | is_neutron (const Trk &track) |
Test whether given track is a (anti-)neutron. More... | |
bool | is_hadron (const Trk &track) |
Test whether given track is a hadron. More... | |
bool | has_particleID (const Trk &track, const int type) |
Test whether given track corresponds to given particle type. More... | |
bool | has_neutrino (const Evt &evt) |
Test whether given event has an incoming neutrino. More... | |
const Trk & | get_neutrino (const Evt &evt) |
Get incoming neutrino. More... | |
int | count_electrons (const Evt &evt) |
Count the number of electrons in a given event. More... | |
bool | has_electron (const Evt &evt) |
Test whether given event has an electron. More... | |
const Trk & | get_electron (const Evt &evt) |
Get first electron from the event tracklist. More... | |
bool | from_electron (const Hit &hit) |
Test whether given hit was produced by an electron. More... | |
int | count_muons (const Evt &evt) |
Count the number of muons in a given event. More... | |
bool | has_muon (const Evt &evt) |
Test whether given event has a muon. More... | |
const Trk & | get_muon (const Evt &evt) |
Get first muon from the event tracklist. More... | |
bool | from_muon (const Hit &hit) |
Test whether given hit was produced by a muon. More... | |
int | count_taus (const Evt &evt) |
Count the number of taus in a given event. More... | |
bool | has_tau (const Evt &evt) |
Test whether given event has a tau. More... | |
const Trk & | get_tau (const Evt &evt) |
Get first tau from the event tracklist. More... | |
bool | from_tau (const Hit &hit) |
Test whether given hit was produced by a tau. More... | |
int | count_hadrons (const Evt &evt) |
Count the number of hadrons in a given event (not including neutral pions) More... | |
bool | from_hadron (const Hit &hit) |
Test whether given hit was produced by a hadronic shower. More... | |
Trk | get_hadronic_cascade (const Evt &evt) |
Auxiliary function to get average direction and total energy of a hadronic cascade. More... | |
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 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 | has_muon_prefit (const Trk &track) |
Test whether given track has muon prefit in history. More... | |
bool | has_muon_simplex (const Trk &track) |
Test whether given track has muon simplex fit in history. More... | |
bool | has_muon_gandalf (const Trk &track) |
Test whether given track has muon gandalf fit in history. More... | |
bool | has_muon_energy (const Trk &track) |
Test whether given track has muon energy fit in history. More... | |
bool | has_muon_start (const Trk &track) |
Test whether given track has muon start fit in history. More... | |
bool | has_muon_fit (const Trk &track) |
Test whether given track has default muon fit in history. More... | |
bool | has_shower_prefit (const Trk &track) |
Test whether given track has shower prefit in history. More... | |
bool | has_shower_positionfit (const Trk &track) |
Test whether given track has shower position fit in history. More... | |
bool | has_shower_completefit (const Trk &track) |
Test whether given track has shower complete fit in history. More... | |
bool | has_shower_fit (const Trk &track) |
Test whether given track has default shower fit in history. More... | |
bool | has_aashower_fit (const Trk &track) |
Test whether given track has default shower fit in history. More... | |
template<class JTrackSelector_t > | |
bool | has_reconstructed_track (const Evt &evt, JTrackSelector_t selector) |
Test whether given event has a track according selection. More... | |
template<int reconstruction_type> | |
bool | has_reconstructed_track (const Evt &evt, const JRange< int > range=JRange< int >()) |
Test whether given event has a track according selection. More... | |
bool | has_reconstructed_muon (const Evt &evt) |
Test whether given event has a track with muon reconstruction. More... | |
bool | has_reconstructed_shower (const Evt &evt) |
Test whether given event has a track with shower reconstruction. More... | |
bool | 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 & | get_best_reconstructed_track (const Evt &evt, JTrackSelector_t selector, JQualitySorter_t comparator) |
Get best reconstructed track. More... | |
template<int reconstruction_type> | |
const Trk & | get_best_reconstructed_track (const Evt &evt, const JRange< int > range=JRange< int >()) |
Get best reconstructed track. More... | |
const Trk & | get_best_reconstructed_muon (const Evt &evt) |
Get best reconstructed muon. More... | |
const Trk & | get_best_reconstructed_shower (const Evt &evt) |
Get best reconstructed shower. More... | |
const Trk & | get_best_reconstructed_aashower (const Evt &evt) |
Get best reconstructed aashower. More... | |
void | copy (const Head &from, JHead &to) |
Copy header from from to to . More... | |
void | copy (const JHead &from, Head &to) |
Copy header from from to to . More... | |
std::string | getTag (const std::string &tag) |
Get tag without aanet extension "_<counter>" for identical tags. More... | |
template<class T > | |
bool | is_valid (const T &value) |
Check validity of given value. More... | |
bool | operator== (const Head &first, const Head &second) |
Equal operator. More... | |
bool | operator< (const Head &first, const Head &second) |
Less than operator. More... | |
bool | is_mupage (const JHead &header) |
Check for generator. More... | |
bool | is_genhen (const JHead &header) |
Check for generator. More... | |
bool | is_genie (const JHead &header) |
Check for generator. More... | |
bool | is_sirene (const JHead &header) |
Check for detector simulation. More... | |
bool | is_km3 (const JHead &header) |
Check for detector simulation. More... | |
bool | is_km3sim (const JHead &header) |
Check for detector simulation. More... | |
bool | is_daq (const JHead &header) |
Check for real data. More... | |
template<class T > | |
T | get (const JHead &header) |
Get object from header. More... | |
template<> | |
Vec | get (const JHead &header) |
Get position offset of detector due to generator. More... | |
template<> | |
JPosition3D | get (const JHead &header) |
Get position offset of detector due to generator. More... | |
template<> | |
JCylinder3D | get (const JHead &header) |
Get cylinder corresponding to can. More... | |
Variables | |
static const int | AASHOWER_RECONSTRUCTION_TYPE = 101 |
AAshower reconstruction type for AAnet. More... | |
static const JEvtEvaluator | getEvtValue |
Function object for evaluation of DAQ objects. More... | |
static const char | AANET_TAG_SEPARATOR = '_' |
Separator for AAnet tag extension for multiple tags ("_<counter>"). More... | |
Extensions to AAnet data format.
enum JAANET::JHitType_t |
Enumeration of hit types based on km3 codes.
Definition at line 67 of file JAAnetToolkit.hh.
Enumeration of hit types based on Geant4 codes, for compatbility with KM3Sim.
Definition at line 18 of file JParticleTypes.hh.
enum JAANET::JTrackType_t |
Enumeration of track types based on PDG codes.
Definition at line 64 of file JParticleTypes.hh.
|
inline |
Get true time of hit.
hit | hit |
Definition at line 87 of file JAAnetToolkit.hh.
|
inline |
Get true charge of hit.
hit | hit |
Definition at line 104 of file JAAnetToolkit.hh.
|
inline |
Verify hit origin.
hit | hit |
Definition at line 121 of file JAAnetToolkit.hh.
|
inline |
Get time range (i.e.
earlist and latest hit time) of Monte Carlo event. Note that the global event time in not taken into account.
event | event |
Definition at line 134 of file JAAnetToolkit.hh.
|
inline |
Get time range (i.e.
earlist and latest hit time) of Monte Carlo event. The given time window is offset so that the lower limit is equal to the earliest hit time. The time window is then applied to all hits. Note that the global event time in not taken into account.
event | event |
T_ns | time window [ns] |
Definition at line 158 of file JAAnetToolkit.hh.
|
inline |
|
inline |
Get position.
track | track |
Definition at line 209 of file JAAnetToolkit.hh.
|
inline |
|
inline |
Get direction.
track | track |
Definition at line 232 of file JAAnetToolkit.hh.
|
inline |
Get transformation.
track | track |
Definition at line 280 of file JAAnetToolkit.hh.
Get transformation.
hit | hit |
Definition at line 292 of file JAAnetToolkit.hh.
|
inline |
Get transformation.
hit | hit |
router | module router |
Definition at line 307 of file JAAnetToolkit.hh.
|
inline |
Get transformation.
hit | hit |
router | pmt router |
Definition at line 324 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a photon or neutral pion.
track | track |
Definition at line 340 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a neutrino.
track | track |
Definition at line 349 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a (anti-)electron.
track | track |
Definition at line 359 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a (anti-)muon.
track | track |
Definition at line 367 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a (anti-)tau.
track | track |
Definition at line 375 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a charged pion.
track | track |
Definition at line 383 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a (anti-)proton.
track | track |
Definition at line 391 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a (anti-)neutron.
track | track |
Definition at line 399 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a hadron.
track | track |
Definition at line 407 of file JAAnetToolkit.hh.
|
inline |
Test whether given track corresponds to given particle type.
track | track |
type | particle type |
Definition at line 419 of file JAAnetToolkit.hh.
|
inline |
Test whether given event has an incoming neutrino.
evt | event |
Definition at line 427 of file JAAnetToolkit.hh.
Get incoming neutrino.
evt | event |
Definition at line 438 of file JAAnetToolkit.hh.
|
inline |
Count the number of electrons in a given event.
evt | event |
Definition at line 452 of file JAAnetToolkit.hh.
|
inline |
Test whether given event has an electron.
evt | event |
Definition at line 463 of file JAAnetToolkit.hh.
Get first electron from the event tracklist.
evt | event |
Definition at line 474 of file JAAnetToolkit.hh.
|
inline |
Test whether given hit was produced by an electron.
Warning: This method will only work with the output of KM3Sim. For JSirene or KM3, you should check if track.id == hit.origin
instead.
hit | hit |
Definition at line 491 of file JAAnetToolkit.hh.
|
inline |
Count the number of muons in a given event.
evt | event |
Definition at line 502 of file JAAnetToolkit.hh.
|
inline |
Test whether given event has a muon.
evt | event |
Definition at line 513 of file JAAnetToolkit.hh.
Get first muon from the event tracklist.
evt | event |
Definition at line 524 of file JAAnetToolkit.hh.
|
inline |
Test whether given hit was produced by a muon.
Warning: This method will only work with the output of KM3Sim. For JSirene or KM3, you should check if track.id == hit.origin
instead.
hit | hit |
Definition at line 541 of file JAAnetToolkit.hh.
|
inline |
Count the number of taus in a given event.
evt | event |
Definition at line 552 of file JAAnetToolkit.hh.
|
inline |
Test whether given event has a tau.
evt | event |
Definition at line 563 of file JAAnetToolkit.hh.
Get first tau from the event tracklist.
evt | event |
Definition at line 574 of file JAAnetToolkit.hh.
|
inline |
Test whether given hit was produced by a tau.
Warning: This method will only work with the output of KM3Sim. For JSirene or KM3, you should check if track.id == hit.origin instead.
hit | hit |
Definition at line 591 of file JAAnetToolkit.hh.
|
inline |
Count the number of hadrons in a given event (not including neutral pions)
evt | event |
Definition at line 602 of file JAAnetToolkit.hh.
|
inline |
Test whether given hit was produced by a hadronic shower.
Warning: This method will only work with the output of KM3Sim. For JSirene or KM3, you should check if track.id == hit.origin instead.
hit | hit |
Definition at line 616 of file JAAnetToolkit.hh.
Auxiliary function to get average direction and total energy of a hadronic cascade.
evt | event |
Definition at line 627 of file JAAnetToolkit.hh.
|
inline |
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.
evt | event |
tOff | time offset [ns] |
Definition at line 653 of file JAAnetToolkit.hh.
|
inline |
Test whether given track has muon prefit in history.
track | track |
Definition at line 727 of file JAAnetToolkit.hh.
|
inline |
Test whether given track has muon simplex fit in history.
track | track |
Definition at line 738 of file JAAnetToolkit.hh.
|
inline |
Test whether given track has muon gandalf fit in history.
track | track |
Definition at line 749 of file JAAnetToolkit.hh.
|
inline |
Test whether given track has muon energy fit in history.
track | track |
Definition at line 760 of file JAAnetToolkit.hh.
|
inline |
Test whether given track has muon start fit in history.
track | track |
Definition at line 771 of file JAAnetToolkit.hh.
|
inline |
Test whether given track has default muon fit in history.
track | track |
Definition at line 782 of file JAAnetToolkit.hh.
|
inline |
Test whether given track has shower prefit in history.
track | track |
Definition at line 793 of file JAAnetToolkit.hh.
|
inline |
Test whether given track has shower position fit in history.
track | track |
Definition at line 804 of file JAAnetToolkit.hh.
|
inline |
Test whether given track has shower complete fit in history.
track | track |
Definition at line 815 of file JAAnetToolkit.hh.
|
inline |
Test whether given track has default shower fit in history.
track | track |
Definition at line 826 of file JAAnetToolkit.hh.
|
inline |
Test whether given track has default shower fit in history.
track | track |
Definition at line 837 of file JAAnetToolkit.hh.
|
inline |
Test whether given event has a track according selection.
The track selector corresponds to the function operator bool selector(const Trk&);
.
evt | event |
selector | track selector |
Definition at line 851 of file JAAnetToolkit.hh.
|
inline |
Test whether given event has a track according selection.
evt | event |
range | range of application types |
Definition at line 864 of file JAAnetToolkit.hh.
|
inline |
Test whether given event has a track with muon reconstruction.
evt | event |
Definition at line 875 of file JAAnetToolkit.hh.
|
inline |
Test whether given event has a track with shower reconstruction.
evt | event |
Definition at line 886 of file JAAnetToolkit.hh.
|
inline |
Test whether given event has a track with aashower reconstruction.
evt | event |
Definition at line 897 of file JAAnetToolkit.hh.
|
inline |
Get best reconstructed track.
The track selector corresponds to the function operator bool selector(const Trk&);
and the track comparator to bool comparator(const Trk&, const Trk&);
.
evt | event |
selector | track selector |
comparator | track comparator |
Definition at line 913 of file JAAnetToolkit.hh.
|
inline |
Get best reconstructed track.
evt | event |
range | range of application types |
Definition at line 939 of file JAAnetToolkit.hh.
Get best reconstructed muon.
evt | event |
Definition at line 951 of file JAAnetToolkit.hh.
Get best reconstructed shower.
evt | event |
Definition at line 962 of file JAAnetToolkit.hh.
Get best reconstructed aashower.
evt | event |
Definition at line 973 of file JAAnetToolkit.hh.
|
inline |
|
inline |
|
inline |
Check for generator.
header | header |
Definition at line 199 of file JHeadToolkit.hh.
|
inline |
Check for generator.
header | header |
Definition at line 211 of file JHeadToolkit.hh.
|
inline |
Check for generator.
header | header |
Definition at line 223 of file JHeadToolkit.hh.
|
inline |
Check for detector simulation.
header | header |
Definition at line 236 of file JHeadToolkit.hh.
|
inline |
Check for detector simulation.
header | header |
Definition at line 248 of file JHeadToolkit.hh.
|
inline |
Check for detector simulation.
header | header |
Definition at line 260 of file JHeadToolkit.hh.
|
inline |
Check for real data.
header | header |
Definition at line 272 of file JHeadToolkit.hh.
|
inline |
Get object from header.
header | header |
Get object from header.
header | header |
Get object from header.
header | header |
Definition at line 295 of file JHeadToolkit.hh.
Get position offset of detector due to generator.
Get object from header.
header | header |
Definition at line 295 of file JHeadToolkit.hh.
|
inline |
|
inline |
Get cylinder corresponding to can.
Get object from header.
header | header |
Definition at line 335 of file JHeadToolkit.hh.
|
static |
AAshower reconstruction type for AAnet.
Definition at line 62 of file JAAnetToolkit.hh.
|
static |
Function object for evaluation of DAQ objects.
Definition at line 48 of file JEvtEvaluator.hh.