KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
KVZmax.cpp
Go to the documentation of this file.
1 #include "KVZmax.h"
2 
4 
5 
6 
8 void KVZmax::init()
9 {
10  heaviest.SetOwner(kFALSE);
11  //set up list of indices
12  for (int i = 1; i <= 50; i++)
13  SetNameIndex(Form("Zmax%d", i), i - 1);
14  fValueType = 'I'; // integer values
15  SetMaxNumBranches(3);
16 }
17 
18 
19 
21 
22 void KVZmax::Copy(TObject& a) const
23 {
24  ((KVZmax&) a).Reset();
26  KVZmax& _a = dynamic_cast<KVZmax&>(a);
28 }
29 
30 
31 
32 
35 
36 std::vector<Double_t> KVZmax::GetValueVector(void) const
37 {
38  // \return vector containing ordered list of Z (all fragments)
39 
40  UInt_t size_event = heaviest.GetEntries();
41  std::vector<Double_t> tmp;
42  for (UInt_t u = 0; u < size_event; u++)
43  tmp.push_back(GetValue(u));
44  return tmp;
45 }
46 
47 
unsigned int UInt_t
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
const Bool_t kFALSE
char * Form(const char *fmt,...)
virtual void Copy(TObject &obj) const
Double_t GetValue(void) const
Definition: KVVarGlob.h:412
void Copy(TObject &obj) const
Make a copy of this object.
Definition: KVVarGlob.h:328
Global variable used to sort particles in order of decreasing atomic number
Definition: KVZmax.h:33
std::vector< Double_t > GetValueVector(void) const
Definition: KVZmax.cpp:36
virtual void Copy(TObject &obj) const
Make a copy of this object.
Definition: KVZmax.cpp:22
KVList heaviest
sorted list of pointers to nuclei, sorted by decreasing Z
Definition: KVZmax.h:35
virtual Int_t GetEntries() const
auto * a