]>
Commit | Line | Data |
---|---|---|
b2a297fa | 1 | /************************************************************************* |
2 | * Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. * | |
3 | * * | |
4 | * Author: The ALICE Off-line Project. * | |
5 | * Contributors are mentioned in the code where appropriate. * | |
6 | * * | |
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 | **************************************************************************/ | |
15 | ||
16 | /////////////////////////////////////////////////////////////////////////// | |
17 | // // | |
18 | // Dielectron Pair class. Internally it makes use of AliKFParticle. // | |
19 | // // | |
20 | /////////////////////////////////////////////////////////////////////////// | |
21 | ||
22 | ||
23 | #include "AliDielectronPair.h" | |
24 | #include "AliVTrack.h" | |
25 | ||
26 | ClassImp(AliDielectronPair) | |
27 | ||
28 | AliDielectronPair::AliDielectronPair() : | |
29 | fOpeningAngle(-1), | |
30 | fType(-1), | |
31 | fPair(), | |
32 | fRefD1(), | |
33 | fRefD2() | |
34 | { | |
35 | // | |
36 | // Default Constructor | |
37 | // | |
38 | ||
39 | } | |
40 | ||
41 | //______________________________________________ | |
42 | AliDielectronPair::AliDielectronPair(AliVTrack * const particle1, Int_t pid1, | |
43 | AliVTrack * const particle2, Int_t pid2, Char_t type) : | |
44 | fOpeningAngle(-1), | |
45 | fType(type), | |
46 | fPair(), | |
47 | fRefD1(), | |
48 | fRefD2() | |
49 | { | |
50 | // | |
51 | // Constructor with tracks | |
52 | // | |
53 | SetTracks(particle1, pid1, particle2, pid2); | |
54 | } | |
55 | ||
56 | //______________________________________________ | |
57 | AliDielectronPair::~AliDielectronPair() | |
58 | { | |
59 | // | |
60 | // Default Destructor | |
61 | // | |
62 | ||
63 | } | |
64 | ||
65 | //______________________________________________ | |
66 | void AliDielectronPair::SetTracks(AliVTrack * const particle1, Int_t pid1, | |
67 | AliVTrack * const particle2, Int_t pid2) | |
68 | { | |
69 | // | |
70 | // Set the tracks to the pair KF particle | |
71 | // | |
72 | fPair.Initialize(); | |
73 | ||
74 | AliKFParticle kf1(*particle1,pid1); | |
75 | AliKFParticle kf2(*particle2,pid2); | |
76 | ||
77 | fPair.AddDaughter(kf1); | |
78 | fPair.AddDaughter(kf2); | |
79 | ||
80 | fRefD1 = particle1; | |
81 | fRefD2 = particle2; | |
82 | ||
83 | fOpeningAngle=kf1.GetAngle(kf2); | |
84 | } | |
85 |