StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | Public Attributes | Friends | List of all members
Pythia8::Nucleon Class Reference

#include <HIUserHooks.h>

Public Types

enum  Status {
  UNWOUNDED = 0, ELASTIC = 1, DIFF = 2, ABS = 3,
  UNWOUNDED = 0, ELASTIC = 1, DIFF = 2, ABS = 3
}
 Enum for specifying the status of a nucleon. More...
 
enum  Status {
  UNWOUNDED = 0, ELASTIC = 1, DIFF = 2, ABS = 3,
  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.
 
typedef vector< double > State
 The state of a nucleon is a general vector of doubles.
 

Public Member Functions

 indexSave (indexIn)
 
 nPosSave (pos)
 
 bPosSave (pos)
 
 statusSave (UNWOUNDED)
 
 eventp (0)
 
 isDone (0)
 
int id () const
 Accessor functions: More...
 
int index () const
 The nucleon type.
 
const Vec4nPos () const
 The position of this nucleon relative to the nucleus center.
 
const Vec4bPos () const
 The absolute position in impact parameter space.
 
const Vec4bShift (const Vec4 &bvec)
 Shift the absolute position in impact parameter space.
 
Status status () const
 The status.
 
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 (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, 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.
 
 indexSave (indexIn)
 
 nPosSave (pos)
 
 bPosSave (pos)
 
 statusSave (UNWOUNDED)
 
 eventp (0)
 
 isDone (0)
 
int id () const
 Accessor functions: More...
 
int index () const
 The nucleon type.
 
const Vec4nPos () const
 The position of this nucleon relative to the nucleus center.
 
const Vec4bPos () const
 The absolute position in impact parameter space.
 
const Vec4bShift (const Vec4 &bvec)
 Shift the absolute position in impact parameter space.
 
Status status () const
 The status.
 
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 (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, 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.
 

Public Attributes

 __pad0__: idSave(idIn)
 

Friends

class SubCollisionModel
 

Detailed Description

The Nucleon class represent 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.

Definition at line 62 of file HIUserHooks.h.

Member Enumeration Documentation

Enum for specifying the status of a nucleon.

Enumerator
UNWOUNDED 

The nucleon is not wounded.

ELASTIC 

The nucleon is elastically scattered.

DIFF 

The nucleon is diffractively wounded.

ABS 

The nucleon is absorptively wounded.

UNWOUNDED 

The nucleon is not wounded.

ELASTIC 

The nucleon is elastically scattered.

DIFF 

The nucleon is diffractively wounded.

ABS 

The nucleon is absorptively wounded.

Definition at line 69 of file HIUserHooks.h.

Enum for specifying the status of a nucleon.

Enumerator
UNWOUNDED 

The nucleon is not wounded.

ELASTIC 

The nucleon is elastically scattered.

DIFF 

The nucleon is diffractively wounded.

ABS 

The nucleon is absorptively wounded.

UNWOUNDED 

The nucleon is not wounded.

ELASTIC 

The nucleon is elastically scattered.

DIFF 

The nucleon is diffractively wounded.

ABS 

The nucleon is absorptively wounded.

Definition at line 69 of file HIUserHooks.h.

Member Function Documentation

int Pythia8::Nucleon::id ( ) const
inline

Accessor functions:

The nucleon type.

Definition at line 88 of file HIUserHooks.h.

Referenced by debug().

int Pythia8::Nucleon::id ( ) const
inline

Accessor functions:

The nucleon type.

Definition at line 88 of file HIUserHooks.h.

void Pythia8::Nucleon::status ( Status  s)
inline

Manipulating functions:

Set the status.

Definition at line 123 of file HIUserHooks.h.

void Pythia8::Nucleon::status ( Status  s)
inline

Manipulating functions:

Set the status.

Definition at line 123 of file HIUserHooks.h.

Member Data Documentation

Pythia8::Nucleon::__pad0__

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

Definition at line 82 of file HIUserHooks.h.


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