Jpp
|
Extensions to AAnet data format. More...
Classes | |
struct | JEvtEvaluator |
Auxiliary class to determine value of Evt objects. More... | |
struct | start_run |
Start of run record. More... | |
struct | String |
General purpose string class. More... | |
struct | detector |
Detector file. More... | |
struct | muon_desc_file |
Muon descriptor file. More... | |
struct | target |
Target. More... | |
struct | XSecFile |
Neutrino cross section file. More... | |
struct | drawing |
Drawing. More... | |
struct | cut |
General purpose class of phase space generation. More... | |
struct | cut_primary |
Phase space of primary particle. More... | |
struct | cut_seamuon |
Phase space of atmospheric muon generation. More... | |
struct | cut_in |
Phase space of incoming particle. More... | |
struct | cut_nu |
Phase space of incident neutrino. More... | |
struct | generator |
Description of Monte Carlo event generation applications. More... | |
struct | physics |
Physics information. More... | |
struct | simul |
Generator for simulation. More... | |
struct | spectrum |
Neutrino energy spectrum. More... | |
struct | can |
The cylinder used for photon tracking. More... | |
struct | fixedcan |
The fixed cylinder used for photon tracking. More... | |
struct | genvol |
Neutrino vertex volume. More... | |
struct | coord_origin |
Coordinate origin. More... | |
struct | genhencut |
Phase space for incident neutrino. More... | |
struct | norma |
Normlisation of CORSIKA events. More... | |
struct | livetime |
Normalisation of MUPAGE events. More... | |
struct | flux |
Neutrino flux. More... | |
struct | seabottom |
The bottom of the sea. More... | |
struct | depth |
Depth. More... | |
struct | DAQ |
Livetime of DAQ data. More... | |
struct | tgen |
Scaling time of neutrino interaction generators (number of seconds in one year). More... | |
struct | primary |
Primary particle. More... | |
struct | end_event |
End of event record. More... | |
struct | JHead |
Monte Carlo run header. More... | |
struct | JHeadHelper |
Auxiliary map of application to check method. More... | |
struct | JHeadWriter |
Implementation for Head output of JHead objects with ROOT dictionary. 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 | JVolume |
Auxiliary class for histogramming of effective volume. More... | |
struct | JWeightDAQ |
Implementation of event weighing for DAQ data. More... | |
struct | JWeightEvent |
Low-level interface for event weighing. More... | |
struct | JWeightEventHelper |
Helper class for event weighing. More... | |
struct | JEventWeighter |
Look-up table for event weighters. More... | |
struct | JWeightGSeaGen |
Implementation of event weighing for GSeaGen data. More... | |
struct | JWeightKM3BUU |
Implementation of event weighing for KM3BUU data. More... | |
struct | JWeightMupage |
Implementation of event weighing for MUPAGE data. More... | |
Typedefs | |
typedef bool(* | is_head )(const JHead &) |
Type definition of test function of header. 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. time between earliest and latest hit) of Monte Carlo event. More... | |
JTimeRange | 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 | getPosition (const Vec &pos) |
Get position. More... | |
Vec | getPosition (const JPosition3D &pos) |
Get position. More... | |
JPosition3D | getPosition (const Trk &track) |
Get position. More... | |
JDirection3D | getDirection (const Vec &dir) |
Get direction. More... | |
Vec | getDirection (const JDirection3D &dir) |
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... | |
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_lepton (const Trk &track) |
Test whether given track is a lepton. More... | |
bool | is_charged_lepton (const Trk &track) |
Test whether given track is a charged lepton. More... | |
bool | is_hadron (const Trk &track) |
Test whether given track is a hadron. More... | |
bool | is_meson (const Trk &track) |
Test whether given track is a meson (is hadron and third digit of PDG code is zero) More... | |
bool | 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 | 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... | |
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... | |
std::string | getTag (const std::string &tag, const int counter) |
Get tag with aanet extension "_<counter>" for identical tags. 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_genhen (const JHead &header) |
Check for generator. More... | |
bool | is_gseagen (const JHead &header) |
Check for generator. More... | |
bool | is_mupage (const JHead &header) |
Check for generator. More... | |
bool | is_corsika (const JHead &header) |
Check for generator. More... | |
bool | is_km3buu (const JHead &header) |
Check for generator. 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_sirene (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... | |
static JHeadHelper | get_is_head |
Function object to get check method for given application. More... | |
JEventWeighter | getEventWeighter |
Function object for mapping header to event weighter. More... | |
Extensions to AAnet data format.
typedef bool(* JAANET::is_head)(const JHead &) |
Type definition of test function of header.
Definition at line 27 of file JHeadToolkit.hh.
enum JAANET::JHitType_t |
Enumeration of hit types based on km3 codes.
Definition at line 59 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 96 of file JParticleTypes.hh.
|
inline |
Get true time of hit.
hit | hit |
Definition at line 79 of file JAAnetToolkit.hh.
|
inline |
Get true charge of hit.
hit | hit |
Definition at line 91 of file JAAnetToolkit.hh.
|
inline |
Verify hit origin.
hit | hit |
Definition at line 103 of file JAAnetToolkit.hh.
|
inline |
Get time range (i.e. time between earliest and latest hit) of Monte Carlo event.
Note that the global event time in not taken into account.
event | event |
Definition at line 116 of file JAAnetToolkit.hh.
|
inline |
Get time range (i.e. time between earliest and latest hit) of Monte Carlo event.
The resulting time range is larger than or equal to the given time window.
Note that the global event time in not taken into account.
event | event |
T_ns | time window [ns] |
Definition at line 139 of file JAAnetToolkit.hh.
|
inline |
|
inline |
Get position.
pos | position |
Definition at line 169 of file JAAnetToolkit.hh.
|
inline |
Get position.
track | track |
Definition at line 181 of file JAAnetToolkit.hh.
|
inline |
|
inline |
Get direction.
dir | direction |
Definition at line 205 of file JAAnetToolkit.hh.
|
inline |
Get direction.
track | track |
Definition at line 217 of file JAAnetToolkit.hh.
Get axis.
track | track |
Definition at line 229 of file JAAnetToolkit.hh.
Get vertex.
track | track |
Definition at line 253 of file JAAnetToolkit.hh.
|
inline |
Get transformation.
track | track |
Definition at line 265 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a photon or neutral pion.
track | track |
Definition at line 277 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a neutrino.
track | track |
Definition at line 286 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a (anti-)electron.
track | track |
Definition at line 296 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a (anti-)muon.
track | track |
Definition at line 304 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a (anti-)tau.
track | track |
Definition at line 312 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a charged pion.
track | track |
Definition at line 320 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a (anti-)proton.
track | track |
Definition at line 328 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a (anti-)neutron.
track | track |
Definition at line 336 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a lepton.
track | track |
Definition at line 344 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a charged lepton.
track | track |
Definition at line 355 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a hadron.
track | track |
Definition at line 365 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a meson (is hadron and third digit of PDG code is zero)
track | track |
Definition at line 374 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a baryon (is hadron and third digit of PDG code is not zero)
track | track |
Definition at line 383 of file JAAnetToolkit.hh.
|
inline |
Test whether given track corresponds to given particle type.
track | track |
type | particle type |
Definition at line 393 of file JAAnetToolkit.hh.
|
inline |
Test whether given event has an incoming neutrino.
evt | event |
Definition at line 401 of file JAAnetToolkit.hh.
Get incoming neutrino.
evt | event |
Definition at line 412 of file JAAnetToolkit.hh.
|
inline |
Count the number of electrons in a given event.
evt | event |
Definition at line 426 of file JAAnetToolkit.hh.
|
inline |
Test whether given event has an electron.
evt | event |
Definition at line 437 of file JAAnetToolkit.hh.
Get first electron from the event tracklist.
evt | event |
Definition at line 448 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 465 of file JAAnetToolkit.hh.
|
inline |
Count the number of muons in a given event.
evt | event |
Definition at line 476 of file JAAnetToolkit.hh.
|
inline |
Test whether given event has a muon.
evt | event |
Definition at line 487 of file JAAnetToolkit.hh.
Get first muon from the event tracklist.
evt | event |
Definition at line 498 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 515 of file JAAnetToolkit.hh.
|
inline |
Count the number of taus in a given event.
evt | event |
Definition at line 526 of file JAAnetToolkit.hh.
|
inline |
Test whether given event has a tau.
evt | event |
Definition at line 537 of file JAAnetToolkit.hh.
Get first tau from the event tracklist.
evt | event |
Definition at line 548 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 565 of file JAAnetToolkit.hh.
|
inline |
Count the number of hadrons in a given event (not including neutral pions)
evt | event |
Definition at line 576 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 590 of file JAAnetToolkit.hh.
Auxiliary function to get average direction and total energy of a hadronic cascade.
evt | event |
Definition at line 601 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 627 of file JAAnetToolkit.hh.
void JAANET::copy | ( | const Head & | from, |
JHead & | to | ||
) |
Copy header from from
to to
.
from | header |
to | header |
Definition at line 139 of file JHead.cc.
void JAANET::copy | ( | const JHead & | from, |
Head & | to | ||
) |
Copy header from from
to to
.
from | header |
to | header |
Definition at line 178 of file JHead.cc.
|
inline |
Get tag without aanet extension "_<counter>" for identical tags.
tag | tag |
Definition at line 64 of file JHead.hh.
|
inline |
Get tag with aanet extension "_<counter>" for identical tags.
tag | tag |
counter | counter |
Definition at line 92 of file JHead.hh.
Equal operator.
Note that this operator uses the JHead::match method.
first | first header |
second | second header |
Definition at line 1520 of file JHead.hh.
Less than operator.
first | first header |
second | second header |
Definition at line 1534 of file JHead.hh.
|
inline |
Check for generator.
header | header |
Definition at line 36 of file JHeadToolkit.hh.
|
inline |
Check for generator.
header | header |
Definition at line 60 of file JHeadToolkit.hh.
|
inline |
Check for generator.
header | header |
Definition at line 78 of file JHeadToolkit.hh.
|
inline |
Check for generator.
header | header |
Definition at line 96 of file JHeadToolkit.hh.
|
inline |
Check for generator.
header | header |
Definition at line 114 of file JHeadToolkit.hh.
|
inline |
Check for detector simulation.
header | header |
Definition at line 132 of file JHeadToolkit.hh.
|
inline |
Check for detector simulation.
header | header |
Definition at line 150 of file JHeadToolkit.hh.
|
inline |
Check for detector simulation.
header | header |
Definition at line 168 of file JHeadToolkit.hh.
|
inline |
Check for real data.
header | header |
Definition at line 186 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 254 of file JHeadToolkit.hh.
|
inline |
Get position offset of detector due to generator.
Get object from header.
header | header |
Definition at line 254 of file JHeadToolkit.hh.
|
inline |
Get position offset of detector due to generator.
Get object from header.
header | header |
Definition at line 279 of file JHeadToolkit.hh.
|
inline |
Get cylinder corresponding to can.
Get object from header.
header | header |
Definition at line 294 of file JHeadToolkit.hh.
|
static |
AAshower reconstruction type for AAnet.
Definition at line 54 of file JAAnetToolkit.hh.
|
static |
Function object for evaluation of DAQ objects.
Definition at line 48 of file JEvtEvaluator.hh.
|
static |
|
static |
Function object to get check method for given application.
Definition at line 224 of file JHeadToolkit.hh.
JEventWeighter JAANET::getEventWeighter |
Function object for mapping header to event weighter.
Definition at line 5 of file JWeightEventToolkit.cc.