![]() |
Analysis Software
Documentation for sPHENIX simulation software
|
#include <JETSCAPE/blob/main/external_packages/trento/src/nucleus.h>
Protected Member Functions | |
MinDistNucleus (std::size_t A, double dmin=0) | |
bool | is_too_close (const_iterator nucleon) const |
![]() | |
Nucleus (std::size_t A) | |
void | set_nucleon_position (iterator nucleon, double x, double y, double z) |
Private Attributes | |
const double | dminsq_ |
Internal storage of squared minimum distance. | |
Additional Inherited Members | |
![]() | |
using | size_type = std::vector< Nucleon >::size_type |
using | iterator = std::vector< Nucleon >::iterator |
using | const_iterator = std::vector< Nucleon >::const_iterator |
![]() | |
virtual | ~Nucleus ()=default |
Default virtual destructor for abstract base class. | |
virtual double | radius () const =0 |
void | sample_nucleons (double offset) |
size_type | size () const noexcept |
iterator | begin () noexcept |
iterator | end () noexcept |
const_iterator | begin () const noexcept |
const_iterator | end () const noexcept |
const_iterator | cbegin () const noexcept |
const_iterator | cend () const noexcept |
![]() | |
static NucleusPtr | create (const std::string &species, double nucleon_width, double nucleon_dmin=0) |
A nucleus that can check if its nucleons are within a specified minimum distance.
Definition at line 180 of file nucleus.h.
View newest version in sPHENIX GitHub at line 180 of file nucleus.h
|
protected |
A | number of nucleons |
dmin | minimum nucleon-nucleon distance (optional, default zero) |
Definition at line 165 of file nucleus.cxx.
View newest version in sPHENIX GitHub at line 165 of file nucleus.cxx
|
protected |
Check if a Nucleon
is too close (within the minimum distance) of any previously placed nucleons. Specifically, check nucleons from begin()
up to the given iterator.
Definition at line 170 of file nucleus.cxx.
View newest version in sPHENIX GitHub at line 170 of file nucleus.cxx
References trento::Nucleus::begin(), dminsq_, dy, dz, and Acts::UnitConstants::e.
Referenced by trento::DeformedWoodsSaxonNucleus::sample_nucleons_impl().
|
private |
Internal storage of squared minimum distance.
Definition at line 195 of file nucleus.h.
View newest version in sPHENIX GitHub at line 195 of file nucleus.h
Referenced by is_too_close().