PYTHIA  8.311
Public Types | Public Member Functions | List of all members
Nucleon Class Reference

#include <HINucleusModel.h>

Public Types

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.
 

Public Member Functions

 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 Vec4nPos () const
 The position of this nucleon relative to the nucleus center.
 
const Vec4bPos () 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.
 
EventInfoevent () const
 The event this nucleon is assigned to.
 
const Statestate () const
 The physical state of the incoming nucleon.
 
const StatealtState (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.
 

Detailed Description

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.

Member Enumeration Documentation

enum Status : int

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.

Constructor & Destructor Documentation

Nucleon ( int  idIn = 0,
int  indexIn = 0,
const Vec4 pos = Vec4() 
)
inline

The constuctor takes a particle id and a position in impact parameter relative to the nucleus center as arguments.

Member Function Documentation

void debug ( )

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.

int id ( ) const
inline

Accessor functions:

The particle id of the nucleon.

void status ( Nucleon::Status  s)
inline

Manipulating functions:

Set the status.


The documentation for this class was generated from the following files: