ROOT logo
// @(#)root/eg:$Id$
// Author: Pasha Murat   12/02/99

/*************************************************************************
 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

//______________________________________________________________________________
//
// Utility class used internally by TDatabasePDG

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

ClassImp(TParticleClassPDG)

//______________________________________________________________________________
TParticleClassPDG::TParticleClassPDG(const char* name): TNamed(name,name)
{
   //default constructor
   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)
{
   //browse this particle class
   if (fListOfParticles) fListOfParticles->Browse(b);
}


 TParticleClassPDG.cxx:1
 TParticleClassPDG.cxx:2
 TParticleClassPDG.cxx:3
 TParticleClassPDG.cxx:4
 TParticleClassPDG.cxx:5
 TParticleClassPDG.cxx:6
 TParticleClassPDG.cxx:7
 TParticleClassPDG.cxx:8
 TParticleClassPDG.cxx:9
 TParticleClassPDG.cxx:10
 TParticleClassPDG.cxx:11
 TParticleClassPDG.cxx:12
 TParticleClassPDG.cxx:13
 TParticleClassPDG.cxx:14
 TParticleClassPDG.cxx:15
 TParticleClassPDG.cxx:16
 TParticleClassPDG.cxx:17
 TParticleClassPDG.cxx:18
 TParticleClassPDG.cxx:19
 TParticleClassPDG.cxx:20
 TParticleClassPDG.cxx:21
 TParticleClassPDG.cxx:22
 TParticleClassPDG.cxx:23
 TParticleClassPDG.cxx:24
 TParticleClassPDG.cxx:25
 TParticleClassPDG.cxx:26
 TParticleClassPDG.cxx:27
 TParticleClassPDG.cxx:28
 TParticleClassPDG.cxx:29
 TParticleClassPDG.cxx:30
 TParticleClassPDG.cxx:31
 TParticleClassPDG.cxx:32
 TParticleClassPDG.cxx:33
 TParticleClassPDG.cxx:34
 TParticleClassPDG.cxx:35
 TParticleClassPDG.cxx:36
 TParticleClassPDG.cxx:37
 TParticleClassPDG.cxx:38
 TParticleClassPDG.cxx:39
 TParticleClassPDG.cxx:40
 TParticleClassPDG.cxx:41
 TParticleClassPDG.cxx:42
 TParticleClassPDG.cxx:43
 TParticleClassPDG.cxx:44
 TParticleClassPDG.cxx:45
 TParticleClassPDG.cxx:46
 TParticleClassPDG.cxx:47
 TParticleClassPDG.cxx:48
 TParticleClassPDG.cxx:49
 TParticleClassPDG.cxx:50
 TParticleClassPDG.cxx:51
 TParticleClassPDG.cxx:52
 TParticleClassPDG.cxx:53
 TParticleClassPDG.cxx:54
 TParticleClassPDG.cxx:55
 TParticleClassPDG.cxx:56
 TParticleClassPDG.cxx:57
 TParticleClassPDG.cxx:58
 TParticleClassPDG.cxx:59
 TParticleClassPDG.cxx:60
 TParticleClassPDG.cxx:61
 TParticleClassPDG.cxx:62
 TParticleClassPDG.cxx:63
 TParticleClassPDG.cxx:64
 TParticleClassPDG.cxx:65
 TParticleClassPDG.cxx:66
 TParticleClassPDG.cxx:67