#include "TMCParticle.h"
#include "TPrimary.h"
#ifndef WIN32
# define pyname pyname_
extern "C" void pyname(const Int_t &kf, const char *name, const Int_t len);
#else
# define pyname PYNAME
extern "C" void pyname(const Int_t &kf, const char *name, const Int_t len);
#endif
ClassImp(TMCParticle)
void TMCParticle::ls(Option_t *) const
{
printf("(%2i,%4i) <-%3i, =>[%3i,%3i]",fKS,fKF,fParent,
fFirstChild,fLastChild);
printf(": p=(%7.3f,%7.3f,%9.3f) ;",fPx,fPy,fPz);
printf(" E=%8.3f ; m=%7.3f ; V=(%g,%g,%g); t=%g, tau=%g\n",
fEnergy,fMass,fVx,fVy,fVz,fTime,fLifetime);
}
const char *TMCParticle::GetName() const
{
static char name[20];
pyname(fKF,name,16); name[15] = 0;
for (Int_t i=14;i>0;i--) {
if (name[i] != ' ') break;
name[i] = 0;
}
return name;
}
Last change: Wed Jun 25 08:48:03 2008
Last generated: 2008-06-25 08:48
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.