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

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

Parent Directory Parent Directory


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

Revision 40375 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 27 17:19:05 2011 UTC (3 years, 5 months ago) by axel
File length: 13487 byte(s)
Diff to previous 30824
Fix Savannah #84531.
And flag fParticlePDG as mutable, which makes remaining getters const, too.

Revision 30824 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 22 05:32:45 2009 UTC (5 years, 3 months ago) by brun
File length: 13628 byte(s)
Diff to previous 28998
In TParticle::SetPdgCode print a maximum of 10 Warnings in case the referenced PDG code
is unknown.
see: <http://savannah.cern.ch/bugs/?57359>

Revision 28998 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 15 12:47:44 2009 UTC (5 years, 7 months ago) by brun
File length: 13532 byte(s)
Diff to previous 23136
From Matevz:
remove the dependency of TParticle.h on TDatabasePDG.h.

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: 12742 byte(s)
Diff to previous 21393
move the following directories to "montecarlo":

eg, g4root, pythia6, pythia8, vmc

Revision 21393 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 17 08:55:42 2007 UTC (7 years, 1 month ago) by brun
Original Path: trunk/eg/src/TParticle.cxx
File length: 12742 byte(s)
Diff to previous 20882
Implement class header ducumentation

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/TParticle.cxx
File length: 11272 byte(s)
Diff to previous 19826
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 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/TParticle.cxx
File length: 11272 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/TParticle.cxx
File length: 11323 byte(s)
Diff to previous 17726
remove :$ from tag line

Revision 17726 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 6 14:22:28 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/eg/src/TParticle.cxx
File length: 11333 byte(s)
Diff to previous 16107
In the Streamer functions replace the lines like
         TPad::Class()->ReadBuffer(b, this, v, R__s, R__c);
         TPad::Class()->WriteBuffer(b,this);
by
         b.ReadClassBuffer(TPad::Class(), this, v, R__s, R__c);
         b.WriteClassBuffer(TPad::Class(),this);

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/TParticle.cxx
File length: 11326 byte(s)
Diff to previous 15165
Added proper copyright and license statements. All files now LGPL.

Revision 15165 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 24 14:40:29 2006 UTC (8 years, 8 months ago) by brun
Original Path: trunk/eg/src/TParticle.cxx
File length: 10829 byte(s)
Diff to previous 15134
Fix coding conventions violations

Revision 15134 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 23 04:47:42 2006 UTC (8 years, 8 months ago) by brun
Original Path: trunk/eg/src/TParticle.cxx
File length: 10764 byte(s)
Diff to previous 15043
From Federico Carminati:

"I have implemented all copy and equal operators needed to silence all
warnings in AliRoot, as requested. I have implemented shallow copies as
would do the default operators synthetized by the compiler.
Most operators are protected. If users complain, you just have to move
them into the public area, but class derivation is of course supported.
It has been a terrible job, I have modified 278 files, but the changes
are backward compabile, and this goes a long way to permitting user to
use the effc++ flag with root headers."

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/TParticle.cxx
File length: 9640 byte(s)
Diff to previous 14336
Fix coding conventions violations

Revision 14336 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 20 21:43:44 2006 UTC (8 years, 10 months ago) by pcanal
Original Path: trunk/eg/src/TParticle.cxx
File length: 9405 byte(s)
Diff to previous 13861
Reduce direct dependencies on TClass.h, TROOT.h and TStreamerInfo.h.
Warning:  This means that some file that relied on the indirect
inclusion of these header file might now fail to compile with
an error message mention that gROOT is no known or that TClass,
TROOT or TStreamerInfo is incompletely defined.  Simply add the
proper include directive.

Revision 13861 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 18 19:41:55 2006 UTC (9 years ago) by brun
Original Path: trunk/eg/src/TParticle.cxx
File length: 9385 byte(s)
Diff to previous 13859
Simplify code in the TParticle constructors by using the new function SetPdgCodeCVS: ----------------------------------------------------------------------

Revision 13859 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 18 16:47:44 2006 UTC (9 years ago) by brun
Original Path: trunk/eg/src/TParticle.cxx
File length: 9927 byte(s)
Diff to previous 7193
Add a new function
  void           SetPdgCode(Int_t pdg);
   //change the PDG code for this particle
   //Get a new pointer to a TParticlePDG from TDatabasePDG
   //Recompute the mass

Revision 7193 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 1 09:39:39 2003 UTC (11 years, 4 months ago) by brun
Original Path: trunk/eg/src/TParticle.cxx
File length: 9296 byte(s)
Diff to previous 6667
Replace constant kPI (defined in TVector2) by TMath::Pi()

Revision 6667 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 30 19:41:01 2003 UTC (11 years, 7 months ago) by brun
Original Path: trunk/eg/src/TParticle.cxx
File length: 9288 byte(s)
Diff to previous 4564
Fix a format problem in TParticle::Print (thanks to Piotr)

Revision 4564 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 18 08:22:01 2002 UTC (12 years, 8 months ago) by brun
Original Path: trunk/eg/src/TParticle.cxx
File length: 9291 byte(s)
Diff to previous 3484
Add explicit calls to the base classes copy constructors in the copy constructors.
This is required by gcc on MacOS X

Revision 3484 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 17 13:14:35 2001 UTC (13 years, 1 month ago) by brun
Original Path: trunk/eg/src/TParticle.cxx
File length: 9254 byte(s)
Diff to previous 2733
Preset all members of TParticle in the default constructor.

Revision 2733 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 23 22:11:48 2001 UTC (13 years, 5 months ago) by brun
Original Path: trunk/eg/src/TParticle.cxx
File length: 9022 byte(s)
Diff to previous 1851
Reimplement TParticle constructor. TObject & TAttLine part were not copied.

Revision 1851 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 23 18:04:50 2001 UTC (13 years, 10 months ago) by brun
Original Path: trunk/eg/src/TParticle.cxx
File length: 9541 byte(s)
Diff to previous 1740
Implement a protection suggested by Pasha Murat in the TParticle constructors.
Output of some MC generators (HERWIG,for example) contains off-shell particles with E^2 < P^2.

Several TParticle constructors which are trying to calculate particle
mass as

     fCalcMass    = TMath::Sqrt(fE*fE -fPx*fPx -fPy*fPy -fPz*fPz);

are crashing in this case. I'd think of putting in a protection against
sqrt of negative number and, in order not to lose information, of
making fCalcMass negative for off-shell particles with Q^2<0:

    a2 = fE*fE -fPx*fPx -fPy*fPy -fPz*fPz;
    if (a2 >= 0) {
      fCalcMass =  TMath::Sqrt(a2);
    }
    else {
      fCalcMass =  -TMath::Sqrt(-a2);
    }

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/TParticle.cxx
File length: 9375 byte(s)
Diff to previous 1205
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 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/TParticle.cxx
File length: 9385 byte(s)
Diff to previous 985
      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 985 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 21 20:51:23 2000 UTC (14 years, 2 months ago) by brun
Original Path: trunk/eg/src/TParticle.cxx
File length: 9368 byte(s)
Diff to previous 3
Function Streamer now in the implementation file.
Add code for the new automatic schema evolution algorithm

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/TParticle.cxx
File length: 9507 byte(s)
Copied from: branches/rdm/eg/src/TParticle.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/TParticle.cxx
File length: 9507 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