Logo ROOT   6.08/07
Reference Guide
TParticleClassPDG.cxx
Go to the documentation of this file.
1 // @(#)root/eg:$Id$
2 // Author: Pasha Murat 12/02/99
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 /** \class TParticleClassPDG
13  \ingroup eg
14 
15 Utility class used internally by TDatabasePDG
16 */
17 
18 #include "TDecayChannel.h"
19 #include "TParticlePDG.h"
20 #include "TParticleClassPDG.h"
21 
23 
24 ////////////////////////////////////////////////////////////////////////////////
25 ///default constructor
26 
28 {
29  fListOfParticles = new TObjArray(5);
30 }
31 
32 ////////////////////////////////////////////////////////////////////////////////
33 /// destructor, class doesn't own its particles...
34 
36  delete fListOfParticles;
37 }
38 
39 
40 
41 ////////////////////////////////////////////////////////////////////////////////
42 ///
43 /// Print the entire information of this kind of particle
44 ///
45 
47 {
48  printf("Particle class: %-20s",GetName());
49  if (fListOfParticles) {
50  int banner_printed = 0;
51  TIter next(fListOfParticles);
52  TParticlePDG *p;
53  while ((p = (TParticlePDG*)next())) {
54  if (! banner_printed) {
55  p->Print("banner");
56  banner_printed = 1;
57  }
58  p->Print("");
59  }
60  }
61 }
62 
63 ////////////////////////////////////////////////////////////////////////////////
64 ///browse this particle class
65 
67 {
69 }
70 
71 
virtual const char * GetName() const
Returns name of object.
Definition: TNamed.h:51
An array of TObjects.
Definition: TObjArray.h:39
const char Option_t
Definition: RtypesCore.h:62
virtual void Print(Option_t *opt="") const
Print the entire information of this kind of particle.
virtual ~TParticleClassPDG()
destructor, class doesn't own its particles...
virtual void Browse(TBrowser *b)
browse this particle class
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:33
virtual void Print(Option_t *opt="") const
Print the entire information of this kind of particle.
Using a TBrowser one can browse all ROOT objects.
Definition: TBrowser.h:41
TObjArray * fListOfParticles
Description of the static properties of a particle.
Definition: TParticlePDG.h:23
#define ClassImp(name)
Definition: Rtypes.h:279
void Browse(TBrowser *b)
Browse this collection (called by TBrowser).
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
Definition: TRolke.cxx:630
Utility class used internally by TDatabasePDG.
char name[80]
Definition: TGX11.cxx:109