 |
Version: SMASH-1.8
|
|
Go to the documentation of this file.
7 #ifndef SRC_INCLUDE_LISTMODUS_H_
8 #define SRC_INCLUDE_LISTMODUS_H_
132 double x,
double y,
double z,
double mass,
double E,
133 double px,
double py,
double pz);
139 using std::runtime_error::runtime_error;
217 #endif // SRC_INCLUDE_LISTMODUS_H_
std::string particle_list_file_directory_
File directory of the particle list.
double initial_conditions(Particles *particles, const ExperimentParameters ¶meters)
Generates initial state of the particles in the system according to a list.
int n_warns_mass_consistency_
Counter for energy-momentum conservation warnings to avoid spamming.
std::string current_particle_list_file_
File name of current file.
int file_id_
file_id_ is the id of the current file
friend std::ostream & operator<<(std::ostream &, const ListModus &)
void backpropagate_to_same_time(Particles &particles)
Judge whether formation times are the same for all the particles; Don't do anti-freestreaming if all ...
Interface to the SMASH configuration files.
double start_time_
Starting time for the List; changed to the earliest formation time.
void try_create_particle(Particles &particles, PdgCode pdgcode, double t, double x, double y, double z, double mass, double E, double px, double py, double pz)
Tries to add a new particle to particles and performs consistency checks: (i) The PDG code is legal a...
bool file_has_events_(bf::path filepath, std::streampos last_position)
Check if the file given by filepath has events left after streampos last_position.
int n_warns_precision_
Counter for mass-check warnings to avoid spamming.
std::streampos last_read_position_
last read position in current file
std::string next_event_()
Read the next event.
Helper structure for Experiment.
std::string particle_list_file_prefix_
File prefix of the particle list.
int event_id_
event_id_ = the unique id of the current event
const int shift_id_
shift_id is the start number of file_id_
ListModus()
Construct an empty list. Useful for convenient JetScape connection.
bf::path file_path_(const int file_id)
Return the absolute file path based on given integer.