Hi,
I create a class
class tabclass
{
private:
static const unsigned n=48;
public:
double tab[n];
tabclass();
ClassDef(tabclass,1);
}
I wonder if there is a way in ROOT to initialize each element of tab[n] by zero. I know that standard c++ draft doesn’t allow to initialize table defined in class (it should be done in constructor e.g. in loop).
However outside class one can do
double tab[n]={0};
or even
double tab[n]=0;
to initialize each element by zero.
Maybe there is some easy way to do similar thing inside class in the ROOT environment?