Fix Coverity
[u/mrichter/AliRoot.git] / TTherminator / Therminator / DecayChannel.cxx
index de8becd2d8d5677a86252c5862e02fa9b0983285..b4a535d7ffcd6ada715d50b57d5bd0bbf1eafc99 100644 (file)
@@ -48,6 +48,18 @@ DecayChannel::~DecayChannel()
 {
 }
 
+DecayChannel& DecayChannel::operator=(const DecayChannel& aChannel)
+{
+  if (this != &aChannel) {
+    mBranchRatio = aChannel.GetBranchingRatio();
+    mParticleType1 = aChannel.GetParticle1();
+    mParticleType2 = aChannel.GetParticle2();
+    mParticleType3 = aChannel.GetParticle3();
+  }
+
+  return *this;
+}
+
 int    
 DecayChannel::GetParticle1() const
 {