Jpp - the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | List of all members
JSIRENE::JPythia Struct Reference

Auxiliary class to determine EM-equivalent energy as a function of PDG particle code and energy. More...

#include <JPythia.hh>

Public Member Functions

 JPythia ()
 Default constructor. More...
 
double operator() (const int type, const double Es) const
 Get EM-equivalent energy. More...
 

Static Public Member Functions

static double getEnergy (const double Es)
 Get equivalent EM-energy for given pion energy. More...
 

Detailed Description

Auxiliary class to determine EM-equivalent energy as a function of PDG particle code and energy.

Definition at line 21 of file JPythia.hh.

Constructor & Destructor Documentation

JSIRENE::JPythia::JPythia ( )
inline

Default constructor.

Definition at line 25 of file JPythia.hh.

26  {}

Member Function Documentation

double JSIRENE::JPythia::operator() ( const int  type,
const double  Es 
) const
inline

Get EM-equivalent energy.

Parameters
typeparticle type [PDG]
Esparticle energy [GeV]
Returns
EM-equivalent energy [GeV]

Definition at line 36 of file JPythia.hh.

37  {
38  using namespace JAANET;
39 
40  switch (type) {
41 
42  case TRACK_TYPE_PHOTON:
47  return Es;
48 
51  return getEnergy(Es);
52 
53  default:
54  return 0.0;
55  }
56  }
static double getEnergy(const double Es)
Get equivalent EM-energy for given pion energy.
Definition: JPythia.hh:70
static double JSIRENE::JPythia::getEnergy ( const double  Es)
inlinestatic

Get equivalent EM-energy for given pion energy.

Reference: Mona Dentler, "Investigation of the One-Particle Approximation in the ANTARES simulation package KM3",
Bachelorarbeit Erlangen Centre for Astroparticle Physics,
Friedrich-Alexander-Universität, Erlangen-Nürnberg.

Parameters
Esparticle energy [GeV]
Returns
EM-equivalent energy [GeV]

Definition at line 70 of file JPythia.hh.

71  {
72  static const double a = 72.425;
73  static const double b = -49.417;
74  static const double c = 5.858;
75  static const double d = 207.252;
76  static const double e = 132.784;
77  static const double f = -10.277;
78  static const double g = -19.441;
79  static const double h = 58.598;
80  static const double i = 53.161;
81  static const double kref = 2.698;
82 
83  static const double u = (a - f) / kref;
84 
85  const double x = log10(Es);
86  const double y = (e + x*(d + x*(c + x*(b + x*(a + x*u))))) / (i + x*(h + x*(g + x*(f + x*u))));
87 
88  return pow(10.0, y - kref);
89  }
do set_array DAQHEADER JPrintDAQHeader f
Definition: JTuneHV.sh:79
T pow(const T &x, const double y)
Power .
Definition: JMath.hh:98
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
Definition: JMuonPath.sh:45
then JCalibrateToT a
Definition: JTuneHV.sh:108
double u[N+1]
Definition: JPolint.hh:739

The documentation for this struct was generated from the following file: