4 #include "KVSimReader_ELIE.h"
22 void KVSimReader_ELIE::define_output_filename()
51 void KVSimReader_ELIE::transform_to_cm(
KVSimEvent* evt)
126 Info(
"ReadHeader",
"Can't read system");
145 Info(
"ReadHeader",
"Can't read events");
154 read_elie_params(*
this);
156 define_output_filename();
165 void KVSimReader_ELIE::read_elie_params(
KVFileReader& input_file_reader)
167 reuse_last_line=
true;
168 elie_params->
Clear();
169 elie_params->
SetName(
"ELIE Parameters");
179 if (elie_params->
GetEntries()) AddObject(elie_params);
219 reuse_last_line=
false;
243 for (
Int_t mm = 0; mm < mult; mm++) {
249 if (elie_params->
GetIntValue(
"lab_frame") > 0) transform_to_cm(evt);
292 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,...)
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
KVString GetReadPar(Int_t pos) const
ReadStatus ReuseLineAndCheck(Int_t nexpect, const KVString &pattern)
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 SetExcitEnergy(Double_t e)
Double_t GetExcitEnergy() const
void SetZ(Int_t z, Char_t mt=-1)
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 SetEnergy(Double_t e)
Container class for simulated nuclei, KVSimNucleus.
Nucleus in a simulated event.
void SetAngMom(Double_t lx, Double_t ly, Double_t lz)
set the angular momentum of the nucleus
Read ascii files containing events generated by Elie.
Bool_t ReadNucleus(KVSimNucleus *) override
Bool_t ReadEventHeader(KVSimEvent *) override
Bool_t ReadEvent(KVSimEvent *) override
Bool_t ReadFileHeader() override
KVSimReader_ELIE()
Default constructor.
Base class to convert output from different simulation codes into TTrees containing KVSimEvent event ...
void SetROOTFileName(KVString name)
void SetTreeTitle(KVString n)
void ConvertEventsInFile(KVString filename)
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
void ChangeFrame(const KVFrameTransform &ft, const KVString &name="")
void SetFrameName(const KVString &name)
virtual void SetName(const char *name)
virtual void Info(const char *method, const char *msgfmt,...) const