1#include "KVSimReader_ELIE2023.h"
48 Info(
"ReadHeader",
"Can't read file header infos");
64 Info(
"ReadHeader",
"res=%d", (
int)res);
70 auto suff_ind = input_file.Index(
"_primary.output");
71 if (suff_ind < 0) suff_ind = input_file.Index(
"_secondary.output");
73 Warning(
"ReadHeader",
"Cannot deduce name of '.input' file from filename:%s", input_file.Data());
74 Warning(
"ReadHeader",
"Informations on input parameters of calculation will not be read/kept");
77 input_file.Remove(suff_ind);
78 input_file.Append(
".input");
83 Warning(
"ReadHeader",
"Failed to open file %s", input_file.Data());
84 Warning(
"ReadHeader",
"Informations on input parameters of calculation will not be read/kept");
136 for (
Int_t mm = 0; mm < mult; mm++) {
175 Info(
"ReadNucleus",
"premature end of file?");
178 Info(
"ReadNucleus",
"case 0 line est vide");
virtual void SetNumber(UInt_t num)
void Clear(Option_t *opt="")
KVNameValueList * GetParameters() const
Handle reading columns of numeric data in text files.
@ EndOfFile
end of file reached
@ EmptyLine
last line read was empty (only whitespace)
@ OK
successful read and import of parameters from line
ReadStatus ReadLineAndCheck(Int_t nexpect, const KVString &pattern)
Double_t GetDoubleReadPar(Int_t pos) const
Int_t GetIntReadPar(Int_t pos) const
KVString GetReadPar(Int_t pos) const
Bool_t OpenFileToRead(const KVString &filename)
Int_t GetIntValue(const Char_t *name) const
void SetValue(const Char_t *name, value_type value)
void SetExcitEnergy(Double_t e)
void SetZ(Int_t z, Char_t mt=-1)
void SetZandA(Int_t z, Int_t a)
Set atomic number and mass number.
void SetZAandE(Int_t z, Int_t a, Double_t ekin)
Set atomic number, mass number, and kinetic energy in MeV.
void SetTheta(Double_t theta)
void SetPhi(Double_t phi)
void SetParameter(const Char_t *name, ValType value) const
void SetEnergy(Double_t e)
Nucleus in a simulated event.
Read ASCII files generated by ELIE (new format 2022)
void read_elie_params(KVFileReader &input_file_reader)
KVNameValueList * elie_params
void transform_to_cm()
transform all particle kinematics to CM frame from lab
void AddInfo(const Char_t *name, const Char_t *val)
void SetFrameName(const KVString &name)
virtual void Warning(const char *method, const char *msgfmt,...) const
virtual void Info(const char *method, const char *msgfmt,...) const