fPartDB = new ParticleDB();
}
TTherminator::TTherminator(const TTherminator & therm) :
- TGenerator(therm),
+ 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)
+{
+ if (this != &therm) {
+ fCalka = therm.fCalka;
+ fEvent = therm.fEvent;
+ delete fPartDB;
+ fPartDB = new ParticleDB();
+ }
+
+ return *this;
+}
+
TTherminator::~TTherminator()
{
// Destructor
}
in.close();
}
+
+ delete tParser;
}
void TTherminator::GenerateEvent()