Make operator= private, modified copy c'tor (Gustavo)
authorkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 25 Mar 2010 06:53:59 +0000 (06:53 +0000)
committerkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 25 Mar 2010 06:53:59 +0000 (06:53 +0000)
STEER/AliAODPWG4ParticleCorrelation.cxx
STEER/AliAODPWG4ParticleCorrelation.h

index b2ec83c..ef71671 100755 (executable)
@@ -80,30 +80,30 @@ AliAODPWG4ParticleCorrelation::AliAODPWG4ParticleCorrelation(const AliAODPWG4Par
   AliAODPWG4Particle(part), fIsolated(part.fIsolated),
   fLeadingDetector(part.fLeadingDetector), fLeading(part.fLeading),  
   fCorrJet(part.fCorrJet), fCorrBkg(part.fCorrBkg), fRefJet(part.fRefJet),   
-  fListOfObjArrays(part.fListOfObjArrays)
+  fListOfObjArrays()
 {
   // Copy constructor
 
 }
 
 //______________________________________________________________________________
-AliAODPWG4ParticleCorrelation& AliAODPWG4ParticleCorrelation::operator=(const AliAODPWG4ParticleCorrelation& part)
-{
-  // Assignment operator
-  if(this!=&part) {
-  
-    fIsolated = part.fIsolated;
-    fRefJet   = part.fRefJet ;
-    fLeadingDetector =part.fLeadingDetector;
-    fLeading  = part.fLeading;
-    fCorrJet  = part.fCorrJet ;
-    fCorrBkg  = part.fCorrBkg; 
-    fListOfObjArrays = fListOfObjArrays;
-
-  }
-  
-  return *this;
-}
+//AliAODPWG4ParticleCorrelation& AliAODPWG4ParticleCorrelation::operator=(const AliAODPWG4ParticleCorrelation& part)
+//{
+//  // Assignment operator
+//  if(this!=&part) {
+//  
+//    fIsolated = part.fIsolated;
+//    fRefJet   = part.fRefJet ;
+//    fLeadingDetector =part.fLeadingDetector;
+//    fLeading  = part.fLeading;
+//    fCorrJet  = part.fCorrJet ;
+//    fCorrBkg  = part.fCorrBkg; 
+//    fListOfObjArrays = fListOfObjArrays;
+//
+//  }
+//  
+//  return *this;
+//}
 
 //______________________________________________________________________________
 void AliAODPWG4ParticleCorrelation::Print(Option_t* /*option*/) const 
index 989e671..158eec4 100755 (executable)
@@ -28,8 +28,10 @@ class AliAODPWG4ParticleCorrelation : public AliAODPWG4Particle {
   
   virtual ~AliAODPWG4ParticleCorrelation();
   AliAODPWG4ParticleCorrelation(const AliAODPWG4ParticleCorrelation& photon); 
+private:
   AliAODPWG4ParticleCorrelation& operator=(const AliAODPWG4ParticleCorrelation& photon);
   
+public:
   virtual TObjArray* GetObjArray(TString refname)  const { return   (TObjArray*) fListOfObjArrays->FindObject(refname); } 
   virtual TList*     GetObjArrayList()             const { return  fListOfObjArrays; } 
   virtual void       AddObjArray(TObjArray * refarray)  { fListOfObjArrays->Add(refarray); }
@@ -64,7 +66,7 @@ class AliAODPWG4ParticleCorrelation : public AliAODPWG4Particle {
   TRef           fRefJet;           // Reference to jet found with JETAN and correlated with particle
   TList   *      fListOfObjArrays ; // List with correlation reference arrays
   
-  ClassDef(AliAODPWG4ParticleCorrelation, 2);
+  ClassDef(AliAODPWG4ParticleCorrelation, 3);
 };