Log of /trunk/montecarlo/eg/src/TParticle.cxx
Parent Directory
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
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
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
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.
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.