#include <HINucleusModel.h>
|
| enum | Status : int { UNWOUNDED = 0,
ELASTIC = 1,
DIFF = 2,
ABS = 3
} |
| | Enum for specifying the status of a nucleon. More...
|
| |
|
typedef vector< double > | State |
| | The state of a nucleon is a general vector of doubles.
|
| |
|
| | Nucleon (int idIn=0, int indexIn=0, const Vec4 &pos=Vec4()) |
| |
| int | id () const |
| | Accessor functions: More...
|
| |
|
int | index () const |
| | The index of the nucleon in the nucleus.
|
| |
|
const Vec4 & | nPos () const |
| | The position of this nucleon relative to the nucleus center.
|
| |
|
const Vec4 & | bPos () const |
| | The absolute position in impact parameter space.
|
| |
|
void | bShift (const Vec4 &bvec) |
| | Shift the absolute position in impact parameter space.
|
| |
|
Nucleon::Status | status () const |
| | The status of the nucleon.
|
| |
|
bool | done () const |
| | Check if nucleon has been assigned.
|
| |
|
EventInfo * | event () const |
| | The event this nucleon is assigned to.
|
| |
|
const State & | state () const |
| | The physical state of the incoming nucleon.
|
| |
|
const State & | altState (int i=0) |
| | Return an alternative state.
|
| |
| void | status (Nucleon::Status s) |
| | Manipulating functions: More...
|
| |
|
void | state (State s) |
| | Set the physical state.
|
| |
|
void | addAltState (State s) |
| | Add an alternative state.
|
| |
|
void | select (EventInfo &evp, Nucleon::Status s) |
| | Select an event for this nucleon.
|
| |
|
void | select () |
| | Select this nucleon to be assigned to an event.
|
| |
| void | debug () |
| | Print out debugging information. More...
|
| |
|
void | reset () |
| | Reset the states and status.
|
| |
The Nucleon class represents a nucleon in a nucleus. It has an id number (proton or neutron) an impact parameter position (absolute and relative to the nucleus center), a status and a state to be defined and used by a SubCollisionModel.
Enum for specifying the status of a nucleon.
| Enumerator |
|---|
| ELASTIC |
The nucleon is not wounded.
|
| DIFF |
The nucleon is elastically scattered.
|
| ABS |
The nucleon is diffractively wounded.
|
The constuctor takes a particle id and a position in impact parameter relative to the nucleus center as arguments.
Print out debugging information.
The Nucleon class describing a Nucleon in a Nucleus.
Print out information about a Nucleon. To be called from inside a debugger.
Accessor functions:
The particle id of the nucleon.
Manipulating functions:
Set the status.
The documentation for this class was generated from the following files: