Update master to aliroot
[u/mrichter/AliRoot.git] / TTherminator / Therminator / ReadPar.cxx
index 920785d30a2cc16441e439e0e6d5d85dce2511e2..1251653cfa76bb6a0a6de38dd190e87bd9739ffe 100644 (file)
@@ -43,6 +43,23 @@ ReadPar::ReadPar(const char *aFName)
   readFile(aFName);
 }
 
+ReadPar::ReadPar(const ReadPar &aPar)
+{
+  fname = strdup(aPar.fname);
+  readFile(fname);
+}
+
+ReadPar& ReadPar::operator=(const ReadPar& aPar)
+{
+  if (this != &aPar) {
+    delete fname;
+    fname = strdup(aPar.fname);
+    readFile(fname);
+  }
+  
+  return *this;
+}
+
 ReadPar::~ReadPar()
 {
   if (fname)