Jpp
15.0.0
the software that should make you happy
|
Extensions to Evt data format. More...
Classes | |
struct | JEvtEvaluator |
Auxiliary class to determine value of Evt objects. More... | |
struct | JEvtWeight |
Low-level interface for event weighing. More... | |
struct | JEvtWeightDAQ |
Implementation of event weighing for DAQ data. More... | |
struct | JEvtWeightFactor |
Low-level interface for retrieving a specifiable multiplication factor corresponding to a given event. More... | |
struct | JEvtWeightFactorFunction |
Implementation of event-weight factor interface. More... | |
struct | JEvtWeightFactorFunction< pEvtWeightFactor > |
Implementation of C-style event-weight factor. More... | |
struct | JEvtWeightFactorHelper |
Helper class for event-weight factor. More... | |
struct | JEvtWeightFactorMultiParticle |
Implementation of event-weight factor for multiple particle types. More... | |
struct | JEvtWeightGSeaGen |
Implementation of event weighting for GSeaGen data. More... | |
struct | JEvtWeightHelper |
Helper class for event weighing. More... | |
struct | JEvtWeightKM3BUU |
Implementation of event weighting for KM3BUU data. More... | |
struct | JEvtWeightMupage |
Implementation of event weighing for MUPAGE data. More... | |
struct | JEvtWeighter |
Look-up table for event weighters. 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 |
Time duration of event generation. More... | |
struct | time_interval |
UTC time interval for event generation. 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... | |
Typedefs | |
typedef double(* | pEvtWeightFactor )(const Evt &) |
Type definition of pointer to event-weight factor. More... | |
using | JFlux = JEvtWeightFactor |
Alias for flux function interface. More... | |
using | JFluxHelper = JEvtWeightFactorHelper |
Alias for flux function interface helper. More... | |
using | pFlux = pEvtWeightFactor |
Alias for pointer to flux function. More... | |
template<class JFunction_t > | |
using | JFluxFunction = JEvtWeightFactorFunction< JFunction_t > |
Alias for implementation of flux function interface for functors. More... | |
using | JFluxMultiParticle = JEvtWeightFactorMultiParticle |
Alias for implementation of an interface to multiple flux functions. More... | |
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... | |
double | getW (const Trk &track, const size_t index, const double value) |
Get track information. 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... | |
template<class JFunction_t > | |
JEvtWeightFactorFunction < JFunction_t > | make_weightFactor (const JFunction_t &function) |
Auxiliary method for creating an interface to an event-weight factor. More... | |
JEvtWeightFactorFunction < pEvtWeightFactor > | make_weightFactor (pEvtWeightFactor function) |
Auxiliary method for creating an interface to an event-weight factor. More... | |
template<class JFunction_t > | |
JFluxFunction< JFunction_t > | make_fluxFunction (const JFunction_t &function) |
Auxiliary method for creating an interface to a flux function. More... | |
JFluxFunction< pFlux > | make_fluxFunction (pFlux function) |
Auxiliary method for creating an interface to a flux function. 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 | RESCALED_WEIGHT_INDEX = 3 |
Index of rescaled weight. More... | |
static const int | AASHOWER_RECONSTRUCTION_TYPE = 101 |
AAnet shower fit reconstruction type. More... | |
static const JEvtEvaluator | getEvtValue |
Function object for evaluation of DAQ objects. More... | |
JEvtWeighter | getEventWeighter |
Function object for mapping header to event weighter. More... | |
static const char | AANET_TAG_SEPARATOR = '_' |
Separator for tag extension of multiple tags in Head ("_<counter>"). More... | |
static JHeadHelper | get_is_head |
Function object to get check method for given application. More... | |
Extensions to Evt data format.
typedef double(* JAANET::pEvtWeightFactor)(const Evt &) |
Type definition of pointer to event-weight factor.
Definition at line 57 of file JEvtWeightFactorFunction.hh.
using JAANET::JFlux = typedef JEvtWeightFactor |
using JAANET::JFluxHelper = typedef JEvtWeightFactorHelper |
using JAANET::pFlux = typedef pEvtWeightFactor |
using JAANET::JFluxFunction = typedef JEvtWeightFactorFunction<JFunction_t> |
using JAANET::JFluxMultiParticle = typedef JEvtWeightFactorMultiParticle |
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 64 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 84 of file JAAnetToolkit.hh.
|
inline |
Get true charge of hit.
hit | hit |
Definition at line 96 of file JAAnetToolkit.hh.
|
inline |
Verify hit origin.
hit | hit |
Definition at line 108 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 121 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 144 of file JAAnetToolkit.hh.
|
inline |
|
inline |
Get position.
pos | position |
Definition at line 174 of file JAAnetToolkit.hh.
|
inline |
Get position.
track | track |
Definition at line 186 of file JAAnetToolkit.hh.
|
inline |
|
inline |
Get direction.
dir | direction |
Definition at line 210 of file JAAnetToolkit.hh.
|
inline |
Get direction.
track | track |
Definition at line 222 of file JAAnetToolkit.hh.
Get axis.
track | track |
Definition at line 234 of file JAAnetToolkit.hh.
Get vertex.
track | track |
Definition at line 258 of file JAAnetToolkit.hh.
|
inline |
Get transformation.
track | track |
Definition at line 270 of file JAAnetToolkit.hh.
|
inline |
Get track information.
track | track |
index | index |
value | default value |
Definition at line 284 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a photon or neutral pion.
track | track |
Definition at line 299 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a neutrino.
track | track |
Definition at line 308 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a (anti-)electron.
track | track |
Definition at line 318 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a (anti-)muon.
track | track |
Definition at line 326 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a (anti-)tau.
track | track |
Definition at line 334 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a charged pion.
track | track |
Definition at line 342 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a (anti-)proton.
track | track |
Definition at line 350 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a (anti-)neutron.
track | track |
Definition at line 358 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a lepton.
track | track |
Definition at line 366 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a charged lepton.
track | track |
Definition at line 377 of file JAAnetToolkit.hh.
|
inline |
Test whether given track is a hadron.
track | track |
Definition at line 387 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 396 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 405 of file JAAnetToolkit.hh.
|
inline |
Test whether given track corresponds to given particle type.
track | track |
type | particle type |
Definition at line 415 of file JAAnetToolkit.hh.
|
inline |
Test whether given event has an incoming neutrino.
evt | event |
Definition at line 423 of file JAAnetToolkit.hh.
Get incoming neutrino.
evt | event |
Definition at line 434 of file JAAnetToolkit.hh.
|
inline |
Count the number of electrons in a given event.
evt | event |
Definition at line 448 of file JAAnetToolkit.hh.
|
inline |
Test whether given event has an electron.
evt | event |
Definition at line 459 of file JAAnetToolkit.hh.
Get first electron from the event tracklist.
evt | event |
Definition at line 470 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 487 of file JAAnetToolkit.hh.
|
inline |
Count the number of muons in a given event.
evt | event |
Definition at line 498 of file JAAnetToolkit.hh.
|
inline |
Test whether given event has a muon.
evt | event |
Definition at line 509 of file JAAnetToolkit.hh.
Get first muon from the event tracklist.
evt | event |
Definition at line 520 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 537 of file JAAnetToolkit.hh.
|
inline |
Count the number of taus in a given event.
evt | event |
Definition at line 548 of file JAAnetToolkit.hh.
|
inline |
Test whether given event has a tau.
evt | event |
Definition at line 559 of file JAAnetToolkit.hh.
Get first tau from the event tracklist.
evt | event |
Definition at line 570 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 587 of file JAAnetToolkit.hh.
|
inline |
Count the number of hadrons in a given event (not including neutral pions)
evt | event |
Definition at line 598 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 612 of file JAAnetToolkit.hh.
Auxiliary function to get average direction and total energy of a hadronic cascade.
evt | event |
Definition at line 623 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 649 of file JAAnetToolkit.hh.
|
inline |
Auxiliary method for creating an interface to an event-weight factor.
function | function object |
Definition at line 101 of file JEvtWeightFactorFunction.hh.
|
inline |
Auxiliary method for creating an interface to an event-weight factor.
function | function pointer |
Definition at line 112 of file JEvtWeightFactorFunction.hh.
|
inline |
|
inline |
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 1589 of file JHead.hh.
Less than operator.
first | first header |
second | second header |
Definition at line 1603 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 |
Index of rescaled weight.
Definition at line 54 of file JAAnetToolkit.hh.
|
static |
AAnet shower fit reconstruction type.
Definition at line 59 of file JAAnetToolkit.hh.
|
static |
Function object for evaluation of DAQ objects.
Definition at line 48 of file JEvtEvaluator.hh.
JEvtWeighter JAANET::getEventWeighter |
Function object for mapping header to event weighter.
Definition at line 5 of file JEvtWeightToolkit.cc.
|
static |
|
static |
Function object to get check method for given application.
Definition at line 224 of file JHeadToolkit.hh.