PYTHIA  8.313
Public Member Functions | List of all members
ExternalNucleusModel Class Reference

#include <HINucleusModel.h>

Inheritance diagram for ExternalNucleusModel:
NucleusModel

Public Member Functions

 ExternalNucleusModel ()
 Default constructor.
 
bool init () override
 Initialize class. Read in file to buffer. More...
 
vector< Nucleongenerate () const override
 Generate a vector of nucleons. More...
 
- Public Member Functions inherited from NucleusModel
 NucleusModel ()
 
virtual ~NucleusModel ()
 Virtual destructor.
 
void initPtr (int idIn, bool isProjIn, Info &infoIn)
 Init method. More...
 
virtual bool initGeometry ()
 
void setParticle (int idIn)
 Set the particle id of the produced nucleus. More...
 
virtual void setPN (const Vec4 &pNIn)
 Set (new) nucleon momentum.
 
virtual void setMN (double mNIn)
 Set (new) effective nucleon mass.
 
virtual Particle produceIon ()
 Produce an instance of the incoming nucleon. More...
 
int id () const
 Accessor functions.
 
int I () const
 
int A () const
 
int Z () const
 
int L () const
 
double R () const
 
int idN () const
 
const Vec4pN () const
 
double mN () const
 

Additional Inherited Members

- Static Public Member Functions inherited from NucleusModel
static shared_ptr< NucleusModelcreate (int model)
 NucleusModel base class.
 
- Protected Attributes inherited from NucleusModel
bool isProj
 Projectile or target.
 
int idSave
 The nucleus.
 
int ISave
 Cache information about the nucleus.
 
int ASave
 
int ZSave
 
int LSave
 
double RSave
 The estimate of the nucleus radius.
 
double mSave {}
 The mass of the nucleus and its nucleons.
 
Vec4 pNSave {}
 The nucleon beam momentum.
 
double mNSave {}
 The effective nucleon mass.
 
int idNSave = 2212
 
InfoinfoPtr
 Pointers to useful objects.
 
SettingssettingsPtr
 
RndmrndmPtr
 
LoggerloggerPtr
 

Detailed Description

A nucleus model defined by an external file to be read in, containing x,y,z coordinates of the nucleons.

Member Function Documentation

vector< Nucleon > generate ( ) const
overridevirtual

Generate a vector of nucleons.

Generate a vector of nucleons according to the implemented model for a nucleus given by the PDG number.

Get the next nucleon

Update position in list of nucleons.

Implements NucleusModel.

bool init ( )
overridevirtual

Initialize class. Read in file to buffer.

ExternalNucleusModel reads in the configuration from a file.

Initialize, read in the file, shuffle the configurations.

Read settings.

File to read.

Do shuffling.

Read the file.

Remove comment lines.

Check malformed line.

Reimplemented from NucleusModel.


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