Initialize arrays in constructors. Delete them in destructor.
Use InitArrays method in THcCherenkov and THcAerogel Null out all array pointers in the InitArrays method and call that method from all constructors so that it is always safe to delete these arrays.
Please register or sign in to comment