diff --git a/LArCalorimeter/LArG4/LArG4Code/src/LArG4CalibSD.cc b/LArCalorimeter/LArG4/LArG4Code/src/LArG4CalibSD.cc index 6be3e764993bc96fbe1bb8695cfac4c26384b82c..654ce375dcb3f8a83b9da3727e2be4955c61ae80 100644 --- a/LArCalorimeter/LArG4/LArG4Code/src/LArG4CalibSD.cc +++ b/LArCalorimeter/LArG4/LArG4Code/src/LArG4CalibSD.cc @@ -31,8 +31,6 @@ LArG4CalibSD::LArG4CalibSD(G4String a_name, ILArCalibCalculatorSvc* calc, bool d LArG4CalibSD::~LArG4CalibSD() { - // I owned my own calculator - delete m_calculator; if(verboseLevel>5 && m_numberInvalidHits>0) { G4cout << "Destructor: Sensitive Detector <" << SensitiveDetectorName << "> had " << m_numberInvalidHits << " G4Step energy deposits outside the region determined by its Calculator." << G4endl; diff --git a/LArCalorimeter/LArG4/LArG4Code/src/LArG4SimpleSD.cc b/LArCalorimeter/LArG4/LArG4Code/src/LArG4SimpleSD.cc index ce1b1fc207ac57a1728a6bb6d83b6dd1bd3ee3c6..0ef2d1d2d88e45f8fa35e1880509b0aa8585f9b9 100644 --- a/LArCalorimeter/LArG4/LArG4Code/src/LArG4SimpleSD.cc +++ b/LArCalorimeter/LArG4/LArG4Code/src/LArG4SimpleSD.cc @@ -69,8 +69,6 @@ LArG4SimpleSD::LArG4SimpleSD(G4String a_name, StoreGateSvc* detStore) LArG4SimpleSD::~LArG4SimpleSD() { - // I owned my own calculator - delete m_calculator; if(verboseLevel>5 && m_numberInvalidHits>0) { G4cout << "Destructor: Sensitive Detector <" << SensitiveDetectorName << "> had " << m_numberInvalidHits << " G4Step energy deposits outside the region determined by its Calculator." << G4endl;