ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
Class for storing and comparing sorted nucleon configurations. More...
Public Types | |
typedef G4int | NucleonItem |
Public Member Functions | |
SortedNucleonConfiguration () | |
Constructor. | |
SortedNucleonConfiguration (const SortedNucleonConfiguration &rhs) | |
Copy constructor. | |
~SortedNucleonConfiguration () | |
Destructor. | |
void | swap (SortedNucleonConfiguration &rhs) |
Helper method for the assignment operator. | |
SortedNucleonConfiguration & | operator= (const SortedNucleonConfiguration &rhs) |
Assignment operator. | |
G4bool | operator< (const SortedNucleonConfiguration &rhs) const |
Order operator for SortedNucleonConfiguration. | |
void | fill (NucleonItem *config, size_t n) |
Fill configuration with array of NucleonItem. | |
Private Attributes | |
size_t | theSize |
Size of the array. | |
NucleonItem * | nucleons |
The real array. | |
Class for storing and comparing sorted nucleon configurations.
This class is actually just a wrapper around an array of Particle* pointers. It provides a lexicographical comparison operator (SortedNucleonConfiguration::operator<) for inclusion in std::set containers.
Definition at line 243 of file G4INCLClusteringModelIntercomparison.hh.
View newest version in sPHENIX GitHub at line 243 of file G4INCLClusteringModelIntercomparison.hh
Definition at line 246 of file G4INCLClusteringModelIntercomparison.hh.
View newest version in sPHENIX GitHub at line 246 of file G4INCLClusteringModelIntercomparison.hh
|
inline |
Constructor.
Definition at line 249 of file G4INCLClusteringModelIntercomparison.hh.
View newest version in sPHENIX GitHub at line 249 of file G4INCLClusteringModelIntercomparison.hh
|
inline |
Copy constructor.
Definition at line 252 of file G4INCLClusteringModelIntercomparison.hh.
View newest version in sPHENIX GitHub at line 252 of file G4INCLClusteringModelIntercomparison.hh
References field_utils::copy(), nucleons, and theSize.
|
inline |
Destructor.
Definition at line 260 of file G4INCLClusteringModelIntercomparison.hh.
View newest version in sPHENIX GitHub at line 260 of file G4INCLClusteringModelIntercomparison.hh
References nucleons.
|
inline |
Fill configuration with array of NucleonItem.
Definition at line 288 of file G4INCLClusteringModelIntercomparison.hh.
View newest version in sPHENIX GitHub at line 288 of file G4INCLClusteringModelIntercomparison.hh
References field_utils::copy(), n, nucleons, and theSize.
Referenced by G4INCL::ClusteringModelIntercomparison::findClusterStartingFrom().
|
inline |
Order operator for SortedNucleonConfiguration.
The comparison is done lexicographically (i.e. from the first element to the last).
Definition at line 282 of file G4INCLClusteringModelIntercomparison.hh.
View newest version in sPHENIX GitHub at line 282 of file G4INCLClusteringModelIntercomparison.hh
|
inline |
Assignment operator.
Definition at line 271 of file G4INCLClusteringModelIntercomparison.hh.
View newest version in sPHENIX GitHub at line 271 of file G4INCLClusteringModelIntercomparison.hh
References swap().
|
inline |
Helper method for the assignment operator.
Definition at line 265 of file G4INCLClusteringModelIntercomparison.hh.
View newest version in sPHENIX GitHub at line 265 of file G4INCLClusteringModelIntercomparison.hh
References nucleons, boost::swap(), and theSize.
Referenced by operator=().
|
private |
The real array.
Definition at line 300 of file G4INCLClusteringModelIntercomparison.hh.
View newest version in sPHENIX GitHub at line 300 of file G4INCLClusteringModelIntercomparison.hh
Referenced by fill(), operator<(), SortedNucleonConfiguration(), swap(), and ~SortedNucleonConfiguration().
|
private |
Size of the array.
Definition at line 297 of file G4INCLClusteringModelIntercomparison.hh.
View newest version in sPHENIX GitHub at line 297 of file G4INCLClusteringModelIntercomparison.hh
Referenced by fill(), operator<(), SortedNucleonConfiguration(), and swap().