[root] / trunk / montecarlo / eg / src / TDatabasePDG.cxx Repository:
ViewVC logotype

Log of /trunk/montecarlo/eg/src/TDatabasePDG.cxx

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 49275 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 19 12:33:02 2013 UTC (21 months ago) by moneta
File length: 32380 byte(s)
Diff to previous 44041
fix for bug https://sft.its.cern.ch/jira/browse/ROOT-4893

 the content of the list fListOfClasses was not deleted  in the constructor of TDataBasePDG

Revision 44041 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 30 16:02:14 2012 UTC (2 years, 8 months ago) by axel
File length: 32278 byte(s)
Diff to previous 43982
Coverity

Revision 43982 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 27 11:01:54 2012 UTC (2 years, 8 months ago) by pcanal
File length: 32127 byte(s)
Diff to previous 41606
Add missing const keyword

Revision 41606 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 27 09:35:23 2011 UTC (3 years, 2 months ago) by rdm
File length: 32109 byte(s)
Diff to previous 41302
white space.

Revision 41302 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 10 13:33:10 2011 UTC (3 years, 3 months ago) by axel
File length: 32112 byte(s)
Diff to previous 36178
From Bertrand: Fix coverity reports #33290 & #33291, #32729 & #33861

Revision 36178 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 8 09:43:51 2010 UTC (4 years, 3 months ago) by brun
File length: 32026 byte(s)
Diff to previous 35981
flag several coverity reports as FALSE with
            // coverity [secure_coding : FALSE]

Revision 35981 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 1 10:00:44 2010 UTC (4 years, 3 months ago) by pcanal
File length: 31030 byte(s)
Diff to previous 35450
Extend fix for cov 11418

Revision 35450 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 20 12:36:11 2010 UTC (4 years, 4 months ago) by pcanal
File length: 30959 byte(s)
Diff to previous 35002
Fix Coverity reports

TDatabasePDG.cxx: #11418 getc returns an int
TTree.cxx: #10577 unused variable
TTreeFormula.cxx: #10795,#10796,#13272,#13273,#13274,#14173 strcat -> strncat, strcpy -> strncpy
TTreePlayer.cxx: #10891,#10892,#14169,#14170,#14172 strcpy -> strncpy
TStreamerElement.cxx: #12537,#13200,#13318,#13586,#13587,#13588,#13589,#13590,#13591,#13596,#13597,#13598 strcpy,sprintf -> strncpy,snprintf (or TString)
TStreamerInfo.cxx: #13470,#13787,#13788 strcpy,sprintf -> strncpy,snprintf (or TString)
TBranchProxy.cxx: null pointer dereference.
TBranch.cxx: #10689 null pointer dereference.
loadfile.cxx: #10767,#12387.#12388,#12389,#12521,#12522,#13514,etc.. strcpy,sprintf -> strncpy,snprintf  (or TString)
TFileDrawMap.cxx: #10893,#10894,#10895,#13460,#14176,#14177,#14718,#14179 strcpy,sprintf -> strncpy,snprintf  (or TString)
TFile.cxx: #13789,#13193,#13450 strcpy,sprintf -> strncpy,snprintf  (or TString)
TMethod.cxx: #10802,#13310 strcpy,sprintf -> strncpy,snprintf  (or TString)
TClass.cxx: #10814,#13122,#13467,#13468,#13490 strcpy,sprintf -> strncpy,snprintf  (or TString)
TDataMember.cxx: #10825,#13241,#13329,#13330,#13584 strcpy,sprintf -> strncpy,snprintf  (or TString)
TFormula.cxx: #13263,#13783 sprintf -> snprintf or TString
stlLoader.cxx: #13599 static array -> G__FastAllocString

Revision 35002 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 25 11:24:13 2010 UTC (4 years, 5 months ago) by brun
File length: 30923 byte(s)
Diff to previous 33248
Close open file (coverity)

Revision 33248 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 27 18:46:32 2010 UTC (4 years, 8 months ago) by brun
File length: 30907 byte(s)
Diff to previous 32589
Fix warnings with gcc4.5

Revision 32589 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 12 15:10:28 2010 UTC (4 years, 10 months ago) by brun
File length: 30715 byte(s)
Diff to previous 31955
Add a protection proposed by Robert Hatcher:
If users call TDatabasePDG::ReadPDGTable() twice for the same input
file the code SEGV's because AddParticle(), which normally returns a
pointer to the newly added TParticlePDG, returns 0 if the particle 
already exists.  If the entry also has decay info then it attempts to
use the null pointer to AddDecayChannel().  The SEGV can be avoided
by the addition of a simple "if (part)" conditional:

Revision 31955 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 4 10:08:48 2010 UTC (5 years ago) by brun
File length: 30705 byte(s)
Diff to previous 29636
from biagio.di.micco@cern.ch
The method ReadPDGTable of TDatabasePDG was setting the stable flags for all particles regardless of their width.

Revision 29636 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 30 14:50:00 2009 UTC (5 years, 5 months ago) by rdm
File length: 30607 byte(s)
Diff to previous 29003
fix gcc-3.4 compiler warnings. This compiler does not like it when Long64_t's
are cast to pointers on 32-bit machines without first being cast to Long_t
(gcc 4.x does not complain about this).

Revision 29003 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 15 15:07:20 2009 UTC (5 years, 7 months ago) by brun
File length: 30599 byte(s)
Diff to previous 28997
From Axel and Matevz:
Create TExMap large enough to avoid resizing during standard creation.

Revision 28997 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 15 12:43:05 2009 UTC (5 years, 7 months ago) by brun
File length: 30368 byte(s)
Diff to previous 23537
From Matevz: 
Add additional hash-map to speed-up queries based on PDG code.

Revision 23537 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 24 20:58:17 2008 UTC (6 years, 9 months ago) by brun
File length: 30073 byte(s)
Diff to previous 23479
From Bertrand:
- Re-introduce variable initialization removed in Revision 23479

Revision 23479 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 23 14:48:54 2008 UTC (6 years, 9 months ago) by brun
File length: 30049 byte(s)
Diff to previous 23136
Fix shadowed variables

Revision 23136 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 11 08:58:49 2008 UTC (6 years, 9 months ago) by rdm
File length: 30095 byte(s)
Diff to previous 22419
move the following directories to "montecarlo":

eg, g4root, pythia6, pythia8, vmc

Revision 22419 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 3 00:25:01 2008 UTC (6 years, 10 months ago) by rdm
Original Path: trunk/eg/src/TDatabasePDG.cxx
File length: 30095 byte(s)
Diff to previous 20882
From Andrew Savchenko:
ROOT can not be compiled with gcc-4.3.
Some ROOT source files doesn't contain required #include directives,
for example, they use strlen(), but #include <string.h> is missed or
malloc() is used and #include <stdlib.h> is missed. 

Earlier versions of gcc allowed some headers to be included implicitly,
but issued a warning (-Wimplicit-function-declaration). Newer one,
gcc-4.3 denies such silly behaviour: all required headers must be explicitly
included. 

Attached patch fixes this. Also it fixes another issue, which disallows
ROOT to compile under gcc-4.3: C functions don't belong to namespace std,
so expressions like std::memcpy() are no longer valid and plain memcpy()
should be used instead.

Revision 20882 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 19 11:31:26 2007 UTC (7 years, 2 months ago) by rdm
Original Path: trunk/eg/src/TDatabasePDG.cxx
File length: 30075 byte(s)
Diff to previous 20411
Set property svn:eol-style LF on all source and Makefiles. This should avoid
problems with Win32 line endings ending up in the repository. All MS tools
support LF eols fine.

Revision 20411 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 19 12:37:58 2007 UTC (7 years, 3 months ago) by rdm
Original Path: trunk/eg/src/TDatabasePDG.cxx
File length: 30075 byte(s)
Diff to previous 19826
remove conditional around include of RConfigure.h:

#ifdef R__HAVE_CONFIG
#include "RConfigure.h"
#endif 

