//*CMZ :  2.22/07 01/07/99  16.40.14  by  Rene Brun
//*CMZ :  2.21/06 15/02/99  10.12.43  by  Rene Brun
//*-- Author :    Pasha Murat   12/02/99

//*KEEP,TParticlePDG,T=C++.
#include "TParticlePDG.h"
//*KEND.


ClassImp(TParticlePDG)

//______________________________________________________________________________
 TParticlePDG::TParticlePDG()
{
  fDecayList  = NULL;
}

//______________________________________________________________________________
 TParticlePDG::TParticlePDG(Int_t )
{
  // empty for the time  being

  fDecayList  = NULL;
}

//______________________________________________________________________________
 TParticlePDG::TParticlePDG(const char* name, const char* title, Double_t mass,
			   Bool_t stable, Double_t width, Double_t charge,
			   const Text_t* type, Int_t MCnumber)
             : TNamed(name,title)
{

    // empty for the time  being

    fMass       = mass;
    fStable     = stable;
    fWidth      = width;
    fCharge     = charge;
    fType       = type;
    fPdgCode    = MCnumber;
    fDecayList  = NULL;
}


//______________________________________________________________________________
 TParticlePDG::~TParticlePDG()
{
}

//______________________________________________________________________________
 void TParticlePDG::Print(Option_t *)
{
//
//  Print the entire information of this kind of particle
//

   printf("n%-20s  %6dt",GetName(),fPdgCode);
   if (!fStable) {
       printf("Mass:%9.4f Width (GeV):%11.4etCharge: %5.1fn",
              fMass, fWidth, fCharge);
   }
   else {
       printf("Mass:%9.4f Width (GeV): StabletCharge: %5.1fn",
              fMass, fCharge);
   }
}



ROOT page - Class index - Top of the page

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.