KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVZmax.h
1#ifndef KVZmax_h
2#define KVZmax_h
3#include "KVUnownedList.h"
4#include "KVVarGlob.h"
5
35class KVZmax: public KVVarGlob {
36
38
39 void init();
40protected:
41 void fill(const KVNucleus* c)
42 {
44 heaviest.Add(const_cast<KVNucleus*>(c));
45 }
46
48 {
53
54 if (!GetZmax(i))
55 return -1.0;
56 return (Double_t) GetZmax(i)->GetZ();
57 }
58
59public:
60 ROOT_FULL_SET_WITH_INIT(KVZmax, KVVarGlob)
61
62 virtual void Copy(TObject& obj) const;
63 void Init()
64 {
66 }
67 void Calculate()
68 {
70 heaviest.Sort();
71 }
72 void Reset()
73 {
76 }
78 {
80
81 return (KVNucleus*) heaviest.At(i);
82 }
86 Int_t GetMult() const
87 {
88 return heaviest.GetEntries();
89 }
90
91 std::vector<Double_t> GetValueVector(void) const;
92
93 ClassDef(KVZmax, 1)//Rank fragments by charge and return Z or pointer of i_th heaviest fragment
94};
95#endif
int Int_t
#define c(i)
double Double_t
#define ClassDef(name, id)
void Sort(Bool_t order=kSortAscending)
Definition KVList.h:35
Description of properties and kinematics of atomic nuclei.
Definition KVNucleus.h:126
Int_t GetZ() const
Return the number of proton / atomic number.
virtual void Clear(Option_t *option="")
virtual TObject * At(Int_t idx) const
virtual void Add(TObject *obj)
Extended TList class which does not own its objects by default.
Base class for all global variable implementations.
Definition KVVarGlob.h:233
Global variable used to sort particles in order of decreasing atomic number
Definition KVZmax.h:35
void Reset()
Definition KVZmax.h:72
std::vector< Double_t > GetValueVector(void) const
Definition KVZmax.cpp:36
virtual void Copy(TObject &obj) const
Definition KVZmax.cpp:22
KVNucleus * GetZmax(Int_t i) const
Definition KVZmax.h:77
KVUnownedList heaviest
sorted list of pointers to nuclei, sorted by decreasing Z
Definition KVZmax.h:37
Double_t getvalue_int(Int_t i) const
Definition KVZmax.h:47
void Calculate()
Definition KVZmax.h:67
void init()
set up list of indices
Definition KVZmax.cpp:9
void Init()
Definition KVZmax.h:63
void fill(const KVNucleus *c)
Definition KVZmax.h:41
Int_t GetMult() const
Definition KVZmax.h:86
virtual Int_t GetEntries() const