Having this conditional caused RConfigure.h to be missing from the .d
files and hence these files would not be recompiled after re-configuring
using --prefix.

Revision 19826 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:56:11 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/eg/src/TDatabasePDG.cxx
File length: 30105 byte(s)
Diff to previous 19825
imported svn:keywords Id property

Revision 19825 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:49:10 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/eg/src/TDatabasePDG.cxx
File length: 30160 byte(s)
Diff to previous 19537
remove :$ from tag line

Revision 19537 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 2 16:15:05 2007 UTC (7 years, 5 months ago) by rdm
Original Path: trunk/eg/src/TDatabasePDG.cxx
File length: 30170 byte(s)
Diff to previous 17658
From Constantin Loizides:
implement WritePDGTable(), note that it does not 100% reproduce
the existing pdg_table.txt due to inconsistencies in
the names of the daughter particles in the decay chains
(that are not used anyways) and due to the fact
that some (spin) information is set to hard coded values.

Revision 17658 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Feb 3 17:33:41 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/eg/src/TDatabasePDG.cxx
File length: 27484 byte(s)
Diff to previous 16796
Use forward declaration of THashList

Revision 16796 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 16 17:18:32 2006 UTC (8 years, 2 months ago) by rdm
Original Path: trunk/eg/src/TDatabasePDG.cxx
File length: 27461 byte(s)
Diff to previous 16575
Changes to get rid of the config.h and HAVE_CONFIG define. These were way
too trivial (just do a locate config.h to see how many there are):
- replace occurances of config.h by RConfigure.h
- add #warning in config.h that is should not be used
- change HAVE_CONFIG to R__HAVE_CONFIG

Revision 16575 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 20 09:36:47 2006 UTC (8 years, 3 months ago) by rdm
Original Path: trunk/eg/src/TDatabasePDG.cxx
File length: 27454 byte(s)
Diff to previous 16107
avoid possible string overflow in file name.

Revision 16107 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 24 16:31:21 2006 UTC (8 years, 5 months ago) by rdm
Original Path: trunk/eg/src/TDatabasePDG.cxx
File length: 27463 byte(s)
Diff to previous 15055
Added proper copyright and license statements. All files now LGPL.

Revision 15055 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 16 06:18:27 2006 UTC (8 years, 8 months ago) by brun
Original Path: trunk/eg/src/TDatabasePDG.cxx
File length: 26936 byte(s)
Diff to previous 15043
Fix coding conventions violations

Revision 15043 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 15 07:27:03 2006 UTC (8 years, 8 months ago) by brun
Original Path: trunk/eg/src/TDatabasePDG.cxx
File length: 26935 byte(s)
Diff to previous 12626
Fix coding conventions violations

Revision 12626 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Sep 4 11:42:05 2005 UTC (9 years, 4 months ago) by brun
Original Path: trunk/eg/src/TDatabasePDG.cxx
File length: 26064 byte(s)
Diff to previous 12000
Fix coding conventions.

Revision 12000 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 9 06:23:47 2005 UTC (9 years, 7 months ago) by brun
Original Path: trunk/eg/src/TDatabasePDG.cxx
File length: 24786 byte(s)
Diff to previous 5717
From Constantin Loizides
Add a new function converting from PDG to Geant numbering scheme.

Revision 5717 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 2 18:50:12 2002 UTC (12 years, 1 month ago) by rdm
Original Path: trunk/eg/src/TDatabasePDG.cxx
File length: 22581 byte(s)
Diff to previous 4988
mega patch to remove almost all compiler warnings on MacOS X where the
compiler is by default in pedantic mode (LHCb also like to use this option).
The following issues have been fixed:
- removal of unused arguments
- comparison between signed and unsigned integers
- not calling of base class copy ctor in copy ctor's
To be done, the TGeo classes where we get still many hundred warnings of
the above nature. List forwarded to Andrei.

Revision 4988 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 19 08:28:32 2002 UTC (12 years, 6 months ago) by rdm
Original Path: trunk/eg/src/TDatabasePDG.cxx
File length: 22576 byte(s)
Diff to previous 3742
remove <strstream>, not used anymore.

