]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fix Coverity
authorakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 20 Dec 2011 13:45:15 +0000 (13:45 +0000)
committerakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 20 Dec 2011 13:45:15 +0000 (13:45 +0000)
PWG2/FEMTOSCOPY/AliFemto/AliFemtoKink.cxx
PWG2/FEMTOSCOPY/AliFemto/AliFemtoKink.h

index 63262610e361e55a5c09a18ef516e3b1cd957b0c..663ad066ad4f4d2beac9077679327cbcbd3609a6 100644 (file)
@@ -102,6 +102,26 @@ AliFemtoKink::AliFemtoKink(const AliFemtoKink& k):
 
 }
 // -----------------------------------------------------------------------
+AliFemtoKink& AliFemtoKink::operator=( const AliFemtoKink& k)
+{
+  if (this != &k) {
+    fDcaParentDaughter          =   k.fDcaParentDaughter;           
+    fDcaDaughterPrimaryVertex   =   k.fDcaDaughterPrimaryVertex;    
+    fDcaParentPrimaryVertex     =   k.fDcaParentPrimaryVertex;      
+    fHitDistanceParentDaughter  =   k.fHitDistanceParentDaughter;   
+    fHitDistanceParentVertex    =   k.fHitDistanceParentVertex;     
+    fDeltaEnergy[0]             =   k.fDeltaEnergy[0];              
+    fDeltaEnergy[1]             =   k.fDeltaEnergy[1];              
+    fDeltaEnergy[2]             =   k.fDeltaEnergy[2];              
+    fDecayAngle                 =   k.fDecayAngle;                  
+    fDecayAngleCM               =   k.fDecayAngleCM;                
+    fDaughter                   =   k.fDaughter;                    
+    fParent                     =   k.fParent;                      
+    fPosition                   =   k.fPosition;                
+  }
+
+  return *this;
+}
 
 
 //--------------------- below here is ONLY star ----------------
index cad73d4e22f631757d0ef226681d7d03039b45ff..b7873eff1ece57234d80dc802c3489633cc809d2 100644 (file)
@@ -75,6 +75,7 @@ public:
 #endif
 #endif
   ~AliFemtoKink(){/* no-op */}
+  AliFemtoKink& operator=( const AliFemtoKink& k); // copy constructor
 
   // Get's
   float        DcaParentDaughter() const;