ROOTPWA
Macros | Enumerations | Functions
pputil.h File Reference
#include <iostream>
#include <string>
#include <complex>
#include <cstdio>

Go to the source code of this file.

Macros

#define signof(x)   (x<0 ? -1 : 1)
#define MAX(x, y)   (x>y ? x : y)
#define MIN(x, y)   (x<y ? x : y)

Enumerations

enum  Geant_ID {
  g_Unknown = 0, g_Gamma = 1, g_Positron = 2, g_Electron = 3,
  g_Neutrino = 4, g_MuonPlus = 5, g_MuonMinus = 6, g_Pi0 = 7,
  g_PiPlus = 8, g_PiMinus = 9, g_KLong = 10, g_KPlus = 11,
  g_KMinus = 12, g_Neutron = 13, g_Proton = 14, g_AntiProton = 15,
  g_KShort = 16, g_Eta = 17, g_Lambda = 18, g_SigmaPlus = 19,
  g_Sigma0 = 20, g_SigmaMinus = 21, g_Xi0 = 22, g_XiMinus = 23,
  g_OmegaMinus = 24, g_AntiNeutron = 25, g_AntiLambda = 26, g_AntiSigmaMinus = 27,
  g_AntiSigma0 = 28, g_AntiSigmaPlus = 29, g_AntiXi0 = 30, g_AntiXiPlus = 31,
  g_AntiOmegaPlus = 32, g_Deuteron = 45, g_Triton = 49, g_Rho0 = 57,
  g_RhoPlus = 58, g_RhoMinus = 59, g_omega = 60, g_EtaPrime = 61,
  g_phiMeson = 62
}

Functions

double tilde (const int l)
std::complex< double > D (const double alpha, const double beta, const double gamma, const int j, const int n, const int m)
double d_jmn_b (int J, int M, int N, double beta)
double clebsch (const int j1, const int j2, const int j3, const int m1, const int m2, const int m3)
void clebs_ (int *, int *, int *, int *, int *, int *, int *, int *)
int fact (int i)
double dfact (const double i)
double F (const int n, const double p)
double lambda (const double a, const double b, const double c)
std::complex< double > q (const double M, const double m1, const double m2)
void addtab ()
void subtab ()
void ptab ()
void settab (const int)
std::string itos (const int)
std::string chargetos (int charge)
Geant_ID name2id (const std::string &name, const int q)
std::string id2name (const Geant_ID)

Macro Definition Documentation

#define MAX (   x,
 
)    (x>y ? x : y)

Definition at line 59 of file pputil.h.

Referenced by d_jmn_b().

#define MIN (   x,
 
)    (x<y ? x : y)

Definition at line 60 of file pputil.h.

Referenced by d_jmn_b().

#define signof (   x)    (x<0 ? -1 : 1)

Definition at line 58 of file pputil.h.

Referenced by main(), wave::setupFrames(), particle::setupFrames(), and Tgamp::toGottfriedJackson().

Enumeration Type Documentation

enum Geant_ID
Enumerator:
g_Unknown 
g_Gamma 
g_Positron 
g_Electron 
g_Neutrino 
g_MuonPlus 
g_MuonMinus 
g_Pi0 
g_PiPlus 
g_PiMinus 
g_KLong 
g_KPlus 
g_KMinus 
g_Neutron 
g_Proton 
g_AntiProton 
g_KShort 
g_Eta 
g_Lambda 
g_SigmaPlus 
g_Sigma0 
g_SigmaMinus 
g_Xi0 
g_XiMinus 
g_OmegaMinus 
g_AntiNeutron 
g_AntiLambda 
g_AntiSigmaMinus 
g_AntiSigma0 
g_AntiSigmaPlus 
g_AntiXi0 
g_AntiXiPlus 
g_AntiOmegaPlus 
g_Deuteron 
g_Triton 
g_Rho0 
g_RhoPlus 
g_RhoMinus 
g_omega 
g_EtaPrime 
g_phiMeson 

Definition at line 11 of file pputil.h.

Function Documentation

void addtab ( )

Definition at line 227 of file pputil.cc.

References ntab.

Referenced by decay::amp(), decay::expt_amp(), particle::print(), and particle::printFrames().

std::string chargetos ( int  charge)

Definition at line 418 of file pputil.cc.

Referenced by particle::sprint().

void clebs_ ( int ,
int ,
int ,
int ,
int ,
int ,
int ,
int  
)
double clebsch ( const int  j1,
const int  j2,
const int  j3,
const int  m1,
const int  m2,
const int  m3 
)
std::complex<double> D ( const double  alpha,
const double  beta,
const double  gamma,
const int  j,
const int  n,
const int  m 
)

Definition at line 10 of file pputil.cc.

References d_jmn_b(), and i.

double d_jmn_b ( int  J,
int  M,
int  N,
double  beta 
)

Definition at line 24 of file pputil.cc.

References d, exit, fact(), M, MAX, and MIN.

Referenced by D().

double dfact ( const double  i)

Definition at line 138 of file pputil.cc.

References dfact().

Referenced by clebsch(), and dfact().

double F ( const int  n,
const double  p 
)
int fact ( int  i)

Definition at line 207 of file pputil.cc.

References i.

Referenced by d_jmn_b(), and rpwa::nBodyPhaseSpaceGen::setDecay().

std::string id2name ( const Geant_ID  )
std::string itos ( const int  )

Definition at line 406 of file pputil.cc.

References i, and int.

double lambda ( const double  a,
const double  b,
const double  c 
)
Geant_ID name2id ( const std::string &  name,
const int  q 
)
void ptab ( )
std::complex<double> q ( const double  M,
const double  m1,
const double  m2 
)
void settab ( const int  )

Definition at line 252 of file pputil.cc.

References tabsize.

void subtab ( )

Definition at line 234 of file pputil.cc.

References ntab.

Referenced by decay::amp(), decay::expt_amp(), particle::print(), and particle::printFrames().

double tilde ( const int  l)
inline

Definition at line 63 of file pputil.h.

Referenced by decay::amp().