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 |
Generator for neutrino interaction. 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 fixe 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 | DAQ |
Livetime of DAQ data. More... | |
struct | tgen |
Scaling time of neutrino interaction generators. More... | |
struct | primary |
Primary particle. More... | |
struct | end_event |
End of event record. More... | |
struct | JHead |
Monte Carlo run header. More... | |
struct | getMUPAGEHeader |
Match header for MUPAGE. More... | |
struct | getGenhenHeader |
Match header for genhen. More... | |
struct | getGenieHeader |
Match header for genie. More... | |
struct | getGSeaGenHeader |
Match header for gseagen. More... | |
struct | getSireneHeader |
Match header for JSirene.cc. More... | |
struct | getKM3Header |
Match header for km3. More... | |
struct | getKM3SimHeader |
Match header for km3. More... | |
struct | getCorsikaHeader |
Match header for Corsika. More... | |
struct | getDAQHeader |
Match header for DAQ. 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 | JWeightMupage |
Implementation of event weighing for MUPAGE data. 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... | |
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 &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... | |
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... | |
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 68 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 88 of file JAAnetToolkit.hh.
|
inline |
Get true charge of hit.
hit | hit |
Definition at line 105 of file JAAnetToolkit.hh.
|
inline |
Verify hit origin.
hit | hit |
Definition at line 122 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 135 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 158 of file JAAnetToolkit.hh.
|
inline |
Get position.
v | vector |
Definition at line 176 of file JAAnetToolkit.hh.
|
inline |
Get position.
track | track |
Definition at line 188 of file JAAnetToolkit.hh.
|
inline |
Get direction.
v | vector |
Definition at line 200 of file JAAnetToolkit.hh.
|
inline |
Get direction.
track | track |
Definition at line 211 of file JAAnetToolkit.hh.
Get axis.
track | track |
Definition at line 223 of file JAAnetToolkit.hh.
Get vertex.
track | track |
Definition at line 247 of file JAAnetToolkit.hh.
|
inline |
Get transformation.
track | track |
Definition at line 259 of file JAAnetToolkit.hh.
Get transformation.
hit | hit |
Definition at line 271 of file JAAnetToolkit.hh.
|
inline |
Get transformation.
hit | hit |
router | module router |
Definition at line 286 of file JAAnetToolkit.hh.
|
inline |
Get transformation.
hit | hit |
router | pmt router |
Definition at line 303 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a photon or neutral pion.
track | track |
Definition at line 319 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a neutrino.
track | track |
Definition at line 328 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a (anti-)electron.
track | track |
Definition at line 338 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a (anti-)muon.
track | track |
Definition at line 346 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a (anti-)tau.
track | track |
Definition at line 354 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a charged pion.
track | track |
Definition at line 362 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a (anti-)proton.
track | track |
Definition at line 370 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a (anti-)neutron.
track | track |
Definition at line 378 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a hadron.
track | track |
Definition at line 386 of file JAAnetToolkit.hh.
|
inline |
Test whether given track corresponds to given particle type.
track | track |
type | particle type |
Definition at line 398 of file JAAnetToolkit.hh.
|
inline |
Test whether given event has an incoming neutrino.
evt | event |
Definition at line 406 of file JAAnetToolkit.hh.
Get incoming neutrino.
evt | event |
Definition at line 417 of file JAAnetToolkit.hh.
|
inline |
Count the number of electrons in a given event.
evt | event |
Definition at line 431 of file JAAnetToolkit.hh.
|
inline |
Test whether given event has an electron.
evt | event |
Definition at line 442 of file JAAnetToolkit.hh.
Get first electron from the event tracklist.
evt | event |
Definition at line 453 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 470 of file JAAnetToolkit.hh.
|
inline |
Count the number of muons in a given event.
evt | event |
Definition at line 481 of file JAAnetToolkit.hh.
|
inline |
Test whether given event has a muon.
evt | event |
Definition at line 492 of file JAAnetToolkit.hh.
Get first muon from the event tracklist.
evt | event |
Definition at line 503 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 520 of file JAAnetToolkit.hh.
|
inline |
Count the number of taus in a given event.
evt | event |
Definition at line 531 of file JAAnetToolkit.hh.
|
inline |
Test whether given event has a tau.
evt | event |
Definition at line 542 of file JAAnetToolkit.hh.
Get first tau from the event tracklist.
evt | event |
Definition at line 553 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 570 of file JAAnetToolkit.hh.
|
inline |
Count the number of hadrons in a given event (not including neutral pions)
evt | event |
Definition at line 581 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 595 of file JAAnetToolkit.hh.
Auxiliary function to get average direction and total energy of a hadronic cascade.
evt | event |
Definition at line 606 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 632 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 153 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 191 of file JHead.cc.
|
inline |
Get tag without aanet extension "_<counter>" for identical tags.
tag | tag |
Definition at line 61 of file JHead.hh.
Equal operator.
Note that this operator uses the JHead::match method.
first | first header |
second | second header |
Definition at line 1249 of file JHead.hh.
Less than operator.
first | first header |
second | second header |
Definition at line 1263 of file JHead.hh.
|
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.
|
inline |
Get position offset of detector due to generator.
Get object from header.
header | header |
Definition at line 295 of file JHeadToolkit.hh.
|
inline |
Get position offset of detector due to generator.
Get object from header.
header | header |
Definition at line 320 of file JHeadToolkit.hh.
|
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 63 of file JAAnetToolkit.hh.
|
static |
Function object for evaluation of DAQ objects.
Definition at line 48 of file JEvtEvaluator.hh.