]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TTherminator/TTherminator.cxx
add OCDB for truncated mean (Xianguo)
[u/mrichter/AliRoot.git] / TTherminator / TTherminator.cxx
index 59255c09dcee35f0f7be08a078fa72cb64c159bb..d034ddfa4fe1326f4c8bef82987f3b4368d78985 100644 (file)
@@ -56,13 +56,19 @@ TTherminator::TTherminator():
   fPartDB = new ParticleDB();
 }
 TTherminator::TTherminator(const TTherminator & therm) :
-  TGenerator(therm),
+  TGenerator(therm), 
   fCalka(0),
   fEvent(0),
-  fPartDB(new ParticleDB())
+  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)
 {