4 #include "KVSimReader_DIT.h"
27 ConvertAndSaveEventsInFile(
filename);
51 Info(
"ReadEvent",
"Line is empty");
56 StoreEventInVariables();
71 void KVSimReader_DIT::StoreEventInVariables()
102 void KVSimReader_DIT::FillEvent(
KVSimEvent* evt)
107 nuc->
SetZandA(z_proj_like, a_proj_like);
108 nuc->SetE(energy_proj_like);
112 if (theta_proj_like < 0.) {
123 nuc->SetExcitEnergy(excitation_energy_proj_like);
124 nuc->SetSpin(spin_proj_like, 0., 0.);
130 nuc->
SetZandA(z_targ_like, a_targ_like);
131 nuc->SetE(energy_targ_like);
134 if (theta_targ_like < 0.) {
141 nuc->SetExcitEnergy(excitation_energy_targ_like);
142 nuc->SetSpin(spin_targ_like, 0., 0.);
147 evt->
SetParameter(
"inicident_partial_wave", inicident_partial_wave);
148 evt->
SetParameter(
"impact_parameter", impact_parameter);
162 void KVSimReader_DIT::InitReader()
179 void KVSimReader_DIT::SkipFirstLine()
186 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,...)
virtual void SetNumber(UInt_t num)
void SetParameter(const Char_t *name, ValType value) const
@ 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
void SetZandA(Int_t z, Int_t a)
Set atomic number and mass number.
Container class for simulated nuclei, KVSimNucleus.
Read and convert to KaliVeda format outputs from DIT.
Bool_t ReadFileHeader() override
Bool_t ReadEvent(KVSimEvent *) override
Base class to convert output from different simulation codes into TTrees containing KVSimEvent event ...
void SetROOTFileName(KVString name)
void SetTreeTitle(KVString n)
void SetBranchName(KVString n)
int GetEventNumber() const
void SetTreeName(KVString n)
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