7 #ifndef SRC_INCLUDE_SMASH_CUSTOMNUCLEUS_H_
8 #define SRC_INCLUDE_SMASH_CUSTOMNUCLEUS_H_
72 std::vector<Nucleoncustom>
readfile(std::ifstream& infile)
const;
78 std::string
file_path(
const std::string& file_directory,
79 const std::string& file_name);
Interface to the SMASH configuration files.
Inheriting from Nucleus-Class using modified Nucleon configurations.
size_t index_
Index needed to read out vector in distribute nucleon.
std::string file_path(const std::string &file_directory, const std::string &file_name)
Generates the name of the stream file.
static std::unique_ptr< std::ifstream > filestream_shared_
Filestream variable used if projectile and target are read in from the same file and they use the sam...
int number_of_protons_
Number of protons per nucleus.
ThreeVector distribute_nucleon() override
Returns position of a nucleon as given in the external file.
void arrange_nucleons() override
Sets the positions of the nucleons inside a nucleus.
CustomNucleus(Configuration &config, int testparticles, bool same_file)
Constructor that needs configuration parameters from input file and the number of testparticles.
std::vector< Nucleoncustom > custom_nucleus_
Vector contianing Data for one nucleus given in the particlelist.
int number_of_neutrons_
Number of neutrons per nucleus.
int number_of_nucleons_
Number of nucleons per nucleus Set initally to zero to be modified in the constructor.
std::unique_ptr< std::ifstream > filestream_
Filestream variable used if projectile and target are read in from different files and they therefore...
std::vector< Nucleoncustom > readfile(std::ifstream &infile) const
The returned vector contains Data for one nucleus given in the particlelist.
void generate_fermi_momenta() override
Generates Fermi momenta as it is done in the mother class but in addition prints a warning that the F...
void fill_from_list(const std::vector< Nucleoncustom > &vec)
Fills Particlelist from vector containing data for one nucleus.
std::unique_ptr< std::ifstream > * used_filestream_
Pointer to the used filestream pointer.
A nucleus is a collection of particles that are initialized, before the beginning of the simulation a...
The ThreeVector class represents a physical three-vector with the components .
Contains data for one nucleon that is read in from the list.
bool isospin
to differentiate between protons isospin=1 and neutrons isospin=0
bool spinprojection
spinprojection of the nucleon