Dear all,
sorry for this topic being probably more related to C++ than ROOT. I’m dealing with a class which has an array of TH1D pointers declared as a private member in the header. Now, in the default constructor I would like to set all the pointers to NULL. If I had a single pointer declared as TH1D *fHist, I would do:
MyClass::MyClass():
fHist(0) {
// default constructor
}
But if fHist is the array TH1D *fHist[10], how could I do? Should I set all the elements of the array, one by one??
Thanks,
Antonio