KaliVeda
Toolkit for HIC analysis
KVSimReader_SMF_asym.cpp
1 //Created by KVClassFactory on Mon Jul 5 15:24:25 2010
2 //Author: bonnet
3 
4 #include "KVSimReader_SMF_asym.h"
5 #include "KVString.h"
6 
8 
9 
10 
14 {
15  // Default constructor
16  init();
17 }
18 
19 
20 
22 
24 {
25  init();
27 }
28 
29 
30 
32 
34 {
36  {
37  auto res = ReadLineAndCheck(1, " ");
38  switch (res) {
40  return kFALSE;
42  ndes = GetIntReadPar(0);
43  sub_number=0;
44  return kTRUE;
45  default:
46  return kFALSE;
47  }
48  }
49  return kFALSE;
50 }
51 
52 
53 
55 
57 {
58  evt->GetParameters()->SetValue("sub_number", sub_number);
59  return KVSimReader_SMF::ReadEvent(evt);
60 }
61 
62 
63 
66 
67 bool KVSimReader_SMF_asym::NeedToIterateReadEvent()
68 {
69  // iterate over the 'ndes' secondary de-excited events for each primary event
70  ++sub_number;
71  return sub_number < ndes;
72 }
73 
74 
75 
77 
79 {
80 
81  auto res = ReadLineAndCheck(5, " ");
82  switch (res) {
84  Info("ReadNucleus", "case 0 line est vide");
85  return kFALSE;
86 
88  nuc->SetZ(GetIntReadPar(1));
89  nuc->SetA(GetIntReadPar(0));
90 
91  //Axe "faisceau dans SMF z"
93 
94  return kTRUE;
95 
96  default:
97 
98  return kFALSE;
99  }
100 
101 }
102 
103 
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
KVNameValueList * GetParameters() const
Definition: KVEvent.h:180
@ 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 SetValue(const Char_t *name, value_type value)
void SetA(Int_t a)
Definition: KVNucleus.cpp:658
void SetZ(Int_t z, Char_t mt=-1)
Definition: KVNucleus.cpp:709
void SetMomentum(const TVector3 &v)
Definition: KVParticle.h:581
Container class for simulated nuclei, KVSimNucleus.
Definition: KVSimEvent.h:22
Nucleus in a simulated event.
Definition: KVSimNucleus.h:32
Read ascii file for asymptotic events of the SMF code after SIMON deexcitation.
Bool_t ReadNucleus(KVSimNucleus *nuc) override
Bool_t ReadEvent(KVSimEvent *evt) override
Bool_t ReadEventHeader(KVSimEvent *evt) override
KVSimReader_SMF_asym()
Default constructor.
Bool_t ReadEvent(KVSimEvent *evt) override
Bool_t ReadEventHeader(KVSimEvent *evt) override
void ConvertEventsInFile(KVString filename)
Definition: KVSimReader.cpp:24
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
void init()
ClassImp(TPyArg)