]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TTherminator/TTherminator.cxx
Reading QA thresholds from external file II
[u/mrichter/AliRoot.git] / TTherminator / TTherminator.cxx
index fec393e0d62194fc4e590abf2edd9781531ac344..d034ddfa4fe1326f4c8bef82987f3b4368d78985 100644 (file)
@@ -56,13 +56,19 @@ TTherminator::TTherminator():
   fPartDB = new ParticleDB();
 }
 TTherminator::TTherminator(const TTherminator & therm) :
-  TGenerator(therm),
-  fCalka(new Integrator(*therm.fCalka)),
-  fEvent(new Event(*therm.fEvent)),
-  fPartDB(new ParticleDB())
+  TGenerator(therm), 
+  fCalka(0),
+  fEvent(0),
+  fPartDB(0)
 {
   // Copy constructor
   //  fPartDB = new ParticleDB();
+  if (fCalka) delete fCalka;
+  fCalka = new Integrator(*therm.fCalka);
+  if (fEvent) delete fEvent;
+  fEvent = new Event(*therm.fEvent);
+  if (fPartDB) delete fPartDB;
+  fPartDB = new ParticleDB();
 }
 TTherminator& TTherminator::operator=(const TTherminator & therm)
 {