]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
implemented copy constructor (protected)
authormasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 4 Dec 2007 18:54:07 +0000 (18:54 +0000)
committermasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 4 Dec 2007 18:54:07 +0000 (18:54 +0000)
ITS/AliITSClusterFinder.cxx
ITS/AliITSClusterFinder.h
ITS/AliITSClusterFinderV2.cxx

index 8895cb9beb6a0d55e207bb389e03fd9548eb6137..8647cf73f15bc0af49dcf715f4e52156ca4fa9cb 100644 (file)
@@ -111,14 +111,26 @@ fNPeaks(-1){
     SetClusterSize();
     SetDeclusterFlag();
 }
-/*
+
 //______________________________________________________________________
-AliITSClusterFinder::AliITSClusterFinder(const AliITSClusterFinder &source) : TObject(source) {
+AliITSClusterFinder::AliITSClusterFinder(const AliITSClusterFinder &source) : TObject(source),
+fDebug(source.fDebug),
+fModule(source.fModule),
+fDigits(),
+fNdigits(source.fNdigits),
+fDetTypeRec(),
+fClusters(),
+fNRawClusters(source.fNRawClusters),
+fMap(),
+fNperMax(source.fNperMax),
+fDeclusterFlag(source.fDeclusterFlag),
+fClusterSize(source.fClusterSize),
+fNPeaks(source.fNPeaks) {
   // Copy constructor
   // Copies are not allowed. The method is protected to avoid misuse.
-  Fatal("AliITSClusterFinder","Copy constructor not allowed\n");
+  AliError("Copy constructor not allowed\n");
 }
-*/
+
 
 //______________________________________________________________________
 //AliITSClusterFinder& AliITSClusterFinder::operator=(const AliITSClusterFinder& /* source */){
index 71b8d8e012e2b9aa6e504879dd688371d924f498..8afe5aeac64d38dbfb7a9fb50b918860bedf3567 100644 (file)
@@ -132,7 +132,6 @@ class AliITSClusterFinder :public TObject{
     Int_t fNdet[2200];           // detector index  
     Int_t fNlayer[2200];         // detector layer
 
- private:
     AliITSClusterFinder(const AliITSClusterFinder &source); // copy constructor
     // assignment operator
     AliITSClusterFinder& operator=(const AliITSClusterFinder &source);
index 836b857793a42ad9e6a3579a88e256354c4dc928..b85baa66ec29012786ebd32a05e83bc88ee3763d 100644 (file)
@@ -37,14 +37,16 @@ fNModules(AliITSgeomTGeo::GetNModules()),
 fEvent(0){
   //Default constructor
 }
-/*
+
 //______________________________________________________________________
-AliITSClusterFinderV2::AliITSClusterFinderV2(const AliITSClusterFinderV2 &source) : AliITSClusterFinder(source) {
+AliITSClusterFinderV2::AliITSClusterFinderV2(const AliITSClusterFinderV2 &source) : AliITSClusterFinder(source),
+fNModules(source.fNModules),
+fEvent(source.fEvent) {
   // Copy constructor
   // Copies are not allowed. The method is protected to avoid misuse.
-  Fatal("AliITSClusterFinderV2","Copy constructor not allowed\n");
+  AliError("Copy constructor not allowed\n");
 }
-*/
+
 //______________________________________________________________________
 //AliITSClusterFinderV2& AliITSClusterFinderV2::operator=(const AliITSClusterFinderV2& /* source */){
   // Assignment operator