Revision 3742 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 23 17:52:52 2002 UTC (13 years ago) by rdm
Original Path: trunk/eg/src/TDatabasePDG.cxx
File length: 22729 byte(s)
Diff to previous 3275
use IOSFwd.h in headers instead of <iosfwd> or many other ifdef'ed variant
and IOStream.h in the source instead of <iostream[.h]>, <fstream[.h]> and
<iomanip[.h]>.

Revision 3275 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 22 08:04:25 2001 UTC (13 years, 2 months ago) by brun
Original Path: trunk/eg/src/TDatabasePDG.cxx
File length: 22648 byte(s)
Diff to previous 3272
Add reference to html page explaining the particle convention (Babar web site).

Revision 3272 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 22 07:38:22 2001 UTC (13 years, 2 months ago) by brun
Original Path: trunk/eg/src/TDatabasePDG.cxx
File length: 22611 byte(s)
Diff to previous 3179
Add a new member function (Thanks Paul Balm from Babar) to convert Geant3 particle code
to PDG convention:
   Int_t TDatabasePDG::ConvertGeant3ToPdg(Int_t Geant3number)

Revision 3179 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 6 19:15:13 2001 UTC (13 years, 2 months ago) by rdm
Original Path: trunk/eg/src/TDatabasePDG.cxx
File length: 19927 byte(s)
Diff to previous 3168
in case of absolute installation (without $ROOTSYS) look for pdg_table.txt
in ROOTETCDIR.

Revision 3168 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 5 11:45:37 2001 UTC (13 years, 2 months ago) by brun
Original Path: trunk/eg/src/TDatabasePDG.cxx
File length: 19793 byte(s)
Diff to previous 2822
The file pdg.dat in $ROOTSYS has been removed.
Update TDatabasePDG to reference the file in $ROOTSYS/etc/psg_table.txt

Revision 2822 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 20 07:08:38 2001 UTC (13 years, 4 months ago) by brun
Original Path: trunk/eg/src/TDatabasePDG.cxx
File length: 19793 byte(s)
Diff to previous 2225
In TDatabasePDG::GetParticle, replace the TIter object by an explicit loop
on all particles. This gives a huge gain in speed.
A more important gain could be obtained in adding a TMap object in the class
maintaining the association between a given PDG code and the corresponding
particle.

Revision 2225 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 17 06:45:55 2001 UTC (13 years, 8 months ago) by brun
Original Path: trunk/eg/src/TDatabasePDG.cxx
File length: 19733 byte(s)
Diff to previous 1822
Move TDatabasePDG::Instance from inline to the implementation file.
Because of Windows/VC++ one cannot reference a global variable in an inline function.

Revision 1822 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 15 17:53:02 2001 UTC (13 years, 10 months ago) by brun
Original Path: trunk/eg/src/TDatabasePDG.cxx
File length: 19510 byte(s)
Diff to previous 1775
Fix a problem in TDatabasePDG::ReadPDGTable. Illegal string comparison.

Revision 1775 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 8 20:15:39 2001 UTC (13 years, 10 months ago) by rdm
Original Path: trunk/eg/src/TDatabasePDG.cxx
File length: 19503 byte(s)
Diff to previous 1764
pdg_table.txt is now in $ROOTSYS/etc instead of $ROOTSYS/eg/src.

Revision 1764 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 8 13:44:52 2001 UTC (13 years, 10 months ago) by brun
Original Path: trunk/eg/src/TDatabasePDG.cxx
File length: 19528 byte(s)
Diff to previous 1753
Add more info to a Warning message in AddParticle.

Revision 1753 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 6 10:06:37 2001 UTC (13 years, 10 months ago) by brun
Original Path: trunk/eg/src/TDatabasePDG.cxx
File length: 19508 byte(s)
Diff to previous 1743
Add protections in TDatabasePDG destructor in case the list of particle classes
has not been created

