KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
KVSimReader_HIPSE.h
Go to the documentation of this file.
1 
4 #ifndef __KVSIMREADER_HIPSE_H
5 #define __KVSIMREADER_HIPSE_H
6 
7 #include "KVSimReader.h"
8 #include "TH1F.h"
9 
17  void init()
18  {
19  Info("init", "passe");
20  tree_name = "HIPSE";
21  Info("init", "%s", branch_name.Data());
22  h1 = 0;
23  }
24 
25 protected:
26  TH1F* h1;
29  virtual void define_output_filename();
30 
31 public:
33  KVSimReader_HIPSE(KVString filename);
34 
35  virtual ~KVSimReader_HIPSE();
36 
37  void ReadFile();
39  Bool_t ReadEvent();
41 
42  virtual void SetPotentialHardness(Double_t val)
43  {
44  KVString sval;
45  sval.Form("%lf", val);
46  AddInfo("Hardness of the potential", sval.Data());
47  }
48  virtual void SetExchangePercentage(Double_t val)
49  {
50  KVString sval;
51  sval.Form("%lf", val);
52  AddInfo("Percentage of exchange", sval.Data());
53  }
55  {
56  KVString sval;
57  sval.Form("%lf", val);
58  AddInfo("Percentage of N-N collisions", sval.Data());
59  }
60  void ConvertEventsInFile(KVString filename);
61 
62  ClassDef(KVSimReader_HIPSE, 1) //Read ascii file for events of the HIPSE code after clusterization
63 };
64 
65 #endif
bool Bool_t
double Double_t
#define ClassDef(name, id)
Description of properties and kinematics of atomic nuclei.
Definition: KVNucleus.h:125
Read ascii file for events of the HIPSE code after clusterization.
virtual void define_output_filename()
KVSimReader_HIPSE()
Default constructor.
virtual void SetExchangePercentage(Double_t val)
virtual void SetNNCollisionPercentage(Double_t val)
void ConvertEventsInFile(KVString filename)
Method called by constructors with KVString filename argument.
virtual void SetPotentialHardness(Double_t val)
Base class to read output files for simulation and create tree using KVSimEvent class.
Definition: KVSimReader.h:57
KVString tree_name
Definition: KVSimReader.h:69
KVString branch_name
Definition: KVSimReader.h:69
void AddInfo(const Char_t *name, const Char_t *val)
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
Definition: KVString.h:72
virtual void Info(const char *method, const char *msgfmt,...) const
const char * Data() const
void Form(const char *fmt,...)