Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
22
23////////////////////////////////////////////////////////////////////////////////
24///default constructor
25
30
31////////////////////////////////////////////////////////////////////////////////
32/// destructor, class doesn't own its particles...
33
37
38
39
40////////////////////////////////////////////////////////////////////////////////
41///
42/// Print the entire information of this kind of particle
43///
44
46{
47 printf("Particle class: %-20s",GetName());
48 if (fListOfParticles) {
49 int banner_printed = 0;
52 while ((p = (TParticlePDG*)next())) {
53 if (! banner_printed) {
54 p->Print("banner");
56 }
57 p->Print("");
58 }
59 }
60}
61
62////////////////////////////////////////////////////////////////////////////////
63///browse this particle class
64
69
70
#define b(i)
Definition RSha256.hxx:100
const char Option_t
Option string (const char)
Definition RtypesCore.h:80
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
winID h TVirtualViewer3D TVirtualGLPainter p
char name[80]
Definition TGX11.cxx:110
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:49
An array of TObjects.
Definition TObjArray.h:31
void Browse(TBrowser *b) override
browse this particle class
TObjArray * fListOfParticles
~TParticleClassPDG() override
destructor, class doesn't own its particles...
TParticleClassPDG(const TParticleClassPDG &pcp)
void Print(Option_t *opt="") const override
Print the entire information of this kind of particle.
Description of the static properties of a particle.