Logo ROOT  
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;
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
const char Option_t
Definition: RtypesCore.h:66
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t b
char name[80]
Definition: TGX11.cxx:110
ClassImp(TParticleClassPDG)
Using a TBrowser one can browse all ROOT objects.
Definition: TBrowser.h:37
void Browse(TBrowser *b) override
Browse this collection (called by TBrowser).
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:29
const char * GetName() const override
Returns name of object.
Definition: TNamed.h:47
An array of TObjects.
Definition: TObjArray.h:31
virtual void Print(Option_t *option="") const
This method must be overridden when a class wants to print itself.
Definition: TObject.cxx:552
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