]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliKFParticle.cxx
AliESDHeader: AliTriggerConfiguration and more trigger scalers added
[u/mrichter/AliRoot.git] / STEER / AliKFParticle.cxx
index 76bd984a94de3cb46a554a2f20f6b370fd52e0c4..8abd1a073e8082f15df30f773515411c03972ced 100644 (file)
@@ -26,6 +26,17 @@ ClassImp(AliKFParticle)
 
 Double_t AliKFParticle::fgBz = -5.;  //* Bz compoment of the magnetic field
 
+AliKFParticle::AliKFParticle( const AliKFParticle &d1, const AliKFParticle &d2, Bool_t gamma )
+{
+  if (!gamma) {
+    AliKFParticle mother;
+    mother+= d1;
+    mother+= d2;
+    *this = mother;
+  } else
+    ConstructGamma(d1, d2);
+}
+
 void AliKFParticle::Create( const Double_t Param[], const Double_t Cov[], Int_t Charge, Int_t PID )
 {
   // Constructor from "cartesian" track, PID hypothesis should be provided