KaliVeda
Toolkit for HIC analysis
KVSimReader_ELIE_asym.cpp
1 //Created by KVClassFactory on Wed Jan 11 10:29:05 2017
2 //Author: John Frankland,,,
3 
4 #include "KVSimReader_ELIE_asym.h"
5 
7 
8 
9 
10 
11 
15 void KVSimReader_ELIE_asym::define_output_filename()
16 {
17  // ROOT file called: ELIE_[PROJ]_[TARG]_[EBEAM]AMeV_ASYM.root
18  // Call after reading file header
19  SetROOTFileName(Form("ELIE_%s_%s_%.1fAMeV_ASYM",
20  proj.GetSymbol(), targ.GetSymbol(), ebeam));
21  SetTreeTitle(Form("ELIE secondary events %s + %s %.1f MeV/nuc.",
22  proj.GetSymbol(), targ.GetSymbol(), ebeam));
23 }
24 
25 
26 
29 
32 {
33  // Default constructor
34 }
35 
36 
37 
38 
41 
44 {
45  // Read file and convert to ROOT TTree
47 }
48 
49 
50 
58 
60 {
61  // numero_particule,z, a, teta, phi, energie, origine de la particule, energie d'ecitation finale
62  // 0 27 57 3.27897003986 230.52425244 1109.37002505 0 0
63  // 1 80 198 176.726338776 129.481056376 319.364098122 1 0
64  //
65  // The origin of secondary decay particles is stored in a parameter named "ORIGIN"
66  // As particles in a KVEvent are numbered 1,2,... we add 1 to the value read in
67 
68  auto res = ReadLineAndCheck(8, " ");
69  switch (res) {
71  Info("ReadNucleus", "case 0 line est vide");
72  return kFALSE;
73 
75  nuc->SetZ(GetIntReadPar(1));
76  nuc->SetA(GetIntReadPar(2));
78  nuc->SetEnergy(GetDoubleReadPar(5));
79  nuc->SetTheta(GetDoubleReadPar(3));
80  nuc->SetPhi(GetDoubleReadPar(4));
81  nuc->SetParameter("ORIGIN", GetIntReadPar(6) + 1);
82  return kTRUE;
83  break;
84 
85  default:
86  return kFALSE;
87  }
88 
89  return kFALSE;
90 
91 }
92 
93 
94 //____________________________________________________________________________//
95 
96 
bool Bool_t
constexpr Bool_t kFALSE
constexpr Bool_t kTRUE
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,...)
@ 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)
Definition: KVFileReader.h:279
Double_t GetDoubleReadPar(Int_t pos) const
Definition: KVFileReader.h:334
Int_t GetIntReadPar(Int_t pos) const
Definition: KVFileReader.h:338
void SetExcitEnergy(Double_t e)
Definition: KVNucleus.cpp:867
void SetA(Int_t a)
Definition: KVNucleus.cpp:658
void SetZ(Int_t z, Char_t mt=-1)
Definition: KVNucleus.cpp:709
void SetTheta(Double_t theta)
Definition: KVParticle.h:696
void SetPhi(Double_t phi)
Definition: KVParticle.h:700
void SetParameter(const Char_t *name, ValType value) const
Definition: KVParticle.h:822
void SetEnergy(Double_t e)
Definition: KVParticle.h:602
Nucleus in a simulated event.
Definition: KVSimNucleus.h:32
Read ELIE events after secondary decay.
Bool_t ReadNucleus(KVSimNucleus *) override
KVSimReader_ELIE_asym()
Default constructor.
Read ascii files containing events generated by Elie.
void SetROOTFileName(KVString name)
Definition: KVSimReader.h:247
void SetTreeTitle(KVString n)
Definition: KVSimReader.h:237
void ConvertAndSaveEventsInFile(KVString filename)
Read events, convert and save in ROOT file(s)
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
Definition: KVString.h:73
virtual void Info(const char *method, const char *msgfmt,...) const
ClassImp(TPyArg)