KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVPartitionList.h
Go to the documentation of this file.
1 
4 #ifndef __KVPARTITIONLIST_H
5 #define __KVPARTITIONLIST_H
6 
7 #include "KVUniqueNameList.h"
8 
9 class KVIntegerList;
10 class KVPartition;
11 class TTree;
12 
33 protected:
34 
39 
40  void init();
42  TTree* GenereTree(const Char_t* treename, Bool_t Compress = kTRUE);
43 
44 public:
45 
46  KVPartitionList(const Char_t* name);
48  virtual ~KVPartitionList();
49  void Clear(Option_t* option = "");
50 
52 
55 
56  void Update();
57 
58  virtual Bool_t Fill(KVIntegerList* par);
59 
60  virtual void AddFirst(TObject* obj);
61  virtual void AddLast(TObject* obj);
62  virtual void AddAt(TObject* obj, Int_t idx);
63  virtual void AddAfter(const TObject* after, TObject* obj);
64  virtual void AddBefore(const TObject* before, TObject* obj);
65  virtual void Add(TObject* obj);
66 
67  void SaveAsTree(const Char_t* filename, const Char_t* treename, Bool_t Compress = kTRUE, Option_t* option = "recreate");
68 
69  ClassDef(KVPartitionList, 1) //Store KVIntegerList and increment its population, if one is already in the list
70 
71 };
72 
73 #endif
int Int_t
char Char_t
bool Bool_t
double Double_t
const char Option_t
#define ClassDef(name, id)
Handle a list of positive integers (partition)
Definition: KVIntegerList.h:68
Manage a list of partitions.
void SaveAsTree(const Char_t *filename, const Char_t *treename, Bool_t Compress=kTRUE, Option_t *option="recreate")
Double_t GetNbreDiff()
void ValidateEntrance(KVIntegerList *il)
virtual void AddAt(TObject *obj, Int_t idx)
virtual void AddBefore(const TObject *before, TObject *obj)
KVPartitionList()
Default constructor.
Double_t knbre_tot
Nbre de partitions totales.
TTree * GenereTree(const Char_t *treename, Bool_t Compress=kTRUE)
virtual Bool_t Fill(KVIntegerList *par)
virtual void AddLast(TObject *obj)
virtual void AddAfter(const TObject *after, TObject *obj)
void Update()
Met a jour l'intervalle de multiplicité associées aux partitions dans la liste.
virtual ~KVPartitionList()
Destructor.
void Clear(Option_t *option="")
Mise a zero de la liste.
virtual void Add(TObject *obj)
virtual void AddFirst(TObject *obj)
KVPartition * mult_range
Permet d'extraire la gamme en multiplicité
Double_t knbre_diff
Nbre de partitions differentes.
Handle partitions.
Definition: KVPartition.h:30
Optimised list in which named objects can only be placed once.