10 #ifndef GGSTCLONESARRAYSERVICE_H_
11 #define GGSTCLONESARRAYSERVICE_H_
13 #include "TClonesArray.h"
79 const char *_className;
81 struct ArrayDescriptor {
86 array(NULL), allocSize(0) {
92 bool operator<(
const ArrayDescriptor &rhs) {
93 if (allocSize < rhs.allocSize)
100 typedef std::list<ArrayDescriptor> ArrayList;
101 ArrayList _availableArrays;
102 ArrayList _assignedArrays;
A service which manages a pool of reusable TClonesArray.
void DeleteAll()
Delete all unassigned arrays in storage.
TClonesArray * ProvideArray(int sizeHint=0)
Method to obtain an array from the service.
void TakeBackArray(TClonesArray *&array)
Gives an array back to the service.
GGSTClonesArrayService(const char *className)
Constructor.
~GGSTClonesArrayService()
Destructor.