1 #include "KVSimReader_ELIE2023.h"
46 Info(
"ReadHeader",
"Can't read file header infos");
62 Info(
"ReadHeader",
"res=%d", (
int)res);
68 auto suff_ind = input_file.Index(
"_primary.output");
69 if (suff_ind < 0) suff_ind = input_file.Index(
"_secondary.output");
71 KVError::Warning(
this,
"ReadHeader",
"Cannot deduce name of '.input' file from filename:%s", input_file.Data());
72 KVError::Warning(
this,
"ReadHeader",
"Informations on input parameters of calculation will not be read/kept");
75 input_file.Remove(suff_ind);
76 input_file.Append(
".input");
81 KVError::Warning(
this,
"ReadHeader",
"Failed to open file %s", input_file.Data());
82 KVError::Warning(
this,
"ReadHeader",
"Informations on input parameters of calculation will not be read/kept");
86 read_elie_params(input_file_reader);
161 Info(
"ReadNucleus",
"premature end of file?");
164 Info(
"ReadNucleus",
"case 0 line est vide");
virtual void SetNumber(UInt_t num)
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
Bool_t OpenFileToRead(const KVString &filename)
void SetValue(const Char_t *name, value_type value)
void SetExcitEnergy(Double_t e)
void SetZ(Int_t z, Char_t mt=-1)
void SetTheta(Double_t theta)
void SetPhi(Double_t phi)
void SetParameter(const Char_t *name, ValType value) const
void SetEnergy(Double_t e)
Container class for simulated nuclei, KVSimNucleus.
Nucleus in a simulated event.
Read ASCII files generated by ELIE (new format 2022)
Bool_t ReadFileHeader() override
Bool_t ReadEventHeader(KVSimEvent *) override
Bool_t ReadNucleus(KVSimNucleus *) override
virtual void Info(const char *method, const char *msgfmt,...) const
void Warning(UserClass p, const char *location, const char *va_(fmt),...)