Jpp - the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Typedefs | Enumerations | Functions | Variables
JAANET Namespace Reference

Extensions to AAnet data format. More...

Classes

struct  JEvtEvaluator
 Auxiliary class to determine value of Evt objects. More...
 
struct  JFlux
 Low-level interface for retrieving flux corresponding to an event. More...
 
struct  JFluxFunction
 Implementation of flux function. More...
 
struct  JFluxFunction< pFlux >
 Implementation of C-style flux function. More...
 
struct  JFluxHelper
 Helper class for event weighing. 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  JMultiParticleFlux
 Implementation of flux function for multiple particle types. 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 weighting for GSeaGen data. More...
 
struct  JWeightKM3BUU
 Implementation of event weighting for KM3BUU data. More...
 
struct  JWeightMupage
 Implementation of event weighing for MUPAGE data. More...
 

Typedefs

typedef double(* pFlux )(const Evt &)
 Type definition of pointer to flux function. More...
 
typedef bool(* is_head )(const JHead &)
 Type definition of test function of header. More...
 

Enumerations

enum  JHitType_t {
  HIT_TYPE_MUON_DIRECT = +5, HIT_TYPE_MUON_SCATTERED = -5, HIT_TYPE_DELTARAYS_DIRECT = +4, HIT_TYPE_DELTARAYS_SCATTERED = -4,
  HIT_TYPE_BREMSSTRAHLUNG_DIRECT = +3, HIT_TYPE_BREMSSTRAHLUNG_SCATTERED = -3, HIT_TYPE_SHOWER_DIRECT = +99, HIT_TYPE_SHOWER_SCATTERED = -99,
  HIT_TYPE_NOISE = -1, HIT_TYPE_UNKNOWN = 0
}
 Enumeration of hit types based on km3 codes. More...
 
enum  JGeant4Type_t {
  GEANT4_TYPE_PHOTON = 1, GEANT4_TYPE_ANTIELECTRON = 2, GEANT4_TYPE_ELECTRON = 3, GEANT4_TYPE_NEUTRINO = 4,
  GEANT4_TYPE_ANTIMUON = 5, GEANT4_TYPE_MUON = 6, GEANT4_TYPE_NEUTRAL_PION = 7, GEANT4_TYPE_PION_PLUS = 8,
  GEANT4_TYPE_PION_MINUS = 9, GEANT4_TYPE_KAON_LONG = 10, GEANT4_TYPE_KAON_PLUS = 11, GEANT4_TYPE_KAON_MINUS = 12,
  GEANT4_TYPE_NEUTRON = 13, GEANT4_TYPE_PROTON = 14, GEANT4_TYPE_ANTIPROTON = 15, GEANT4_TYPE_KAON_SHORT = 16,
  GEANT4_TYPE_ETA = 17, GEANT4_TYPE_LAMBDA = 18, GEANT4_TYPE_SIGMA_PLUS = 19, GEANT4_TYPE_NEUTRAL_SIGMA = 20,
  GEANT4_TYPE_SIGMA_MINUS = 21, GEANT4_TYPE_NEUTRAL_XI = 22, GEANT4_TYPE_XI_MINUS = 23, GEANT4_TYPE_OMEGA_MINUS = 24,
  GEANT4_TYPE_ANTINEUTRON = 25, GEANT4_TYPE_ANTILAMBDA = 26, GEANT4_TYPE_ANTISIGMA_MINUS = 27, GEANT4_TYPE_NEUTRAL_ANTISIGMA = 28,
  GEANT4_TYPE_ANTISIGMA_PLUS = 29, GEANT4_TYPE_NEUTRAL_ANTIXI = 30, GEANT4_TYPE_ANTIXI_PLUS = 31, GEANT4_TYPE_ANTIOMEGA_PLUS = 32,
  GEANT4_TYPE_D_PLUS = 35, GEANT4_TYPE_D_MINUS = 36, GEANT4_TYPE_D_ZERO = 37, GEANT4_TYPE_ANTID_ZERO = 38,
  GEANT4_TYPE_D_PLUS_S = 39, GEANT4_TYPE_D_MINUS_S = 40, GEANT4_TYPE_LAMBDA_PLUS_C = 41, GEANT4_TYPE_DEUTERON = 45,
  GEANT4_TYPE_TRITON = 46, GEANT4_TYPE_ALPHA = 47, GEANT4_TYPE_GEANTINO = 48, GEANT4_TYPE_HE3 = 49,
  GEANT4_TYPE_ANTITAU = 33, GEANT4_TYPE_TAU = 34, GEANT4_TYPE_XI_PLUS_C = 0, GEANT4_TYPE_XI_MINUS_C = 0,
  GEANT4_TYPE_XI_ZERO_C = 0, GEANT4_TYPE_ANTIXI_ZERO_C = 0, GEANT4_TYPE_OMEGA_PLUS_B = 0, GEANT4_TYPE_ANTIOMEGA_ZERO_C = 0,
  GEANT4_TYPE_OMEGA_MINUS_B = 0, GEANT4_TYPE_OMEGA_ZERO_C = 0, GEANT4_TYPE_B_PLUS = 0, GEANT4_TYPE_B_MINUS = 0,
  GEANT4_TYPE_XI_MINUS_B = 0, GEANT4_TYPE_XI_PLUS_B = 0, GEANT4_TYPE_B_ZERO = 0, GEANT4_TYPE_ANTIB_ZERO = 0,
  GEANT4_TYPE_B_ZERO_S = 0, GEANT4_TYPE_ANTIB_ZERO_S = 0, GEANT4_TYPE_XI_ZERO_B = 0, GEANT4_TYPE_ANTIXI_ZERO_B = 0,
  GEANT4_TYPE_LAMBDA_B = 0, GEANT4_TYPE_ANTILAMBDA_B = 0, GEANT4_TYPE_B_PLUS_C = 0, GEANT4_TYPE_B_MINUS_C = 0
}
 Enumeration of hit types based on Geant4 codes, for compatbility with KM3Sim. More...
 
