KaliVeda
1.14/2
Toolkit for HIC analysis
Loading...
Searching...
No Matches
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
6
ClassImp
(
KVSimReader_ELIE_asym
)
7
8
9
10
11
14
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.root"
,
20
proj.GetSymbol(), targ.GetSymbol(), ebeam));
21
tree_title.Form(
"ELIE secondary events %s + %s %.1f MeV/nuc."
,
22
proj.GetSymbol(), targ.GetSymbol(), ebeam);
23
}
24
25
26
29
30
KVSimReader_ELIE_asym::KVSimReader_ELIE_asym
()
31
:
KVSimReader_ELIE
()
32
{
33
// Default constructor
34
}
35
36
37
38
41
42
KVSimReader_ELIE_asym::KVSimReader_ELIE_asym
(
KVString
filename)
43
:
KVSimReader_ELIE
()
44
{
45
// Read file and convert to ROOT TTree
46
ConvertEventsInFile
(
filename
);
47
SaveTree
();
48
}
49
50
51
59
60
Bool_t
KVSimReader_ELIE_asym::ReadNucleus
()
61
{
62
// numero_particule,z, a, teta, phi, energie, origine de la particule, energie d'ecitation finale
63
// 0 27 57 3.27897003986 230.52425244 1109.37002505 0 0
64
// 1 80 198 176.726338776 129.481056376 319.364098122 1 0
65
//
66
// The origin of secondary decay particles is stored in a parameter named "ORIGIN"
67
// As particles in a KVEvent are numbered 1,2,... we add 1 to the value read in
68
69
auto
res =
ReadLineAndCheck
(8,
" "
);
70
switch
(res) {
71
case
KVFileReader::ReadStatus::EmptyLine
:
72
Info
(
"ReadNucleus"
,
"case 0 line est vide"
);
73
return
kFALSE
;
74
75
case
KVFileReader::ReadStatus::OK
:
76
nuc
->
SetZ
(
GetIntReadPar
(1));
77
nuc
->
SetA
(
GetIntReadPar
(2));
78
nuc
->
SetExcitEnergy
(
GetDoubleReadPar
(7));
79
nuc
->
SetEnergy
(
GetDoubleReadPar
(5));
80
nuc
->
SetTheta
(
GetDoubleReadPar
(3));
81
nuc
->
SetPhi
(
GetDoubleReadPar
(4));
82
nuc
->
SetParameter
(
"ORIGIN"
,
GetIntReadPar
(6) + 1);
83
return
kTRUE
;
84
break
;
85
86
default
:
87
return
kFALSE
;
88
}
89
90
return
kFALSE
;
91
92
}
93
94
95
//____________________________________________________________________________//
96
97
Bool_t
bool Bool_t
kFALSE
constexpr Bool_t kFALSE
kTRUE
constexpr Bool_t kTRUE
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 filename
Form
char * Form(const char *fmt,...)
KVFileReader::ReadStatus::EmptyLine
@ EmptyLine
last line read was empty (only whitespace)
KVFileReader::ReadStatus::OK
@ OK
successful read and import of parameters from line
KVFileReader::ReadLineAndCheck
ReadStatus ReadLineAndCheck(Int_t nexpect, const KVString &pattern)
Definition
KVFileReader.h:278
KVFileReader::GetDoubleReadPar
Double_t GetDoubleReadPar(Int_t pos) const
Definition
KVFileReader.h:333
KVFileReader::GetIntReadPar
Int_t GetIntReadPar(Int_t pos) const
Definition
KVFileReader.h:337
KVNucleus::SetExcitEnergy
void SetExcitEnergy(Double_t e)
Definition
KVNucleus.cpp:868
KVNucleus::SetA
void SetA(Int_t a)
Definition
KVNucleus.cpp:658
KVNucleus::SetZ
void SetZ(Int_t z, Char_t mt=-1)
Definition
KVNucleus.cpp:707
KVParticle::SetTheta
void SetTheta(Double_t theta)
Definition
KVParticle.h:693
KVParticle::SetPhi
void SetPhi(Double_t phi)
Definition
KVParticle.h:697
KVParticle::SetParameter
void SetParameter(const Char_t *name, ValType value) const
Definition
KVParticle.h:819
KVParticle::SetEnergy
void SetEnergy(Double_t e)
Definition
KVParticle.h:599
KVSimReader_ELIE_asym
Read ELIE events after secondary decay.
Definition
KVSimReader_ELIE_asym.h:65
KVSimReader_ELIE_asym::ReadNucleus
Bool_t ReadNucleus()
Definition
KVSimReader_ELIE_asym.cpp:60
KVSimReader_ELIE_asym::KVSimReader_ELIE_asym
KVSimReader_ELIE_asym()
Default constructor.
Definition
KVSimReader_ELIE_asym.cpp:30
KVSimReader_ELIE
Read ascii files containing events generated by Elie.
Definition
KVSimReader_ELIE.h:65
KVSimReader_ELIE::ConvertEventsInFile
void ConvertEventsInFile(KVString filename)
Definition
KVSimReader_ELIE.cpp:89
KVSimReader::nuc
KVSimNucleus * nuc
Definition
KVSimReader.h:60
KVSimReader::SaveTree
virtual void SaveTree()
Definition
KVSimReader.cpp:324
KVString
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
Definition
KVString.h:73
TObject::Info
virtual void Info(const char *method, const char *msgfmt,...) const
ClassImp
ClassImp(TPyArg)
kaliveda.doxygen
KVMultiDet
simulation
KVSimReader_ELIE_asym.cpp
Generated on Wed Oct 23 2024 12:45:22 for KaliVeda by
1.9.8