-// Reset the signals for the complete calorimeter
-// Normally this is done to prepare for the data of the next event
-// Note : Module gains, edge and dead flags remain unchanged
-
- if (!fMatrix) LoadMatrix(); // Restore matrix data in case of reading input
+// Reset the signals for the complete calorimeter.
+// Normally this is done to prepare for the data of the next event.
+//
+// mode = 0 : Module positions, gains, edge and dead flags remain unchanged.
+// 1 : Module positions, gains, edge and dead flags are cleared.
+//
+// The default is mode=0.
+//
+// Note : In the case of reading AliCalorimeter objects from a data file,
+// one has to reset the AliCalorimeter object with mode=1
+// (or explicitly delete it) before reading-in the next object
+// in order to prevent memory leaks.
+
+ if (mode<0 || mode>1)
+ {
+ cout << " *AliCalorimeter::Reset* Wrong argument. mode = " << mode << endl;
+ return;
+ }