]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSsegmentation.cxx
v11 classes commented out by default
[u/mrichter/AliRoot.git] / ITS / AliITSsegmentation.cxx
index 9195d769f94dbbc9c0235cc3667911b349615a34..d5b1b75fb7b6a2f4677efca11a707429df37dd8c 100644 (file)
@@ -1,8 +1,58 @@
 ////////////////////////////////////////////////
 //  Segmentation class for set:ITS            //
+//  All methods implemented in the derived    //
+//  classes are set = 0 in the header file    //
+//  so this class cannot be instantiated      //
+//  methods implemented in a part of the      //
+// derived classes are implemented here as    //
+// TObject::MayNotUse                         // 
 ////////////////////////////////////////////////
 
-
+#include <TF1.h>
 #include "AliITSsegmentation.h"
 
 ClassImp(AliITSsegmentation)
+
+//_____________________________________________________________
+AliITSsegmentation::AliITSsegmentation(){
+  // Default constructor
+  SetDetSize(0.,0.,0.);
+  fGeom = 0;
+  fCorr = 0;
+}
+
+//_____________________________________________________________
+AliITSsegmentation::~AliITSsegmentation(){
+  // destructor
+  if(fCorr)delete fCorr;
+}
+
+//_____________________________________________________________
+void AliITSsegmentation::Copy(TObject &obj) const {
+  // copy this to obj
+  ((AliITSsegmentation& ) obj).fDz      = fDz;
+  ((AliITSsegmentation& ) obj).fDx      = fDx;
+  ((AliITSsegmentation& ) obj).fDy      = fDy;
+  ((AliITSsegmentation& ) obj).fGeom    = fGeom; // copy only the pointer
+  if(fCorr){
+    ((AliITSsegmentation& ) obj).fCorr    = new TF1(*fCorr); // make a proper copy
+  }
+  else {
+    ((AliITSsegmentation& ) obj).fCorr = 0;
+  }
+}
+//______________________________________________________________________
+AliITSsegmentation& AliITSsegmentation::operator=(
+                        const AliITSsegmentation &source){
+// Operator =
+  if(this != &source){
+    source.Copy(*this);
+  }
+  return *this;
+}
+//______________________________________________________________________
+AliITSsegmentation::AliITSsegmentation(const AliITSsegmentation &source):
+    TObject(source){
+    // copy constructor
+  source.Copy(*this);
+}