Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F11221457
EndPoint.cc
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
EndPoint.cc
View Options
// -*- C++ -*-
//
// This is the implementation of the non-inlined, non-templated member
// functions of the EndPoint class.
//
#include
"EndPoint.h"
#ifdef PYTHIA7_TEMPLATES_IN_CC_FILE
// #include "EndPoint.tcc"
#endif
using
namespace
Pythia7
;
EndPoint
EndPoint
::
CC
()
const
{
EndPoint
retEP
(
*
this
);
retEP
.
setPt
(
-
pTcomp
());
return
retEP
;
}
void
EndPoint
::
UpdatedFrom
(
const
EndPoint
&
currEP
)
{
if
(
this
!=
&
currEP
){
theParticle
=
currEP
.
PData
()
->
CC
();
theStrRg
=
currEP
.
SR
();
thePTcomp
=
-
currEP
.
pTcomp
();
theGamma
=
currEP
.
Gamma
();
}
}
// ************************ DB ******************************************
void
EndPoint
::
echo
()
const
{
cout
<<
"
\n
EndPoint :"
<<
endl
;
if
(
theParticle
){
cout
<<
"EP id() = "
<<
theParticle
->
id
()
<<
endl
;
cout
<<
"
\t
EP m() = "
<<
mass
()
<<
endl
;
}
else
{
cout
<<
"Particle undefined"
<<
endl
;
}
cout
<<
"
\t
EP Px() = "
<<
thePTcomp
.
first
<<
endl
;
cout
<<
"
\t
EP Py() = "
<<
thePTcomp
.
second
<<
endl
;
cout
<<
"
\t
EP Gamma() = "
<<
Gamma
()
<<
endl
;
if
(
theStrRg
)
{
theStrRg
->
echo
();
cout
<<
"
\t
Pfwd() = "
<<
theStrRg
->
Pfwd
()
<<
endl
;
cout
<<
"
\t
Pbwd() = "
<<
theStrRg
->
Pbwd
()
<<
endl
;
}
else
cout
<<
"StringRegion :unknown"
<<
endl
;
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Wed, May 14, 10:28 AM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5043605
Default Alt Text
EndPoint.cc (1 KB)
Attached To
rTHEPEGPYTHIASEVENHG thepegpythiasevenhg
Event Timeline
Log In to Comment