Jpp
software
JSirene
km3-opa_efrac.hh
Go to the documentation of this file.
1
#ifndef __KM3_OPA_EFRAC__
2
#define __KM3_OPA_EFRAC__
3
4
#include "
JAAnet/JPDB.hh
"
5
6
7
/**
8
* \author mdejong
9
*/
10
11
extern
"C"
12
{
13
float
opa_efrac_
(
int
& ipart,
float
& ekin);
14
float
opa_weight_high_e_
(
float
& ekin);
15
}
16
17
namespace
JSIRENE
{}
18
namespace
JPP
{
using namespace
JSIRENE
; }
19
20
namespace
JSIRENE
{
21
22
using
JAANET::JPDB
;
23
24
/**
25
* Get equivalent EM-energy for given pion energy.
26
*
27
* \param type particle type [PDG]
28
* \param E particle energy [GeV]
29
* \return EM-equivalent energy [GeV]
30
*/
31
inline
double
pythia
(
const
int
type,
const
double
E)
32
{
33
int
ipart =
JPDB::getInstance
().
getPDG
(type).
geant
;
34
float
ekin = (float) E;
35
36
return
opa_efrac_
(ipart, ekin) * E;
37
}
38
}
39
40
#endif
opa_efrac_
float opa_efrac_(int &ipart, float &ekin)
opa_weight_high_e_
float opa_weight_high_e_(float &ekin)
JAANET::JPDB::getInstance
static const JPDB & getInstance()
Get particle data book.
Definition:
JPDB.hh:121
JAANET::JPDB
Collection of particles.
Definition:
JPDB.hh:105
JPP
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition:
JAAnetToolkit.hh:37
JSIRENE
Detector simulations.
Definition:
JPulse.hh:19
JAANET::JParticle::geant
int geant
GEANT code of particle.
Definition:
JPDB.hh:87
JAANET::JPDB::getPDG
const JParticle & getPDG(const int pdg) const
Get particle corresponding to given PDG code.
Definition:
JPDB.hh:227
JPDB.hh
JSIRENE::pythia
double pythia(const int type, const double E)
Get equivalent EM-energy for given pion energy.
Definition:
km3-opa_efrac.hh:31
Generated by
1.8.16