diff --git a/slsDetectorCalibration/moenchReadData.C b/slsDetectorCalibration/moenchReadData.C index 4a16ef9ce..bf9313830 100644 --- a/slsDetectorCalibration/moenchReadData.C +++ b/slsDetectorCalibration/moenchReadData.C @@ -219,7 +219,7 @@ Add here the function that you want to call: fill histos, make trees etc. cout << "could not open file " << fname << endl; } if (pedsub) - tall->Write(); + tall->Write(tall->GetName(),TObject::kOverwrite);