ROOT
v6-28
Reference Guide
Loading...
Searching...
No Matches
TMCParticle.cxx
Go to the documentation of this file.
1
// @(#)root/pythia6:$Id$
2
// Author: Piotr Golonka 17/09/97
3
4
/** \class TMCParticle
5
\ingroup pythia6
6
7
This class serves as a data storage for description of one particle.
8
9
It is especially convenient to store information taken from LUJETS common,
10
which is done by interface class TPythia.
11
12
Author: Piotr Golonka 17/09/97
13
*/
14
15
#include "
TMCParticle.h
"
16
#include "
TPrimary.h
"
17
18
#ifndef WIN32
19
# define pyname pyname_
20
extern
"C"
void
pyname
(
const
Int_t
&kf,
const
char
*
name
,
const
Int_t
len
);
21
#else
22
# define pyname PYNAME
23
extern
"C"
void
pyname
(
const
Int_t
&kf,
const
char
*
name
,
const
Int_t
len
);
24
#endif
25
26
ClassImp
(
TMCParticle
);
27
28
////////////////////////////////////////////////////////////////////////////////
29
30
void
TMCParticle::ls
(
Option_t
*)
const
31
{
32
printf(
"(%2i,%4i) <-%3i, =>[%3i,%3i]"
,
fKS
,
fKF
,
fParent
,
33
fFirstChild
,
fLastChild
);
34
printf(
": p=(%7.3f,%7.3f,%9.3f) ;"
,
fPx
,
fPy
,
fPz
);
35
36
printf(
" E=%8.3f ; m=%7.3f ; V=(%g,%g,%g); t=%g, tau=%g\n"
,
37
fEnergy
,
fMass
,
fVx
,
fVy
,
fVz
,
fTime
,
fLifetime
);
38
}
39
40
////////////////////////////////////////////////////////////////////////////////
41
/// Return name of this particle via Pythia
42
43
const
char
*
TMCParticle::GetName
()
const
44
{
45
static
char
name
[20];
46
pyname
(
fKF
,
name
,16);
name
[15] = 0;
47
for
(
Int_t
i=14;i>0;i--) {
48
if
(
name
[i] !=
' '
)
break
;
49
name
[i] = 0;
50
}
51
return
name
;
52
}
Int_t
int Int_t
Definition
RtypesCore.h:45
Option_t
const char Option_t
Definition
RtypesCore.h:66
ClassImp
#define ClassImp(name)
Definition
Rtypes.h:377
len
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t UChar_t len
Definition
TGWin32VirtualXProxy.cxx:249
name
char name[80]
Definition
TGX11.cxx:110
pyname
#define pyname
Definition
TMCParticle.cxx:19
TMCParticle.h
TPrimary.h
TMCParticle
This class serves as a data storage for description of one particle.
Definition
TMCParticle.h:20
TMCParticle::fLifetime
Float_t fLifetime
Definition
TMCParticle.h:40
TMCParticle::fPx
Float_t fPx
Definition
TMCParticle.h:30
TMCParticle::fParent
Int_t fParent
Definition
TMCParticle.h:26
TMCParticle::ls
virtual void ls(Option_t *option) const
The ls function lists the contents of a class on stdout.
Definition
TMCParticle.cxx:30
TMCParticle::fKS
Int_t fKS
Definition
TMCParticle.h:24
TMCParticle::fFirstChild
Int_t fFirstChild
Definition
TMCParticle.h:27
TMCParticle::fPy
Float_t fPy
Definition
TMCParticle.h:31
TMCParticle::fPz
Float_t fPz
Definition
TMCParticle.h:32
TMCParticle::fEnergy
Float_t fEnergy
Definition
TMCParticle.h:33
TMCParticle::fTime
Float_t fTime
Definition
TMCParticle.h:39
TMCParticle::GetName
virtual const char * GetName() const
Return name of this particle via Pythia.
Definition
TMCParticle.cxx:43
TMCParticle::fVz
Float_t fVz
Definition
TMCParticle.h:38
TMCParticle::fMass
Float_t fMass
Definition
TMCParticle.h:34
TMCParticle::fKF
Int_t fKF
Definition
TMCParticle.h:25
TMCParticle::fLastChild
Int_t fLastChild
Definition
TMCParticle.h:28
TMCParticle::fVx
Float_t fVx
Definition
TMCParticle.h:36
TMCParticle::fVy
Float_t fVy
Definition
TMCParticle.h:37
int
montecarlo
pythia6
src
TMCParticle.cxx
ROOT v6-28 - Reference Guide Generated on Thu Oct 24 2024 01:49:39 (GVA Time) using Doxygen 1.9.8