4 #include "KVSimReader_ELIE.h"
24 void KVSimReader_ELIE::define_output_filename()
44 tree_title.Form(
"ELIE primary events %s + %s %.1f MeV/nuc.",
53 void KVSimReader_ELIE::transform_to_cm()
93 define_output_filename();
105 Info(
"ReadFile",
"begins");
108 if (nevt && nevt % 1000 == 0)
Info(
"ReadFile",
"%d evts lus", nevt);
158 Info(
"ReadHeader",
"Can't read system");
177 Info(
"ReadHeader",
"Can't read events");
186 read_elie_params(*
this);
195 void KVSimReader_ELIE::read_elie_params(
KVFileReader& input_file_reader)
197 elie_params->
Clear();
198 elie_params->
SetName(
"ELIE Parameters");
258 evt->GetParameters()->SetValue(
"mult", mult);
263 for (
Int_t mm = 0; mm < mult; mm++) {
270 if (elie_params->
GetIntValue(
"lab_frame") > 0) transform_to_cm();
271 else evt->SetFrameName(
"CM");
313 Info(
"ReadNucleus",
"case 0 line est vide");
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
char * Form(const char *fmt,...)
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
ReadStatus ReuseLineAndCheck(Int_t nexpect, const KVString &pattern)
Bool_t OpenFileToRead(const KVString &filename)
Int_t GetIntValue(const Char_t *name) const
void SetValue(const Char_t *name, value_type value)
void Clear(Option_t *opt="") override
Description of properties and kinematics of atomic nuclei.
const Char_t * GetSymbol(Option_t *opt="") const
void SetZAandE(Int_t z, Int_t a, Double_t ekin)
Set atomic number, mass number, and kinetic energy in MeV.
void ChangeFrame(const KVFrameTransform &, const KVString &="")
Nucleus in a simulated event.
Read ascii files containing events generated by Elie.
Bool_t ReadEvent() override
Bool_t ReadHeader() override
void ConvertEventsInFile(KVString filename) override
Bool_t ReadNucleus() override
KVSimReader_ELIE()
Default constructor.
Base class to read output files for simulation and create tree using KVSimEvent class.
void AddInfo(const KVNamedParameter &)
void Run(Option_t *option="recreate")
void SetROOTFileName(const Char_t *n)
virtual Bool_t HasToFill()
void AddObject(TObject *obj)
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
virtual void SetName(const char *name)
virtual void Info(const char *method, const char *msgfmt,...) const