KaliVeda
Toolkit for HIC analysis
KVList.h
1 #ifndef KVLIST_H
2 #define KVLIST_H
3 
4 #include "KVSeqCollection.h"
5 #include "TList.h"
6 
22 class KVList: public KVSeqCollection {
23 
24  void set_ownership(bool o = true)
25  {
27  }
28  void SetOwner(Bool_t o = kTRUE) override
29  {
30  if(!o)
31  {
32  Warning("SetOwner", "Attempt to change owner status of KVList");
33  }
34  }
35 
36 public:
37 
38  KVList() : KVSeqCollection("TList")
39  {
42  set_ownership();
43  }
44 
45  void Sort(Bool_t order = kSortAscending)
46  {
47  ((TList*)fCollection)->Sort(order);
48  }
49 
50  ClassDefOverride(KVList, 3)//Extended version of ROOT TList
51 };
52 #endif
bool Bool_t
#define ClassDefOverride(name, id)
Extended TList class which owns its objects by default.
Definition: KVList.h:22
void set_ownership(bool o=true)
Definition: KVList.h:24
KVList()
Definition: KVList.h:38
void Sort(Bool_t order=kSortAscending)
Definition: KVList.h:45
void SetOwner(Bool_t o=kTRUE) override
Definition: KVList.h:28
KaliVeda extensions to ROOT collection classes.
TSeqCollection * fCollection
Pointer to embedded ROOT collection.
void SetOwner(Bool_t enable=kTRUE) override
virtual void Warning(const char *method, const char *msgfmt,...) const