Revision 19908c16d5832c2a719f976a0e4c8ad80698a006 authored by Rene Brun on 12 March 2004, 16:13:49 UTC, committed by Rene Brun on 12 March 2004, 16:13:49 UTC
- fix for broken menus under win32gdk
- fix automatic active grab under win32gdk
Passive grab (GrabButton) does not work correctly yet.


git-svn-id: http://root.cern.ch/svn/root/trunk@8387 27541ba8-7e3a-0410-8455-c3a389f83636
1 parent 11b6b9f
Raw File
TMCParticle.cxx
// @(#)root/pythia:$Name:  $:$Id: TMCParticle.cxx,v 1.1.1.1 2000/05/16 17:00:48 rdm Exp $
// Author: Piotr Golonka   17/09/97
////////////////////////////////////////////////////////////////////////////////
//                                                                            //
//  class TMCParticle                                                         //
//                                                                            //
// This class serves as a data storage for description of one particle.       //
// It is especially convenient to store information taken from LUJETS common, //
// which is done by interface class TPythia.                                  //
////////////////////////////////////////////////////////////////////////////////

#include "TMCParticle.h"
#include "TPrimary.h"

#ifndef WIN32
# define luname luname_
extern "C" void luname(const Int_t &kf, const char *name, const Int_t len);
#else
# define luname LUNAME
extern "C" void luname(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
{
   // Return name of this particle via Pythia

   static char name[20];
   luname(fKF,name,16); name[15] = 0;
   for (Int_t i=14;i>0;i--) {
      if (name[i] != ' ') break;
      name[i] = 0;
   }
   return name;
}
back to top