// @(#)root/eg:$Name:  $:$Id: TParticleClassPDG.cxx,v 1.2 2001/03/05 11:37:31 brun Exp $
// Author: Pasha Murat   12/02/99

#include "TDecayChannel.h"
#include "TParticlePDG.h"
#include "TParticleClassPDG.h"

ClassImp(TParticleClassPDG)

//______________________________________________________________________________
 TParticleClassPDG::TParticleClassPDG(const char* name): TNamed(name,name)
{
  fListOfParticles  = new TObjArray(5);
}

//______________________________________________________________________________
 TParticleClassPDG::~TParticleClassPDG() {
  // destructor, class doesn't own its particles...

  delete fListOfParticles;
}



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

  printf("Particle class: %-20s",GetName());
  if (fListOfParticles) {
    int banner_printed = 0;
    TIter next(fListOfParticles);
    TParticlePDG *p;
    while ((p = (TParticlePDG*)next())) {
      if (! banner_printed) {
	p->Print("banner");
	banner_printed = 1;
      }
      p->Print("");
    }
  }
}

//______________________________________________________________________________
 void TParticleClassPDG::Browse(TBrowser* b)
{
  if (fListOfParticles) fListOfParticles->Browse(b);
}




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.