enum  JTrackType_t {
  TRACK_TYPE_ELECTRON = 11, TRACK_TYPE_NUE = 12, TRACK_TYPE_MUON = 13, TRACK_TYPE_NUMU = 14,
  TRACK_TYPE_TAU = 15, TRACK_TYPE_NUTAU = 16, TRACK_TYPE_PHOTON = 22, TRACK_TYPE_NEUTRAL_PION = 111,
  TRACK_TYPE_CHARGED_PION_PLUS = 211, TRACK_TYPE_PION_PLUS = 211, TRACK_TYPE_K_LONG = 130, TRACK_TYPE_K_SHORT = 310,
  TRACK_TYPE_K_PLUS = 321, TRACK_TYPE_D_PLUS = 411, TRACK_TYPE_D_ZERO = 421, TRACK_TYPE_D_PLUS_S = 431,
  TRACK_TYPE_B_ZERO = 511, TRACK_TYPE_B_PLUS = 521, TRACK_TYPE_B_ZERO_S = 531, TRACK_TYPE_B_PLUS_C = 541,
  TRACK_TYPE_PROTON = 2212, TRACK_TYPE_NEUTRON = 2112, TRACK_TYPE_LAMBDA = 3122, TRACK_TYPE_SIGMA_PLUS = 3222,
  TRACK_TYPE_NEUTRAL_SIGMA = 3212, TRACK_TYPE_SIGMA_MINUS = 3112, TRACK_TYPE_NEUTRAL_XI = 3322, TRACK_TYPE_XI_MINUS = 3312,
  TRACK_TYPE_OMEGA_MINUS = 3334, TRACK_TYPE_LAMBDA_PLUS_C = 4122, TRACK_TYPE_XI_ZERO_C = 4132, TRACK_TYPE_XI_PLUS_C = 4232,
  TRACK_TYPE_OMEGA_ZERO_C = 4332, TRACK_TYPE_LAMBDA_B = 5122, TRACK_TYPE_XI_MINUS_B = 5132, TRACK_TYPE_XI_ZERO_B = 5232,
  TRACK_TYPE_OMEGA_MINUS_B = 5332, TRACK_TYPE_ANTIELECTRON = -11, TRACK_TYPE_ANTINUE = -12, TRACK_TYPE_ANTIMUON = -13,
  TRACK_TYPE_ANTINUMU = -14, TRACK_TYPE_ANTITAU = -15, TRACK_TYPE_ANTINUTAU = -16, TRACK_TYPE_NEUTRAL_ANTIPION = -111,
  TRACK_TYPE_CHARGED_PION_MINUS = -211, TRACK_TYPE_PION_MINUS = -211, TRACK_TYPE_ANTIK_LONG = -130, TRACK_TYPE_ANTIK_SHORT = -310,
  TRACK_TYPE_K_MINUS = -321, TRACK_TYPE_D_MINUS = -411, TRACK_TYPE_D_MINUS_S = -431, TRACK_TYPE_ANTID_ZERO = -421,
  TRACK_TYPE_ANTIB_ZERO = -511, TRACK_TYPE_B_MINUS = -521, TRACK_TYPE_ANTIB_ZERO_S = -531, TRACK_TYPE_B_MINUS_C = -541,
  TRACK_TYPE_ANTIPROTON = -2212, TRACK_TYPE_ANTINEUTRON = -2112, TRACK_TYPE_ANTILAMBDA = -3122, TRACK_TYPE_ANTISIGMA_PLUS = -3222,
  TRACK_TYPE_ANTINEUTRAL_SIGMA = -3212, TRACK_TYPE_ANTISIGMA_MINUS = -3112, TRACK_TYPE_ANTINEUTRAL_XI = -3322, TRACK_TYPE_ANTIXI_MINUS = -3312,
  TRACK_TYPE_ANTIOMEGA_MINUS = -3334, TRACK_TYPE_ANTIXI_ZERO_C = -4132, TRACK_TYPE_XI_MINUS_C = -4232, TRACK_TYPE_ANTIOMEGA_ZERO_C = -4332,
  TRACK_TYPE_ANTILAMBDA_B = -5122, TRACK_TYPE_XI_PLUS_B = -5132, TRACK_TYPE_ANTIXI_ZERO_B = -5232, TRACK_TYPE_OMEGA_PLUS_B = -5332
}
 Enumeration of track types based on PDG codes. 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 Trkget_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 Trkget_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 Trkget_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 Trkget_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 >
JFluxFunction< JFunction_t > make_fluxFunction (const JFunction_t &function)
 Auxiliary method for creating flux function. More...
 
JFluxFunction< pFluxmake_fluxFunction (pFlux function)
 Auxiliary method for creating 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...
 
bool hasFlux (const JWeightEvent &weighter)
 Check if given event weighter contains a specifiable flux function. 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...
 

Detailed Description

Extensions to AAnet data format.

Author
mlincetto
bjung
mdejong

Typedef Documentation

typedef double(* JAANET::pFlux)(const Evt &)

Type definition of pointer to flux function.

Definition at line 57 of file JFluxFunction.hh.

typedef bool(* JAANET::is_head)(const JHead &)

Type definition of test function of header.

Definition at line 27 of file JHeadToolkit.hh.

Enumeration Type Documentation

Enumeration of hit types based on km3 codes.

Enumerator
HIT_TYPE_MUON_DIRECT 

Direct light from muon.

HIT_TYPE_MUON_SCATTERED 

Scattered light from muon.

HIT_TYPE_DELTARAYS_DIRECT 

Direct light from delta-rays.

HIT_TYPE_DELTARAYS_SCATTERED 

Scattered light from delta-rays.

HIT_TYPE_BREMSSTRAHLUNG_DIRECT 

Direct light from Bremsstrahlung.

HIT_TYPE_BREMSSTRAHLUNG_SCATTERED 

Scattered light from Bremsstrahlung.

HIT_TYPE_SHOWER_DIRECT 

Direct light from primary shower.

HIT_TYPE_SHOWER_SCATTERED 

Scattered light from primary shower.

HIT_TYPE_NOISE 

Random noise.

HIT_TYPE_UNKNOWN 

Unknown source.

Definition at line 59 of file JAAnetToolkit.hh.

59  {
60  HIT_TYPE_MUON_DIRECT = +5, //!< Direct light from muon
61  HIT_TYPE_MUON_SCATTERED = -5, //!< Scattered light from muon
62  HIT_TYPE_DELTARAYS_DIRECT = +4, //!< Direct light from delta-rays
63  HIT_TYPE_DELTARAYS_SCATTERED = -4, //!< Scattered light from delta-rays
64  HIT_TYPE_BREMSSTRAHLUNG_DIRECT = +3, //!< Direct light from Bremsstrahlung
65  HIT_TYPE_BREMSSTRAHLUNG_SCATTERED = -3, //!< Scattered light from Bremsstrahlung
66  HIT_TYPE_SHOWER_DIRECT = +99, //!< Direct light from primary shower
67  HIT_TYPE_SHOWER_SCATTERED = -99, //!< Scattered light from primary shower
68  HIT_TYPE_NOISE = -1, //!< Random noise
69  HIT_TYPE_UNKNOWN = 0 //!< Unknown source
70  };
Scattered light from primary shower.
Direct light from delta-rays.
Scattered light from muon.
Scattered light from Bremsstrahlung.
Direct light from Bremsstrahlung.
Direct light from primary shower.
Direct light from muon.
Scattered light from delta-rays.

Enumeration of hit types based on Geant4 codes, for compatbility with KM3Sim.

Enumerator
GEANT4_TYPE_PHOTON 
GEANT4_TYPE_ANTIELECTRON 
GEANT4_TYPE_ELECTRON 
GEANT4_TYPE_NEUTRINO 
GEANT4_TYPE_ANTIMUON 
GEANT4_TYPE_MUON 
GEANT4_TYPE_NEUTRAL_PION 
GEANT4_TYPE_PION_PLUS 
GEANT4_TYPE_PION_MINUS 
GEANT4_TYPE_KAON_LONG 
GEANT4_TYPE_KAON_PLUS 
GEANT4_TYPE_KAON_MINUS 
GEANT4_TYPE_NEUTRON 
GEANT4_TYPE_PROTON 
GEANT4_TYPE_ANTIPROTON 
GEANT4_TYPE_KAON_SHORT 
GEANT4_TYPE_ETA 
GEANT4_TYPE_LAMBDA 
GEANT4_TYPE_SIGMA_PLUS 
GEANT4_TYPE_NEUTRAL_SIGMA 
GEANT4_TYPE_SIGMA_MINUS 
GEANT4_TYPE_NEUTRAL_XI 
GEANT4_TYPE_XI_MINUS 
GEANT4_TYPE_OMEGA_MINUS 
GEANT4_TYPE_ANTINEUTRON 
GEANT4_TYPE_ANTILAMBDA 
GEANT4_TYPE_ANTISIGMA_MINUS 
GEANT4_TYPE_NEUTRAL_ANTISIGMA 
GEANT4_TYPE_ANTISIGMA_PLUS 
GEANT4_TYPE_NEUTRAL_ANTIXI 
GEANT4_TYPE_ANTIXI_PLUS 
GEANT4_TYPE_ANTIOMEGA_PLUS 
GEANT4_TYPE_D_PLUS 
GEANT4_TYPE_D_MINUS 
GEANT4_TYPE_D_ZERO 
GEANT4_TYPE_ANTID_ZERO 
GEANT4_TYPE_D_PLUS_S 
GEANT4_TYPE_D_MINUS_S 
GEANT4_TYPE_LAMBDA_PLUS_C 
GEANT4_TYPE_DEUTERON 
GEANT4_TYPE_TRITON 
GEANT4_TYPE_ALPHA 
GEANT4_TYPE_GEANTINO 
GEANT4_TYPE_HE3 
GEANT4_TYPE_ANTITAU 
GEANT4_TYPE_TAU 
GEANT4_TYPE_XI_PLUS_C 
GEANT4_TYPE_XI_MINUS_C 
GEANT4_TYPE_XI_ZERO_C 
GEANT4_TYPE_ANTIXI_ZERO_C 
GEANT4_TYPE_OMEGA_PLUS_B 
GEANT4_TYPE_ANTIOMEGA_ZERO_C 
GEANT4_TYPE_OMEGA_MINUS_B 
GEANT4_TYPE_OMEGA_ZERO_C 
GEANT4_TYPE_B_PLUS 
GEANT4_TYPE_B_MINUS 
GEANT4_TYPE_XI_MINUS_B 
GEANT4_TYPE_XI_PLUS_B 
GEANT4_TYPE_B_ZERO 
GEANT4_TYPE_ANTIB_ZERO 
GEANT4_TYPE_B_ZERO_S 
GEANT4_TYPE_ANTIB_ZERO_S 
GEANT4_TYPE_XI_ZERO_B 
GEANT4_TYPE_ANTIXI_ZERO_B 
GEANT4_TYPE_LAMBDA_B 
GEANT4_TYPE_ANTILAMBDA_B 
GEANT4_TYPE_B_PLUS_C 
GEANT4_TYPE_B_MINUS_C 

