KaliVeda
Toolkit for HIC analysis
KVSource.h
1 #ifndef __KVSource_H
2 #define __KVSource_H
3 
4 #include "KVVGObjectSum.h"
5 #include "KVNucleus.h"
6 
49 class KVSource: public KVVGObjectSum<KVNucleus> {
51 
52 protected:
53  void init();
54  Double_t getvalue_int(Int_t i) const;
55  void fill(const KVNucleus* n)
56  {
57  Add(*n);
58  ++fMult;
59  }
60 
61 public:
62  KVSource() : KVVGObjectSum<KVNucleus>("KVSource")
63  {
64  init();
65  }
67  {
68  init();
69  }
70  virtual ~KVSource(void) {}
71 
72  void Copy(TObject& a) const
73  {
75  dynamic_cast<KVSource&>(a).fMult = fMult;
76  }
77  void Init() {}
78  void Reset()
79  {
81  fMult = 0;
82  }
83  void Calculate() {}
84  Char_t GetValueType(Int_t) const;
85  const KVNucleus& GetSource() const
86  {
87  return GetSumObject();
88  }
89 
90  ClassDef(KVSource, 1) //Simple source reconstruction global variable
91 
92 };
93 #endif
int Int_t
char Char_t
double Double_t
#define ClassDef(name, id)
char name[80]
Description of properties and kinematics of atomic nuclei.
Definition: KVNucleus.h:126
Simple source reconstruction global variable.
Definition: KVSource.h:49
Double_t getvalue_int(Int_t i) const
Definition: KVSource.cpp:51
KVSource()
Definition: KVSource.h:62
void Reset()
Definition: KVSource.h:78
Char_t GetValueType(Int_t) const
Definition: KVSource.cpp:114
const KVNucleus & GetSource() const
Definition: KVSource.h:85
void fill(const KVNucleus *n)
Definition: KVSource.h:55
void Calculate()
Definition: KVSource.h:83
KVSource(const Char_t *name)
Definition: KVSource.h:66
Int_t fMult
source multiplicity
Definition: KVSource.h:50
void Copy(TObject &a) const
Definition: KVSource.h:72
virtual ~KVSource(void)
Definition: KVSource.h:70
void init()
Definition: KVSource.cpp:13
void Init()
Definition: KVSource.h:77
Global variable calculating sum of objects.
Definition: KVVGObjectSum.h:24
void Add(const KVNucleus &obj)
Definition: KVVGObjectSum.h:29
const KVNucleus & GetSumObject() const
Definition: KVVGObjectSum.h:57
void Copy(TObject &obj) const
Definition: KVVGObjectSum.h:44
const Int_t n
TArc a