Revision fa6bf9fdadd54ed58dd4d3ea73a43be4f628541c authored by Fons Rademakers on 24 October 2008, 10:47:00 UTC, committed by Fons Rademakers on 24 October 2008, 10:47:00 UTC
SELinux protected OS (e.g. SLC5). git-svn-id: http://root.cern.ch/svn/root/tags/v5-18-00e@25944 27541ba8-7e3a-0410-8455-c3a389f83636
1 parent 38e9d28
TParticleClassPDG.cxx
// @(#)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);
}
Computing file changes ...