]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCClusterParam.cxx
Adding new Task - Krypton calibration (Jacek)
[u/mrichter/AliRoot.git] / TPC / AliTPCClusterParam.cxx
index 390dab61fdfdfcb5eedd347011608526b6681ffe..ffaf7086d329fd88f597f9b2146134b904e72103 100644 (file)
@@ -133,12 +133,38 @@ AliTPCClusterParam* AliTPCClusterParam::Instance()
 
 AliTPCClusterParam::AliTPCClusterParam():
   TObject(),
+  fRatio(0),
   fQNorm(0) 
 {
   //
   // Default constructor
   //
 }
+
+AliTPCClusterParam::AliTPCClusterParam(const AliTPCClusterParam& param):
+  TObject(param),
+  fRatio(0),
+  fQNorm(0)
+{
+  //
+  // copy constructor
+  //
+  memcpy(this, &param,sizeof(AliTPCClusterParam));
+  if (param.fQNorm) fQNorm = (TObjArray*) param.fQNorm->Clone();
+}
+
+AliTPCClusterParam & AliTPCClusterParam::operator=(const AliTPCClusterParam& param){
+  //
+  // Assignment operator
+  //
+  if (this != &param) {
+    memcpy(this, &param,sizeof(AliTPCClusterParam));
+    if (param.fQNorm) fQNorm = (TObjArray*) param.fQNorm->Clone();
+  }
+  return *this;
+}
+
+
 AliTPCClusterParam::~AliTPCClusterParam(){
   //
   // destructor