Hi
I have tried to do what I am describing and I get a segmentation violation. I am assuming its in the streamer but I want to ask if what I am trying to do should be possible in principle?
I have a class
class MyClass: public TObject
{
private:
Int_t numlists;
TList ** mylist;
};
In the definitions I make
MyClass::Init()
{
mylist = new TList*[numlists];
for(Int_t c=0;c<numlists;c++) mylist[c]=new TList();
}
MyClass::Fill()
{
for(Int_t c=0;c<numlists;c++) mylist[c]=new TList();
{
for (Int_t c2=0;c2<100;c2++)
{
mylist[c]->Add(new TH1F(somename +c+c2, “title”,100,0,1);
mylist[c]->At(c2)->FillRandom();
}
}
Can I expect the streamer to be able to handle writing my class with my mylist array of pointers to disk?
Thanks - any advice would be greatly appreciated.
Mark