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 KVError::Warning(
this,
"ReadHeader",
"Cannot deduce name of '.input' file from filename:%s", input_file.Data());
74 KVError::Warning(
this,
"ReadHeader",
"Informations on input parameters of calculation will not be read/kept");
77 input_file.Remove(suff_ind);
78 input_file.Append(
".input");
83 KVError::Warning(
this,
"ReadHeader",
"Failed to open file %s", input_file.Data());
84 KVError::Warning(
this,
"ReadHeader",
"Informations on input parameters of calculation will not be read/kept");
88 read_elie_params(input_file_reader);
124 evt->GetParameters()->SetValue(
"mult", mult);
136 for (
Int_t mm = 0; mm < mult; mm++) {
143 if (elie_params->GetIntValue(
"lab_frame") > 0) transform_to_cm();
144 else evt->SetFrameName(
"CM");
175 Info(
"ReadNucleus",
"premature end of file?");
178 Info(
"ReadNucleus",
"case 0 line est vide");
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)
Nucleus in a simulated event.
Read ASCII files generated by ELIE (new format 2022)
Bool_t ReadNucleus() override
Bool_t ReadEvent() override
Bool_t ReadHeader() override
void AddInfo(const KVNamedParameter &)
virtual void Info(const char *method, const char *msgfmt,...) const
void Warning(UserClass p, const char *location, const char *va_(fmt),...)