Logo ROOT   6.18/05
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
15Utility 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{
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;
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
#define b(i)
Definition: RSha256.hxx:100
const char Option_t
Definition: RtypesCore.h:62
#define ClassImp(name)
Definition: Rtypes.h:365
char name[80]
Definition: TGX11.cxx:109
Using a TBrowser one can browse all ROOT objects.
Definition: TBrowser.h:37
void Browse(TBrowser *b)
Browse this collection (called by TBrowser).
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:29
virtual const char * GetName() const
Returns name of object.
Definition: TNamed.h:47
An array of TObjects.
Definition: TObjArray.h:37
Utility class used internally by TDatabasePDG.
virtual ~TParticleClassPDG()
destructor, class doesn't own its particles...
TObjArray * fListOfParticles
virtual void Browse(TBrowser *b)
browse this particle class
virtual void Print(Option_t *opt="") const
Print the entire information of this kind of particle.
TParticleClassPDG(const TParticleClassPDG &pcp)
Description of the static properties of a particle.
Definition: TParticlePDG.h:19
virtual void Print(Option_t *opt="") const
Print the entire information of this kind of particle.