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 SetOwner(Bool_t o = kTRUE) override
25  {
26  if (!o) {
27  Warning("SetOwner", "Attempt to change owner status of KVList");
28  }
29  }
30 
31 public:
32 
33  KVList() : KVSeqCollection("TList")
34  {
37  set_ownership(true);
38  }
39 
40  void Sort(Bool_t order = kSortAscending)
41  {
42  ((TList*)fCollection)->Sort(order);
43  }
44 
45  ClassDefOverride(KVList, 3)//Extended version of ROOT TList
46 };
47 #endif
bool Bool_t
#define ClassDefOverride(name, id)
Extended TList class which owns its objects by default.
Definition: KVList.h:22
KVList()
Definition: KVList.h:33
void Sort(Bool_t order=kSortAscending)
Definition: KVList.h:40
void SetOwner(Bool_t o=kTRUE) override
Definition: KVList.h:24
KaliVeda extensions to ROOT collection classes.
TSeqCollection * fCollection
Pointer to embedded ROOT collection.
void set_ownership(Bool_t enable)
virtual void Warning(const char *method, const char *msgfmt,...) const