4 #include "KVSimReader_DIT.h"
65 if ((nevt % 10000) == 0)
Info(
"ReadFile",
"%d events read", nevt);
84 Info(
"ReadEvent",
"Line is empty");
143 nuc->
SetZandA(z_proj_like, a_proj_like);
144 nuc->SetE(energy_proj_like);
148 if (theta_proj_like < 0.) {
159 nuc->SetExcitEnergy(excitation_energy_proj_like);
160 nuc->SetSpin(spin_proj_like, 0., 0.);
166 nuc->
SetZandA(z_targ_like, a_targ_like);
167 nuc->SetE(energy_targ_like);
170 if (theta_targ_like < 0.) {
177 nuc->SetExcitEnergy(excitation_energy_targ_like);
178 nuc->SetSpin(spin_targ_like, 0., 0.);
182 evt->SetParameter(
"weight", weight);
183 evt->SetParameter(
"inicident_partial_wave", inicident_partial_wave);
184 evt->SetParameter(
"impact_parameter", impact_parameter);
185 evt->SetParameter(
"itype", itype);
186 evt->SetParameter(
"theta_cm", theta_cm);
187 evt->SetParameter(
"q_reaction", q_reaction);
188 evt->SetParameter(
"k_n", k_n);
189 evt->SetParameter(
"k_p", k_p);
190 evt->SetParameter(
"min_dist", min_dist);
198 void KVSimReader_DIT::InitReader()
201 tree_title =
"dit_events";
202 branch_name =
"DITKVSimEvents";
203 root_file_name =
Form(
"DIT_%s+%s@%.1fMeV.root", projectile.
Data(), target.
Data(), energy);
215 void KVSimReader_DIT::SkipFirstLine()
222 Info(
"SkipFirstLine",
"Skipping firt line of simulated data file!");
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
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 Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t target
char * Form(const char *fmt,...)
@ 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)
ReadStatus ReadLine(const KVString &pattern="")
Double_t GetDoubleReadPar(Int_t pos) const
Int_t GetIntReadPar(Int_t pos) const
Bool_t OpenFileToRead(const KVString &filename)
void SetZandA(Int_t z, Int_t a)
Set atomic number and mass number.
Nucleus in a simulated event.
Read and convert to KaliVeda format outputs from DIT.
void ConvertEventsInFile(KVString) override
void FillEvent()
Fill projectile-like nucleus.
virtual ~KVSimReader_DIT()
Destructor.
void StoreEventInVariables()
Bool_t ReadEvent() override
Base class to read output files for simulation and create tree using KVSimEvent class.
void Run(Option_t *option="recreate")
virtual Bool_t HasToFill()
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
virtual void Info(const char *method, const char *msgfmt,...) const
const char * Data() const