KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVSource.h
1#ifndef __KVSource_H
2#define __KVSource_H
3
4#include "KVVGObjectSum.h"
5#include "KVNucleus.h"
6
49class KVSource: public KVVGObjectSum<KVNucleus> {
51
52protected:
53 void init();
55 void fill(const KVNucleus* n)
56 {
57 Add(*n);
58 ++fMult;
59 }
60
61public:
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() {}
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
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
const KVNucleus & GetSource() const
Definition KVSource.h:85
void init()
Definition KVSource.cpp:13
void Init()
Definition KVSource.h:77
Global variable calculating sum of objects.
void Add(const KVNucleus &obj)
const KVNucleus & GetSumObject() const
void Copy(TObject &obj) const
const Int_t n
TArc a