Definition at line 18 of file JParticleTypes.hh.

18  { GEANT4_TYPE_PHOTON = 1,
23  GEANT4_TYPE_MUON = 6,
31  GEANT4_TYPE_PROTON = 14,
34  GEANT4_TYPE_ETA = 17,
35  GEANT4_TYPE_LAMBDA = 18,
50  GEANT4_TYPE_D_PLUS = 35,
52  GEANT4_TYPE_D_ZERO = 37,
58  GEANT4_TYPE_TRITON = 46,
59  GEANT4_TYPE_ALPHA = 47,
61  GEANT4_TYPE_HE3 = 49,
62  //
63  // %KM3NeT specific codes
64  //
66  GEANT4_TYPE_TAU = 34,
67  //
68  // %Particles with PDG code but not GEANT
69  //

Enumeration of track types based on PDG codes.

Enumerator
TRACK_TYPE_ELECTRON 
TRACK_TYPE_NUE 
TRACK_TYPE_MUON 
TRACK_TYPE_NUMU 
TRACK_TYPE_TAU 
TRACK_TYPE_NUTAU 
TRACK_TYPE_PHOTON 
TRACK_TYPE_NEUTRAL_PION 
TRACK_TYPE_CHARGED_PION_PLUS 
TRACK_TYPE_PION_PLUS 
TRACK_TYPE_K_LONG 
TRACK_TYPE_K_SHORT 
TRACK_TYPE_K_PLUS 
TRACK_TYPE_D_PLUS 
TRACK_TYPE_D_ZERO 
TRACK_TYPE_D_PLUS_S 
TRACK_TYPE_B_ZERO 
TRACK_TYPE_B_PLUS 
TRACK_TYPE_B_ZERO_S 
TRACK_TYPE_B_PLUS_C 
TRACK_TYPE_PROTON 
TRACK_TYPE_NEUTRON 
TRACK_TYPE_LAMBDA 
TRACK_TYPE_SIGMA_PLUS 
TRACK_TYPE_NEUTRAL_SIGMA 
TRACK_TYPE_SIGMA_MINUS 
TRACK_TYPE_NEUTRAL_XI 
TRACK_TYPE_XI_MINUS 
TRACK_TYPE_OMEGA_MINUS 
TRACK_TYPE_LAMBDA_PLUS_C 
TRACK_TYPE_XI_ZERO_C 
TRACK_TYPE_XI_PLUS_C 
TRACK_TYPE_OMEGA_ZERO_C 
TRACK_TYPE_LAMBDA_B 
TRACK_TYPE_XI_MINUS_B 
TRACK_TYPE_XI_ZERO_B 
TRACK_TYPE_OMEGA_MINUS_B 
TRACK_TYPE_ANTIELECTRON 
TRACK_TYPE_ANTINUE 
TRACK_TYPE_ANTIMUON 
TRACK_TYPE_ANTINUMU 
TRACK_TYPE_ANTITAU 
TRACK_TYPE_ANTINUTAU 
TRACK_TYPE_NEUTRAL_ANTIPION 
TRACK_TYPE_CHARGED_PION_MINUS 
TRACK_TYPE_PION_MINUS 
TRACK_TYPE_ANTIK_LONG 
TRACK_TYPE_ANTIK_SHORT 
TRACK_TYPE_K_MINUS 
TRACK_TYPE_D_MINUS 
TRACK_TYPE_D_MINUS_S 
TRACK_TYPE_ANTID_ZERO 
TRACK_TYPE_ANTIB_ZERO 
TRACK_TYPE_B_MINUS 
TRACK_TYPE_ANTIB_ZERO_S 
TRACK_TYPE_B_MINUS_C 
TRACK_TYPE_ANTIPROTON 
TRACK_TYPE_ANTINEUTRON 
TRACK_TYPE_ANTILAMBDA 
TRACK_TYPE_ANTISIGMA_PLUS 
TRACK_TYPE_ANTINEUTRAL_SIGMA 
TRACK_TYPE_ANTISIGMA_MINUS 
TRACK_TYPE_ANTINEUTRAL_XI 
TRACK_TYPE_ANTIXI_MINUS 
TRACK_TYPE_ANTIOMEGA_MINUS 
TRACK_TYPE_ANTIXI_ZERO_C 
TRACK_TYPE_XI_MINUS_C 
TRACK_TYPE_ANTIOMEGA_ZERO_C 
TRACK_TYPE_ANTILAMBDA_B 
TRACK_TYPE_XI_PLUS_B 
TRACK_TYPE_ANTIXI_ZERO_B 
TRACK_TYPE_OMEGA_PLUS_B 

Definition at line 96 of file JParticleTypes.hh.

96  { TRACK_TYPE_ELECTRON = 11,
97  TRACK_TYPE_NUE = 12,
98  TRACK_TYPE_MUON = 13,
99  TRACK_TYPE_NUMU = 14,
100  TRACK_TYPE_TAU = 15,
101  TRACK_TYPE_NUTAU = 16,
102  TRACK_TYPE_PHOTON = 22,
105  TRACK_TYPE_PION_PLUS = 211,
106  TRACK_TYPE_K_LONG = 130,
107  TRACK_TYPE_K_SHORT = 310,
108  TRACK_TYPE_K_PLUS = 321,
109  TRACK_TYPE_D_PLUS = 411,
110  TRACK_TYPE_D_ZERO = 421,
111  TRACK_TYPE_D_PLUS_S = 431,
112  TRACK_TYPE_B_ZERO = 511,
113  TRACK_TYPE_B_PLUS = 521,
114  TRACK_TYPE_B_ZERO_S = 531,
115  TRACK_TYPE_B_PLUS_C = 541,
116  TRACK_TYPE_PROTON = 2212,
117  TRACK_TYPE_NEUTRON = 2112,
118  TRACK_TYPE_LAMBDA = 3122,
119  TRACK_TYPE_SIGMA_PLUS = 3222,
121  TRACK_TYPE_SIGMA_MINUS = 3112,
122  TRACK_TYPE_NEUTRAL_XI = 3322,
123  TRACK_TYPE_XI_MINUS = 3312,
124  TRACK_TYPE_OMEGA_MINUS = 3334,
126  TRACK_TYPE_XI_ZERO_C = 4132,
127  TRACK_TYPE_XI_PLUS_C = 4232,
129  TRACK_TYPE_LAMBDA_B = 5122,
130  TRACK_TYPE_XI_MINUS_B = 5132,
131  TRACK_TYPE_XI_ZERO_B = 5232,
133 
135  TRACK_TYPE_ANTINUE = -12,
136  TRACK_TYPE_ANTIMUON = -13,
137  TRACK_TYPE_ANTINUMU = -14,
138  TRACK_TYPE_ANTITAU = -15,
139  TRACK_TYPE_ANTINUTAU = -16,
142  TRACK_TYPE_PION_MINUS = -211,
143  TRACK_TYPE_ANTIK_LONG = -130,
144  TRACK_TYPE_ANTIK_SHORT = -310,
145  TRACK_TYPE_K_MINUS = -321,
146  TRACK_TYPE_D_MINUS = -411,
147  TRACK_TYPE_D_MINUS_S = -431,
148  TRACK_TYPE_ANTID_ZERO = -421,
149  TRACK_TYPE_ANTIB_ZERO = -511,
150  TRACK_TYPE_B_MINUS = -521,
152  TRACK_TYPE_B_MINUS_C = -541,
153  TRACK_TYPE_ANTIPROTON = -2212,
154  TRACK_TYPE_ANTINEUTRON = -2112,
155  TRACK_TYPE_ANTILAMBDA = -3122,
160  TRACK_TYPE_ANTIXI_MINUS = -3312,
162  TRACK_TYPE_ANTIXI_ZERO_C = -4132,
163  TRACK_TYPE_XI_MINUS_C = -4232,
165  TRACK_TYPE_ANTILAMBDA_B = -5122,
166  TRACK_TYPE_XI_PLUS_B = -5132,
167  TRACK_TYPE_ANTIXI_ZERO_B = -5232,
168  TRACK_TYPE_OMEGA_PLUS_B = -5332 };

Function Documentation

double JAANET::getTime ( const Hit hit)
inline

Get true time of hit.

Parameters
hithit
Returns
true time of hit

Definition at line 79 of file JAAnetToolkit.hh.

80  {
81  return hit.t;
82  }
double t
hit time (from tdc+calibration or MC truth)
Definition: Hit.hh:23
double JAANET::getNPE ( const Hit hit)
inline

Get true charge of hit.

Parameters
hithit
Returns
true charge of hit

Definition at line 91 of file JAAnetToolkit.hh.

92  {
93  return hit.a;
94  }
double a
hit amplitude (in p.e.)
Definition: Hit.hh:24
bool JAANET::is_noise ( const Hit hit)
inline

Verify hit origin.

Parameters
hithit
Returns
true if noise; else false

Definition at line 103 of file JAAnetToolkit.hh.

104  {
105  return hit.type == HIT_TYPE_NOISE;
106  }
int type
particle type or parametrisation used for hit (mc only)
Definition: Hit.hh:28
JTimeRange JAANET::getTimeRange ( const Evt event)
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.

Parameters
eventevent
Returns
time range

Definition at line 116 of file JAAnetToolkit.hh.

117  {
118  JTimeRange time_range(JTimeRange::DEFAULT_RANGE);
119 
120  for (std::vector<Hit>::const_iterator hit = event.mc_hits.begin(); hit != event.mc_hits.end(); ++hit) {
121  if (!is_noise(*hit)) {
122  time_range.include(getTime(*hit));
123  }
124  }
125 
126  return time_range;
127  }
JTOOLS::JRange< double > JTimeRange
Type definition for time range (unit [ns]).
double getTime(const Hit &hit)
Get true time of hit.
bool is_noise(const Hit &hit)
Verify hit origin.
std::vector< Hit > mc_hits
MC: list of MC truth hits.
Definition: Evt.hh:45
JTimeRange JAANET::getTimeRange ( const Evt event,
const JTimeRange &  T_ns 
)
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.

Parameters
eventevent
T_nstime window [ns]
Returns
time range

Definition at line 139 of file JAAnetToolkit.hh.

140  {
141  JTimeRange time_range = getTimeRange(event);
142 
143  if (time_range.getLength() < T_ns.getLength()) {
144  time_range.setLength(T_ns.getLength());
145  }
146 
147  return time_range;
148  }
JTOOLS::JRange< double > JTimeRange
Type definition for time range (unit [ns]).
JTimeRange getTimeRange(const Evt &event)
Get time range (i.e. time between earliest and latest hit) of Monte Carlo event.
JPosition3D JAANET::getPosition ( const Vec pos)
inline

Get position.

Parameters
posposition
Returns
position

Definition at line 157 of file JAAnetToolkit.hh.

158  {
159  return JPosition3D(pos.x, pos.y, pos.z);
160  }
double z
Definition: Vec.hh:14
double y
Definition: Vec.hh:14
double x
Definition: Vec.hh:14
Vec JAANET::getPosition ( const JPosition3D &  pos)
inline

Get position.

Parameters
posposition
Returns
position

Definition at line 169 of file JAAnetToolkit.hh.

170  {
171  return Vec(pos.getX(), pos.getY(), pos.getZ());
172  }
The Vec class is a straightforward 3-d vector, which also works in pyroot.
Definition: Vec.hh:12
JPosition3D JAANET::getPosition ( const Trk track)
inline

Get position.

Parameters
tracktrack
Returns
position

Definition at line 181 of file JAAnetToolkit.hh.

182  {
183  return getPosition(track.pos);
184  }
JPosition3D getPosition(const Vec &pos)
Get position.
Vec pos
postion of the track at time t [m]
Definition: Trk.hh:16
JDirection3D JAANET::getDirection ( const Vec dir)
inline

Get direction.

Parameters
dirdirection
Returns
direction

Definition at line 193 of file JAAnetToolkit.hh.

194  {
195  return JDirection3D(dir.x, dir.y, dir.z);
196  }
double z
Definition: Vec.hh:14
double y
Definition: Vec.hh:14
double x
Definition: Vec.hh:14
Vec JAANET::getDirection ( const JDirection3D &  dir)
inline

Get direction.

Parameters
dirdirection
Returns
direction

Definition at line 205 of file JAAnetToolkit.hh.

206  {
207  return Vec(dir.getDX(), dir.getDY(), dir.getDZ());
208  }
The Vec class is a straightforward 3-d vector, which also works in pyroot.
Definition: Vec.hh:12
JDirection3D JAANET::getDirection ( const Trk track)
inline

Get direction.

Parameters
tracktrack
Returns
direction

Definition at line 217 of file JAAnetToolkit.hh.

218  {
219  return getDirection(track.dir);
220  }
Vec dir
track direction
Definition: Trk.hh:17
JDirection3D getDirection(const Vec &dir)
Get direction.
JAxis3D JAANET::getAxis ( const Trk track)
inline

Get axis.

Parameters
tracktrack
Returns
axis

Definition at line 229 of file JAAnetToolkit.hh.

230  {
231  return JAxis3D(getPosition(track), getDirection(track));
232  }
JDirection3D getDirection(const Vec &dir)
Get direction.
JPosition3D getPosition(const Vec &pos)
Get position.
JTrack3E JAANET::getTrack ( const Trk track)
inline

Get track.

Parameters
tracktrack
Returns
track

Definition at line 241 of file JAAnetToolkit.hh.

242  {
243  return JTrack3E(JTrack3D(getAxis(track), track.t), track.E);
244  }
double t
track time [ns] (when the particle is at pos )
Definition: Trk.hh:18
double E
Energy [GeV] (either MC truth or reconstructed)
Definition: Trk.hh:19
JAxis3D getAxis(const Trk &track)
Get axis.
JVertex3D JAANET::getVertex ( const Trk track)
inline

Get vertex.

Parameters
tracktrack
Returns
vertex

Definition at line 253 of file JAAnetToolkit.hh.

254  {
255  return JVertex3D(getPosition(track), track.t);
256  }
double t
track time [ns] (when the particle is at pos )
Definition: Trk.hh:18
JPosition3D getPosition(const Vec &pos)
Get position.
JTransformation3D JAANET::getTransformation ( const Trk track)
inline

Get transformation.

Parameters
tracktrack
Returns
transformation

Definition at line 265 of file JAAnetToolkit.hh.

266  {
267  return JTransformation3D(getPosition(track), getDirection(track));
268  }
JDirection3D getDirection(const Vec &dir)
Get direction.
JPosition3D getPosition(const Vec &pos)
Get position.
double JAANET::getW ( const Trk track,
const size_t  index,
const double  value 
)
inline

Get track information.

Parameters
tracktrack
indexindex
valuedefault value
Returns
actual value

Definition at line 279 of file JAAnetToolkit.hh.

280  {
281  if (index < track.fitinf.size())
282  return track.fitinf[index];
283  else
284  return value;
285  }
std::vector< double > fitinf
place to store additional fit info, for jgandalf, see JFitParameters.hh
Definition: Trk.hh:30
bool JAANET::is_photon ( const Trk track)
inline

Test whether given track is a photon or neutral pion.

Parameters
tracktrack
Returns
true if photon or neutral pion; else false

Definition at line 294 of file JAAnetToolkit.hh.

294  { return ( track.type == TRACK_TYPE_PHOTON ||
295  abs(track.type) == TRACK_TYPE_NEUTRAL_PION); }
int type
MC: particle type in PDG encoding.
Definition: Trk.hh:23
bool JAANET::is_neutrino ( const Trk track)
inline

Test whether given track is a neutrino.

Parameters
tracktrack
Returns
true if neutrino; else false

Definition at line 303 of file JAAnetToolkit.hh.

303  { return (abs(track.type) == TRACK_TYPE_NUE ||
304  abs(track.type) == TRACK_TYPE_NUMU ||
305  abs(track.type) == TRACK_TYPE_NUTAU); }
int type
MC: particle type in PDG encoding.
Definition: Trk.hh:23
bool JAANET::is_electron ( const Trk track)
inline

Test whether given track is a (anti-)electron.

Parameters
tracktrack
Returns
true if (anti-)electron; else false

Definition at line 313 of file JAAnetToolkit.hh.

313 { return (abs(track.type) == TRACK_TYPE_ELECTRON); }
int type
MC: particle type in PDG encoding.
Definition: Trk.hh:23
bool JAANET::is_muon ( const Trk track)
inline

Test whether given track is a (anti-)muon.

Parameters
tracktrack
Returns
true if (anti-)muon; else false

Definition at line 321 of file JAAnetToolkit.hh.

321 { return (abs(track.type) == TRACK_TYPE_MUON); }
int type
MC: particle type in PDG encoding.
Definition: Trk.hh:23
bool JAANET::is_tau ( const Trk track)
inline

Test whether given track is a (anti-)tau.

Parameters
tracktrack
Returns
true if (anti-)tau; else false

Definition at line 329 of file JAAnetToolkit.hh.

329 { return (abs(track.type) == TRACK_TYPE_TAU); }
int type
MC: particle type in PDG encoding.
Definition: Trk.hh:23
bool JAANET::is_pion ( const Trk track)
inline

Test whether given track is a charged pion.

Parameters
tracktrack
Returns
true if charged pion; else false

Definition at line 337 of file JAAnetToolkit.hh.

337 { return (abs(track.type) == TRACK_TYPE_CHARGED_PION_PLUS); }
int type
MC: particle type in PDG encoding.
Definition: Trk.hh:23
bool JAANET::is_proton ( const Trk track)
inline

Test whether given track is a (anti-)proton.

Parameters
tracktrack
Returns
true if (anti-)proton; else false

Definition at line 345 of file JAAnetToolkit.hh.

345 { return (abs(track.type) == TRACK_TYPE_PROTON); }
int type
MC: particle type in PDG encoding.
Definition: Trk.hh:23
bool JAANET::is_neutron ( const Trk track)
inline

Test whether given track is a (anti-)neutron.

Parameters
tracktrack
Returns
true if (anti-)neutron; else false

Definition at line 353 of file JAAnetToolkit.hh.

353 { return (abs(track.type) == TRACK_TYPE_NEUTRON); }
int type
MC: particle type in PDG encoding.
Definition: Trk.hh:23
bool JAANET::is_lepton ( const Trk track)
inline

Test whether given track is a lepton.

Parameters
tracktrack
Returns
true if lepton; else fails

Definition at line 361 of file JAAnetToolkit.hh.

361  { return (is_neutrino(track) ||
362  is_electron(track) ||
363  is_muon (track) ||
364  is_tau (track)); }
bool is_electron(const Trk &track)
Test whether given track is a (anti-)electron.
bool is_muon(const Trk &track)
Test whether given track is a (anti-)muon.
bool is_neutrino(const Trk &track)
Test whether given track is a neutrino.
bool is_tau(const Trk &track)
Test whether given track is a (anti-)tau.
bool JAANET::is_charged_lepton ( const Trk track)
inline

Test whether given track is a charged lepton.

Parameters
tracktrack
Returns
true if lepton; else fails

Definition at line 372 of file JAAnetToolkit.hh.

372  { return (is_electron(track) ||
373  is_muon (track) ||
374  is_tau (track)); }
bool is_electron(const Trk &track)
Test whether given track is a (anti-)electron.
bool is_muon(const Trk &track)
Test whether given track is a (anti-)muon.
bool is_tau(const Trk &track)
Test whether given track is a (anti-)tau.
bool JAANET::is_hadron ( const Trk track)
inline

Test whether given track is a hadron.

Parameters
tracktrack
Returns
true if hadron; else fails

Definition at line 382 of file JAAnetToolkit.hh.

382  { return (abs(track.type) != TRACK_TYPE_PHOTON &&
383  !is_lepton(track)); }
bool is_lepton(const Trk &track)
Test whether given track is a lepton.
int type
MC: particle type in PDG encoding.
Definition: Trk.hh:23
bool JAANET::is_meson ( const Trk track)
inline

Test whether given track is a meson (is hadron and third digit of PDG code is zero)

Parameters
tracktrack
Returns
true if hadron; else fails

Definition at line 391 of file JAAnetToolkit.hh.

391  { return (is_hadron(track) &&
392  ((int)(track.type / 1000)) % 10 == 0); }
int type
MC: particle type in PDG encoding.
Definition: Trk.hh:23
bool is_hadron(const Trk &track)
Test whether given track is a hadron.
bool JAANET::is_baryon ( const Trk track)
inline

Test whether given track is a baryon (is hadron and third digit of PDG code is not zero)

Parameters
tracktrack
Returns
true if hadron; else fails

Definition at line 400 of file JAAnetToolkit.hh.

400  { return (is_hadron(track) &&
401  ((int)(track.type / 1000)) % 10 != 0); }
int type
MC: particle type in PDG encoding.
Definition: Trk.hh:23
bool is_hadron(const Trk &track)
Test whether given track is a hadron.
bool JAANET::has_particleID ( const Trk track,
const int  type 
)
inline

Test whether given track corresponds to given particle type.

Parameters
tracktrack
typeparticle type
Returns
true if matches the corresponding particle; else false

Definition at line 410 of file JAAnetToolkit.hh.

410 { return (track.type == type); }
int type
MC: particle type in PDG encoding.
Definition: Trk.hh:23
bool JAANET::has_neutrino ( const Evt evt)
inline

Test whether given event has an incoming neutrino.

Parameters
evtevent
Returns
true if neutrino; else false

Definition at line 418 of file JAAnetToolkit.hh.

419  {
420  return !evt.mc_trks.empty() && is_neutrino(evt.mc_trks[0]);
421  }
bool is_neutrino(const Trk &track)
Test whether given track is a neutrino.
std::vector< Trk > mc_trks
MC: list of MC truth tracks.
Definition: Evt.hh:46
const Trk& JAANET::get_neutrino ( const Evt evt)
inline

Get incoming neutrino.

Parameters
evtevent
Returns
neutrino

Definition at line 429 of file JAAnetToolkit.hh.

430  {
431  if (has_neutrino(evt))
432  return evt.mc_trks[0];
433  else
434  THROW(JIndexOutOfRange, "This event has no neutrino.");
435  }
bool has_neutrino(const Evt &evt)
Test whether given event has an incoming neutrino.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Definition: JException.hh:670
std::vector< Trk > mc_trks
MC: list of MC truth tracks.
Definition: Evt.hh:46
int JAANET::count_electrons ( const Evt evt)
inline

Count the number of electrons in a given event.

Parameters
evtevent
Returns
number of electrons

Definition at line 443 of file JAAnetToolkit.hh.

444  {
445  return std::count_if(evt.mc_trks.begin(), evt.mc_trks.end(), is_electron);
446  }
bool is_electron(const Trk &track)
Test whether given track is a (anti-)electron.
std::vector< Trk > mc_trks
MC: list of MC truth tracks.
Definition: Evt.hh:46
bool JAANET::has_electron ( const Evt evt)
inline

Test whether given event has an electron.

Parameters
evtevent
Returns
true if event has electron; else false

Definition at line 454 of file JAAnetToolkit.hh.

455  {
456  return count_electrons(evt) != 0;
457  }
int count_electrons(const Evt &evt)
Count the number of electrons in a given event.
const Trk& JAANET::get_electron ( const Evt evt)
inline

Get first electron from the event tracklist.

Parameters
evtevent
Returns
electron

Definition at line 465 of file JAAnetToolkit.hh.

466  {
467  if (count_electrons(evt) > 0)
468  return *std::find_if(evt.mc_trks.begin(), evt.mc_trks.end(), is_electron);
469  else
470  THROW(JIndexOutOfRange, "This event has no electron.");
471  }
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.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Definition: JException.hh:670
std::vector< Trk > mc_trks
MC: list of MC truth tracks.
Definition: Evt.hh:46
bool JAANET::from_electron ( const Hit hit)
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.

Parameters
hithit
Returns
true if hit was produced by an electron; else false

Definition at line 482 of file JAAnetToolkit.hh.

483  {
484  return hit.type == GEANT4_TYPE_ELECTRON || hit.type == GEANT4_TYPE_ANTIELECTRON;
485  }
int type
particle type or parametrisation used for hit (mc only)
Definition: Hit.hh:28
int JAANET::count_muons ( const Evt evt)
inline

Count the number of muons in a given event.

Parameters
evtevent
Returns
number of muons

Definition at line 493 of file JAAnetToolkit.hh.

494  {
495  return std::count_if(evt.mc_trks.begin(), evt.mc_trks.end(), is_muon);
496  }
bool is_muon(const Trk &track)
Test whether given track is a (anti-)muon.
std::vector< Trk > mc_trks
MC: list of MC truth tracks.
Definition: Evt.hh:46
bool JAANET::has_muon ( const Evt evt)
inline

Test whether given event has a muon.

Parameters
evtevent
Returns
true if event has muon; else false

Definition at line 504 of file JAAnetToolkit.hh.

505  {
506  return count_muons(evt) != 0;
507  }
int count_muons(const Evt &evt)
Count the number of muons in a given event.
const Trk& JAANET::get_muon ( const Evt evt)
inline

Get first muon from the event tracklist.

Parameters
evtevent
Returns
muon

Definition at line 515 of file JAAnetToolkit.hh.

516  {
517  if (count_muons(evt) > 0)
518  return *std::find_if(evt.mc_trks.begin(), evt.mc_trks.end(), is_muon);
519  else
520  THROW(JIndexOutOfRange, "This event has no muon.");
521  }
bool is_muon(const Trk &track)
Test whether given track is a (anti-)muon.
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.
Definition: JException.hh:670
std::vector< Trk > mc_trks
MC: list of MC truth tracks.
Definition: Evt.hh:46
bool JAANET::from_muon ( const Hit hit)
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.

Parameters
hithit
Returns
true if hit was produced by a muon; else false

Definition at line 532 of file JAAnetToolkit.hh.

533  {
534  return hit.type == GEANT4_TYPE_MUON || hit.type == GEANT4_TYPE_ANTIMUON;
535  }
int type
particle type or parametrisation used for hit (mc only)
Definition: Hit.hh:28
int JAANET::count_taus ( const Evt evt)
inline

Count the number of taus in a given event.

Parameters
evtevent
Returns
number of taus

Definition at line 543 of file JAAnetToolkit.hh.

544  {
545  return std::count_if(evt.mc_trks.begin(), evt.mc_trks.end(), is_tau);
546  }
bool is_tau(const Trk &track)
Test whether given track is a (anti-)tau.
std::vector< Trk > mc_trks
MC: list of MC truth tracks.
Definition: Evt.hh:46
bool JAANET::has_tau ( const Evt evt)
inline

Test whether given event has a tau.

Parameters
evtevent
Returns
true if event has tau; else false

Definition at line 554 of file JAAnetToolkit.hh.

555  {
556  return count_taus(evt) != 0;
557  }
int count_taus(const Evt &evt)
Count the number of taus in a given event.
const Trk& JAANET::get_tau ( const Evt evt)
inline

Get first tau from the event tracklist.

Parameters
evtevent
Returns
tau

Definition at line 565 of file JAAnetToolkit.hh.

566  {
567  if (count_taus(evt) > 0)
568  return *std::find_if(evt.mc_trks.begin(), evt.mc_trks.end(), is_tau);
569  else
570  THROW(JIndexOutOfRange, "This event has no tau.");
571  }
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Definition: JException.hh:670
int count_taus(const Evt &evt)
Count the number of taus in a given event.
bool is_tau(const Trk &track)
Test whether given track is a (anti-)tau.
std::vector< Trk > mc_trks
MC: list of MC truth tracks.
Definition: Evt.hh:46
bool JAANET::from_tau ( const Hit hit)
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.

Parameters
hithit
Returns
true if hit was produced by a tau; else false

Definition at line 582 of file JAAnetToolkit.hh.

583  {
584  return hit.type == GEANT4_TYPE_TAU || hit.type == GEANT4_TYPE_ANTITAU;
585  }
int type
particle type or parametrisation used for hit (mc only)
Definition: Hit.hh:28
int JAANET::count_hadrons ( const Evt evt)
inline

Count the number of hadrons in a given event (not including neutral pions)

Parameters
evtevent
Returns
number of hadrons

Definition at line 593 of file JAAnetToolkit.hh.

594  {
595  return std::count_if(evt.mc_trks.begin(), evt.mc_trks.end(), is_hadron);
596  }
bool is_hadron(const Trk &track)
Test whether given track is a hadron.
std::vector< Trk > mc_trks
MC: list of MC truth tracks.
Definition: Evt.hh:46
bool JAANET::from_hadron ( const Hit hit)
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.

Parameters
hithit
Returns
true if hit was produced by a hadron; else false

Definition at line 607 of file JAAnetToolkit.hh.

608  {
609  return (!from_electron(hit) && !from_muon(hit) && !from_tau(hit));
610  }
bool from_tau(const Hit &hit)
Test whether given hit was produced by a tau.
bool from_electron(const Hit &hit)
Test whether given hit was produced by an electron.
bool from_muon(const Hit &hit)
Test whether given hit was produced by a muon.
Trk JAANET::get_hadronic_cascade ( const Evt evt)
inline

Auxiliary function to get average direction and total energy of a hadronic cascade.

Parameters
evtevent
Returns
cascade (default if there are no hadrons)

Definition at line 618 of file JAAnetToolkit.hh.

619  {
620  Trk cascade;
621 
622  for (std::vector<Trk>::const_iterator track = evt.mc_trks.begin(); track != evt.mc_trks.end(); ++track) {
623  if (is_hadron(*track)) {
624  cascade.E += track->E;
625  cascade.dir += track->dir * track->E;
626  cascade.t = track->t;
627  cascade.pos = track->pos;
628  }
629  }
630 
631  cascade.dir.normalize();
632 
633  return cascade;
634  }
double t
track time [ns] (when the particle is at pos )
Definition: Trk.hh:18
Vec dir
track direction
Definition: Trk.hh:17
double E
Energy [GeV] (either MC truth or reconstructed)
Definition: Trk.hh:19
Vec & normalize()
Normalise this vector.
Definition: Vec.hh:159
Vec pos
postion of the track at time t [m]
Definition: Trk.hh:16
bool is_hadron(const Trk &track)
Test whether given track is a hadron.
The Trk class represents a Monte Carlo (MC) particle as well as a reconstructed track/shower.
Definition: Trk.hh:13
std::vector< Trk > mc_trks
MC: list of MC truth tracks.
Definition: Evt.hh:46
void JAANET::add_time_offset ( Evt evt,
const double  tOff 
)
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.

Parameters
evtevent
tOfftime offset [ns]

Definition at line 644 of file JAAnetToolkit.hh.

645  {
646  for (std::vector<Trk>::iterator p = evt.mc_trks.begin(); p != evt.mc_trks.end(); p++) {
647  p->t += tOff;
648  }
649  }
std::vector< Trk > mc_trks
MC: list of MC truth tracks.
Definition: Evt.hh:46
template<class JFunction_t >
JFluxFunction<JFunction_t> JAANET::make_fluxFunction ( const JFunction_t &  function)
inline

Auxiliary method for creating flux function.

Parameters
functionfunction
Returns
flux function

Definition at line 101 of file JFluxFunction.hh.

101  {
102  return JFluxFunction<JFunction_t>(function);
103  }
JFluxFunction<pFlux> JAANET::make_fluxFunction ( pFlux  function)
inline

Auxiliary method for creating flux function.

Parameters
functionfunction
Returns
flux function

Definition at line 112 of file JFluxFunction.hh.

112  {
113  return JFluxFunction<pFlux>(function);
114  }
void JAANET::copy ( const Head from,
JHead &  to 
)

Copy header from from to to.

Parameters
fromheader
toheader

Definition at line 139 of file JHead.cc.

140  {
141  using namespace std;
142  using namespace JPP;
143 
144  JRootReader reader(null, JHead::getEquationParameters(), JAAnetDictionary::getInstance());
145 
146  JRootReadableClass cls(to);
147 
148  for (Head::const_iterator i = from.begin(); i != from.end(); ++i) {
149 
150  const JRootReadableClass& abc = cls.find(getTag(i->first).c_str());
151 
152  const string buffer = trim(i->second);
153 
154  if (abc.is_valid() && buffer != "") {
155 
156  JRedirectString redirect(reader, buffer);
157 
158  reader.getObject(abc);
159 
160  if (i->first == getTag(i->first)) {
161  to.insert(*i); // keep track of parsed tags
162  }
163 
164  } else {
165 
166  to.insert(*i); // store data of unknown tags
167  }
168  }
169  }
const char * c_str() const
C-string.
Definition: JTag.hh:201
std::string trim(const std::string &buffer)
Trim string.
Definition: JLangToolkit.hh:79
JNET::JTag getTag(JLANG::JType< KM3NETDAQ::JDAQTimeslice >)
Definition: JDAQTags.hh:82
T & getInstance(const T &object)
Get static instance from temporary object.
Definition: JObject.hh:75
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null
void JAANET::copy ( const JHead &  from,
Head to 
)

Copy header from from to to.

Parameters
fromheader
toheader

Definition at line 178 of file JHead.cc.

179  {
180  using namespace std;
181  using namespace JPP;
182 
183  to = Head();
184 
185  JHeadWriter writer(to, JHead::getEquationParameters(), JAAnetDictionary::getInstance());
186 
187  JRootWritableClass cls(from);
188 
189  TIterator* i = cls.getClass()->GetListOfDataMembers()->MakeIterator();
190 
191  for (const TDataMember* p; (p = (const TDataMember*) i->Next()) != NULL; ) {
192  if (!JRootClass::is_static(*p)) {
193  if (from.find(p->GetName()) != from.end() ||
194  cls.get(*p) == JRootClass(&JHead::start_run) ||
195  cls.get(*p) == JRootClass(&JHead::end_event)) {
196  writer.put(p->GetName(), cls.get(*p), true);
197  }
198  }
199  }
200 
201  // copy pending data
202 
203  for (JHead::const_iterator i = from.begin(); i != from.end(); ++i) {
204  if (to.find(i->first) == to.end()) {
205  to.insert(*i);
206  }
207  }
208  }
T & getInstance(const T &object)
Get static instance from temporary object.
Definition: JObject.hh:75
The Head class reflects the header of Monte-Carlo event files, which consists of keys (also referred ...
Definition: Head.hh:67
std::string JAANET::getTag ( const std::string &  tag)
inline

Get tag without aanet extension "_<counter>" for identical tags.

Parameters
tagtag
Returns
tag

Definition at line 64 of file JHead.hh.

65  {
66  using namespace std;
67 
68  const string::size_type pos = tag.find(AANET_TAG_SEPARATOR);
69 
70  if (pos != string::npos) {
71 
72  for (string::size_type i = pos + 1; i != tag.size(); ++i) {
73  if (!isdigit(tag[i])) {
74  return tag;
75  }
76  }
77 
78  return tag.substr(0, pos);
79  }
80 
81  return tag;
82  }
static const char AANET_TAG_SEPARATOR
Separator for AAnet tag extension for multiple tags (&quot;_&lt;counter&gt;&quot;).
Definition: JHead.hh:35
std::string JAANET::getTag ( const std::string &  tag,
const int  counter 
)
inline

Get tag with aanet extension "_<counter>" for identical tags.

Parameters
tagtag
countercounter
Returns
tag

Definition at line 92 of file JHead.hh.

93  {
94  std::ostringstream os;
95 
96  os << tag << AANET_TAG_SEPARATOR << counter;
97 
98  return os.str();
99  }
static const char AANET_TAG_SEPARATOR
Separator for AAnet tag extension for multiple tags (&quot;_&lt;counter&gt;&quot;).
Definition: JHead.hh:35
bool JAANET::operator== ( const Head first,
const Head second 
)
inline

Equal operator.

Note that this operator uses the JHead::match method.

Parameters
firstfirst header
secondsecond header
Returns
true if two headers are equal; else false

Definition at line 1589 of file JHead.hh.

1591  {
1592  return JHead(first).match(JHead(second));
1593  }
bool match(const JHead &header) const
Test match of headers.
Definition: JHead.hh:1269
Monte Carlo run header.
Definition: JHead.hh:1113
bool JAANET::operator< ( const Head first,
const Head second 
)
inline

Less than operator.

Parameters
firstfirst header
secondsecond header
Returns
true if first header is less than second header; else false

Definition at line 1603 of file JHead.hh.

1605  {
1606  return JHead(first).less(JHead(second));
1607  }
bool less(const JHead &header) const
Comparison of headers.
Definition: JHead.hh:1301
Monte Carlo run header.
Definition: JHead.hh:1113
bool JAANET::is_genhen ( const JHead &  header)
inline

Check for generator.

Parameters
headerheader
Returns
true if this header is produced by genhen; else false

Definition at line 36 of file JHeadToolkit.hh.

37  {
38  for (const auto& i : header.simul) {
39  if (i.program == APPLICATION_GENHEN) {
40  return true;
41  }
42  }
43 
44  for (const auto& i : header.physics) { // legacy
45  if (i.buffer.find(APPLICATION_GENHEN) != std::string::npos) {
46  return true;
47  }
48  }
49 
50  return false;
51  }
static const char *const APPLICATION_GENHEN
KM3NeT Data Definitions v2.0.0-15-g59d2e2b https://git.km3net.de/common/km3net-dataformat.
Definition: applications.hh:12
bool JAANET::is_gseagen ( const JHead &  header)
inline

Check for generator.

Parameters
headerheader
Returns
true if this header is produced by gSeaGen; else false

Definition at line 60 of file JHeadToolkit.hh.

61  {
62  for (const auto& i : header.simul) {
63  if (i.program == APPLICATION_GSEAGEN) {
64  return true;
65  }
66  }
67 
68  return false;
69  }
static const char *const APPLICATION_GSEAGEN
event generator
Definition: applications.hh:13
bool JAANET::is_mupage ( const JHead &  header)
inline

Check for generator.

Parameters
headerheader
Returns
true if this header is produced by MUPAGE; else false

Definition at line 78 of file JHeadToolkit.hh.

79  {
80  for (const auto& i : header.simul) {
81  if (i.program == APPLICATION_MUPAGE) {
82  return true;
83  }
84  }
85 
86  return false;
87  }
static const char *const APPLICATION_MUPAGE
event generator
Definition: applications.hh:14
bool JAANET::is_corsika ( const JHead &  header)
inline

Check for generator.

Parameters
headerheader
Returns
true if this header is produced by Corsika; else false

Definition at line 96 of file JHeadToolkit.hh.

97  {
98  for (const auto& i : header.simul) {
99  if (i.program == APPLICATION_CORSIKA) {
100  return true;
101  }
102  }
103 
104  return false;
105  }
static const char *const APPLICATION_CORSIKA
event generator
Definition: applications.hh:15
bool JAANET::is_km3buu ( const JHead &  header)
inline

Check for generator.

Parameters
headerheader
Returns
true if this header is produced by km3buu; else false

Definition at line 114 of file JHeadToolkit.hh.

115  {
116  for (const auto& i : header.simul) {
117  if (i.program == APPLICATION_KM3BUU) {
118  return true;
119  }
120  }
121 
122  return false;
123  }
static const char *const APPLICATION_KM3BUU
event generator
Definition: applications.hh:16
bool JAANET::is_km3 ( const JHead &  header)
inline

Check for detector simulation.

Parameters
headerheader
Returns
true if this header is processed with km3; else false

Definition at line 132 of file JHeadToolkit.hh.

133  {
134  for (const auto& i : header.simul) {
135  if (i.program == APPLICATION_KM3) {
136  return true;
137  }
138  }
139 
140  return false;
141  }
static const char *const APPLICATION_KM3
detector simulation
Definition: applications.hh:17
bool JAANET::is_km3sim ( const JHead &  header)
inline

Check for detector simulation.

Parameters
headerheader
Returns
true if this header is processed with KM3Sim; else false

Definition at line 150 of file JHeadToolkit.hh.

151  {
152  for (const auto& i : header.simul) {
153  if (i.program == APPLICATION_KM3SIM) {
154  return true;
155  }
156  }
157 
158  return false;
159  }
static const char *const APPLICATION_KM3SIM
detector simulation
Definition: applications.hh:18
bool JAANET::is_sirene ( const JHead &  header)
inline

Check for detector simulation.

Parameters
headerheader
Returns
true if this header is processed with JSirene; else false

Definition at line 168 of file JHeadToolkit.hh.

169  {
170  for (const auto& i : header.simul) {
171  if (i.program == APPLICATION_JSIRENE) {
172  return true;
173  }
174  }
175 
176  return false;
177  }
static const char *const APPLICATION_JSIRENE
detector simulation
Definition: applications.hh:19
bool JAANET::is_daq ( const JHead &  header)
inline

Check for real data.

Parameters
headerheader
Returns
true if this header corresponds to real data; else false

Definition at line 186 of file JHeadToolkit.hh.

187  {
188  return header.DAQ.livetime_s > 0.0;
189  }
template<class T >
T JAANET::get ( const JHead &  header)
inline

Get object from header.

Parameters
headerheader
Returns
object

Get object from header.

Parameters
headerheader
Returns
position

Get object from header.

Parameters
headerheader
Returns
cylinder

Definition at line 254 of file JHeadToolkit.hh.

255  {
256  if (is_sirene(header) || is_km3(header)) {
257 
258  return header.coord_origin;
259 
260  } else {
261 
262  if (header.is_valid(&JHead::can))
263  return Vec(0.0, 0.0, -header.can.zmin);
264  else if (header.is_valid(&JHead::coord_origin))
265  return header.coord_origin;
266  else
267  return Vec(0.0, 0.0, 0.0);
268  }
269  }
The Vec class is a straightforward 3-d vector, which also works in pyroot.
Definition: Vec.hh:12
bool is_sirene(const JHead &header)
Check for detector simulation.
bool is_km3(const JHead &header)
Check for detector simulation.
template<>
Vec JAANET::get ( const JHead &  header)
inline

Get position offset of detector due to generator.

Get object from header.

Parameters
headerheader
Returns
position

Definition at line 254 of file JHeadToolkit.hh.

255  {
256  if (is_sirene(header) || is_km3(header)) {
257 
258  return header.coord_origin;
259 
260  } else {
261 
262  if (header.is_valid(&JHead::can))
263  return Vec(0.0, 0.0, -header.can.zmin);
264  else if (header.is_valid(&JHead::coord_origin))
265  return header.coord_origin;
266  else
267  return Vec(0.0, 0.0, 0.0);
268  }
269  }
The Vec class is a straightforward 3-d vector, which also works in pyroot.
Definition: Vec.hh:12
bool is_sirene(const JHead &header)
Check for detector simulation.
bool is_km3(const JHead &header)
Check for detector simulation.
template<>
JPosition3D JAANET::get ( const JHead &  header)
inline

Get position offset of detector due to generator.

Get object from header.

Parameters
headerheader
Returns
position

Definition at line 279 of file JHeadToolkit.hh.

280  {
281  const Vec pos = get<Vec>(header);
282 
283  return JPosition3D(pos.x, pos.y, pos.z);
284  }
double z
Definition: Vec.hh:14
double y
Definition: Vec.hh:14
double x
Definition: Vec.hh:14
The Vec class is a straightforward 3-d vector, which also works in pyroot.
Definition: Vec.hh:12
template<>
JCylinder3D JAANET::get ( const JHead &  header)
inline

Get cylinder corresponding to can.

Get object from header.

Parameters
headerheader
Returns
cylinder

Definition at line 294 of file JHeadToolkit.hh.

295  {
296  using namespace JGEOMETRY2D;
297 
298  return JCylinder3D(JCircle2D(JVector2D(), header.can.r),
299  header.can.zmin,
300  header.can.zmax);
301  }
Data structure for vector in two dimensions.
Definition: JVector2D.hh:32
Data structure for circle in two dimensions.
Definition: JCircle2D.hh:32
bool JAANET::hasFlux ( const JWeightEvent &  weighter)
inline

Check if given event weighter contains a specifiable flux function.

Parameters
weighterevent weighter
Returns
true if given event weighter contains a specifiable flux function; else false

Definition at line 76 of file JWeightEventToolkit.hh.

77  {
78  return dynamic_cast<const JFluxHelper*>(&weighter) != NULL;
79  }

Variable Documentation

const int JAANET::AASHOWER_RECONSTRUCTION_TYPE = 101
static

AAshower reconstruction type for AAnet.

Definition at line 54 of file JAAnetToolkit.hh.

const JEvtEvaluator JAANET::getEvtValue
static

Function object for evaluation of DAQ objects.

Definition at line 48 of file JEvtEvaluator.hh.

const char JAANET::AANET_TAG_SEPARATOR = '_'
static

Separator for AAnet tag extension for multiple tags ("_<counter>").

Definition at line 35 of file JHead.hh.

JHeadHelper JAANET::get_is_head
static
Initial value:
= {
std::make_pair(APPLICATION_GENHEN, is_genhen),
std::make_pair(APPLICATION_GSEAGEN, is_gseagen),
std::make_pair(APPLICATION_MUPAGE, is_mupage),
std::make_pair(APPLICATION_CORSIKA, is_corsika),
std::make_pair(APPLICATION_KM3BUU, is_km3buu),
std::make_pair(APPLICATION_KM3, is_km3),
std::make_pair(APPLICATION_KM3SIM, is_km3sim),
std::make_pair(APPLICATION_JSIRENE, is_sirene),
std::make_pair("DAQ", is_daq)
}
bool is_mupage(const JHead &header)
Check for generator.
Definition: JHeadToolkit.hh:78
bool is_km3buu(const JHead &header)
Check for generator.
static const char *const APPLICATION_KM3
detector simulation
Definition: applications.hh:17
bool is_gseagen(const JHead &header)
Check for generator.
Definition: JHeadToolkit.hh:60
static const char *const APPLICATION_GSEAGEN
event generator
Definition: applications.hh:13
static const char *const APPLICATION_JSIRENE
detector simulation
Definition: applications.hh:19
bool is_corsika(const JHead &header)
Check for generator.
Definition: JHeadToolkit.hh:96
static const char *const APPLICATION_CORSIKA
event generator
Definition: applications.hh:15
bool is_daq(const JHead &header)
Check for real data.
static const char *const APPLICATION_KM3BUU
event generator
Definition: applications.hh:16
static const char *const APPLICATION_KM3SIM
detector simulation
Definition: applications.hh:18
static const char *const APPLICATION_MUPAGE
event generator
Definition: applications.hh:14
bool is_genhen(const JHead &header)
Check for generator.
Definition: JHeadToolkit.hh:36
static const char *const APPLICATION_GENHEN
KM3NeT Data Definitions v2.0.0-15-g59d2e2b https://git.km3net.de/common/km3net-dataformat.
Definition: applications.hh:12
bool is_sirene(const JHead &header)
Check for detector simulation.
bool is_km3sim(const JHead &header)
Check for detector simulation.
bool is_km3(const JHead &header)
Check for detector simulation.

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.