1 #include "KVSimReader_HaC.h"
9 tree_title =
"Hybrid alpha-Cluster model";
10 root_file_name =
"HaC_events.root";
31 if (nevt % 1000 == 0)
Info(
"ReadFile",
"%d evts lus", nevt);
93 evt->GetParameters()->SetValue(
"AngularMomentum",
GetIntReadPar(2));
96 evt->GetParameters()->SetValue(
"nfra", nfra);
100 KVError::Info(
this,
"ReadEvent",
"End of file reached after %d events",nevt);
109 for(
int i=0; i<nfra; ++i)
172 nuc->GetParameters()->SetValue(
"Total internal energy [MeV]",
GetDoubleReadPar(7));
173 nuc->GetParameters()->SetValue(
"Kinetic CM energy [MeV]",
GetDoubleReadPar(8));
174 nuc->GetParameters()->SetValue(
"Internal kinetic energy [MeV/alpha]",
GetDoubleReadPar(9));
182 nuc->GetParameters()->SetValue(
"Alpha id list", idlist.
AsString());
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
@ CommentLine
last line read was a comment line
@ 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 GetReadStatus(ReadStatus s)
KVString GetReadPar(Int_t pos) const
static Double_t hbar
hbar*c in MeV.fm
Strings used to represent a set of ranges of values.
const Char_t * AsString(Int_t maxchars=0) const
Nucleus in a simulated event.
Convert events generated by the HaC (Hybrid alpha-Cluster) model.
Bool_t ReadEvent() override
Bool_t ReadNucleus() override
virtual void ConvertAndSaveEventsInFile(KVString filename)
Read events, convert and save in ROOT file.
virtual void Info(const char *method, const char *msgfmt,...) const
void Error(UserClass p, const char *location, const char *va_(fmt),...)
void Info(UserClass p, const char *location, const char *va_(fmt),...)