Revision 1743 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 5 10:16:50 2001 UTC (13 years, 10 months ago) by brun
Original Path: trunk/eg/src/TDatabasePDG.cxx
File length: 19453 byte(s)
Diff to previous 1741
Commented unused code

Revision 1741 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 5 09:22:15 2001 UTC (13 years, 10 months ago) by brun
Original Path: trunk/eg/src/TDatabasePDG.cxx
File length: 19435 byte(s)
Diff to previous 1740
Replace the non portable call to getenv by gSystem->Getenv

Revision 1740 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 5 09:09:42 2001 UTC (13 years, 10 months ago) by brun
Original Path: trunk/eg/src/TDatabasePDG.cxx
File length: 19427 byte(s)
Diff to previous 1509
New version of TDatabasePDG and related classes from Pasha Murat.
Note that TDatabasePDG::AddParticle has two additional parameters (optional).
- the default constructor is not doing anything now (not even allocating the memory)
- GetParticle methods are modified to do auto-initialization if necessary
- ReadPDGTable includes Init functionality
- Rootino has been added
- few typo-level things fixed in the particle table itself (like "p+" has been
  changed into "proton", "n0" into "neutron" and such)
TDatabasePDG::Init has been removed (replaced by ReadPDGTable). This new function
reads the PDG data base from the ascii file pdg_table.txt in $ROOTSYS/eg/src

Revision 1509 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 2 11:06:15 2001 UTC (13 years, 11 months ago) by brun
Original Path: trunk/eg/src/TDatabasePDG.cxx
File length: 99818 byte(s)
Diff to previous 1205
Add a protection in the destructor in case the class supposed to be a singleton
is instantiated multiple times.

Revision 1205 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 13 15:13:57 2000 UTC (14 years, 1 month ago) by brun
Original Path: trunk/eg/src/TDatabasePDG.cxx
File length: 99818 byte(s)
Diff to previous 15
      W A R N I N G   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     ==================================================================
A very long list of changes in this pre-release of version 3.00.
We have modified the signature of many functions (in particular TObject)
to introduce more constness in the system.
You must change your code if your class derives from TObject and uses
one of the modified functions such as ls, Print, Compare, Hash, etc.
The modified functions in TObject have the following signature:
   virtual TObject    *Clone() const;
   virtual Int_t       Compare(const TObject *obj) const;
   virtual void        Delete(Option_t *option=""); // *MENU*
   virtual void        DrawClass() const; // *MENU*
   virtual void        DrawClone(Option_t *option="") const; // *MENU*
   virtual void        Dump() const; // *MENU*
   virtual TObject    *FindObject(const TObject *obj) const;
   virtual char       *GetObjectInfo(Int_t px, Int_t py) const;
   virtual ULong_t     Hash() const;
   virtual void        Inspect() const; // *MENU*
   virtual Bool_t      IsEqual(const TObject *obj) const;
   virtual void        ls(Option_t *option="") const;
   virtual void        Print(Option_t *option="") const;

A similar operation has been done with classes such as TH1, TVirtualPad,
TTree, etc.

Revision 15 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 18 17:14:47 2000 UTC (14 years, 8 months ago) by brun
Original Path: trunk/eg/src/TDatabasePDG.cxx
File length: 99734 byte(s)
Diff to previous 3
In TDatabasePDG destructor, reset fgInstance to 0. This is necessary   in case the class supposed to be used as a singleton is created or  deleted multiple times.

Revision 3 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 16 17:00:58 2000 UTC (14 years, 8 months ago) by rdm
Original Path: trunk/eg/src/TDatabasePDG.cxx
File length: 99655 byte(s)
Copied from: branches/rdm/eg/src/TDatabasePDG.cxx revision 2
Diff to previous 2
This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.

Revision 2 - (view) (download) (as text) (annotate) - [select for diffs]
Added Tue May 16 17:00:58 2000 UTC (14 years, 8 months ago) by rdm
Original Path: branches/rdm/eg/src/TDatabasePDG.cxx
File length: 99655 byte(s)
Initial import of ROOT into CVS

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9