1 /*************************************************************************
2 * Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
16 ///////////////////////////////////////////////////////////////////////////
18 // Dielectron Pair class. Internally it makes use of AliKFParticle. //
20 ///////////////////////////////////////////////////////////////////////////
23 #include "AliDielectronPair.h"
24 #include "AliVTrack.h"
26 ClassImp(AliDielectronPair)
28 AliDielectronPair::AliDielectronPair() :
37 // Default Constructor
42 //______________________________________________
43 AliDielectronPair::AliDielectronPair(AliVTrack * const particle1, Int_t pid1,
44 AliVTrack * const particle2, Int_t pid2, Char_t type) :
53 // Constructor with tracks
55 SetTracks(particle1, pid1, particle2, pid2);
58 //______________________________________________
59 AliDielectronPair::~AliDielectronPair()
67 //______________________________________________
68 void AliDielectronPair::SetTracks(AliVTrack * const particle1, Int_t pid1,
69 AliVTrack * const particle2, Int_t pid2)
72 // Set the tracks to the pair KF particle
76 AliKFParticle kf1(*particle1,pid1);
77 AliKFParticle kf2(*particle2,pid2);
79 fPair.AddDaughter(kf1);
80 fPair.AddDaughter(kf2);
82 if (particle1->Pt()>particle2->Pt()){
90 fOpeningAngle=kf1.GetAngle(kf2);