![]() |
Analysis Software
Documentation for sPHENIX simulation software
|
#include <JETSCAPE/blob/main/external_packages/trento/src/nucleon.h>
Public Member Functions | |
| Nucleon ()=default | |
| double | x () const |
| The transverse x position. | |
| double | y () const |
| The transverse y position. | |
| double | z () const |
| The longitudinal z position. | |
| bool | is_participant () const |
| Whether or not this nucleon is a participant. | |
Private Member Functions | |
| void | set_position (double x, double y, double z) |
| Set the position and reset participant status to false. | |
| void | set_participant () |
| Mark as a participant. | |
Private Attributes | |
| double | x_ |
| Internal storage of the position. | |
| double | y_ |
| double | z_ |
| bool | participant_ |
| Internal storage of participant status. | |
Friends | |
| class | Nucleus |
| A Nucleus must be able to set its Nucleon positions. | |
| bool | NucleonProfile::participate (Nucleon &, Nucleon &) const |
Represents a single nucleon. Stores its position and whether or not it's a participant. These properties are globally readable, but can only be set through Nucleus and NucleonProfile.
Definition at line 95 of file nucleon.h.
View newest version in sPHENIX GitHub at line 95 of file nucleon.h
|
default |
Only a default constructor is necessary-–the class is designed to be constructed once and repeatedly updated.
|
inline |
Whether or not this nucleon is a participant.
Definition at line 151 of file nucleon.h.
View newest version in sPHENIX GitHub at line 151 of file nucleon.h
References participant_.
Referenced by trento::NucleonProfile::participate().
Here is the caller graph for this function:
|
inlineprivate |
Mark as a participant.
Definition at line 162 of file nucleon.h.
View newest version in sPHENIX GitHub at line 162 of file nucleon.h
References participant_.
Referenced by trento::NucleonProfile::participate().
Here is the caller graph for this function:
|
inline |
The transverse x position.
Definition at line 139 of file nucleon.h.
View newest version in sPHENIX GitHub at line 139 of file nucleon.h
References x_.
Referenced by trento::Event::accumulate_TAB(), trento::NucleonProfile::participate(), and set_position().
Here is the caller graph for this function:
|
inline |
The transverse y position.
Definition at line 143 of file nucleon.h.
View newest version in sPHENIX GitHub at line 143 of file nucleon.h
References y_.
Referenced by trento::Event::accumulate_TAB(), trento::NucleonProfile::participate(), and set_position().
Here is the caller graph for this function:
|
inline |
|
friend |
The NucleonProfile samples participants so must be able to set participation status.
|
friend |
|
private |
Internal storage of participant status.
Definition at line 131 of file nucleon.h.
View newest version in sPHENIX GitHub at line 131 of file nucleon.h
Referenced by is_participant(), set_participant(), and set_position().
|
private |
|
private |
|
private |