]>
Commit | Line | Data |
---|---|---|
6e214c87 | 1 | /************************************************************************* |
2 | * Copyright(c) 1998-2008, 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 | // AliFlowCandidateTrack: | |
18 | // Class for reconstructed particles to be used in flow analysis | |
19 | // Author: Carlos Perez (cperez@cern.ch) | |
20 | //////////////////////////////////////////////////// | |
21 | ||
22 | #include "AliFlowCandidateTrack.h" | |
23 | ||
24 | ClassImp(AliFlowCandidateTrack) | |
25 | ||
26 | AliFlowCandidateTrack::AliFlowCandidateTrack(): | |
27 | AliFlowTrack(), | |
28 | fMass(0), | |
29 | fNDaughters(0) | |
30 | { | |
41dc4195 | 31 | for(int i=0; i!=5; ++i) { |
6e214c87 | 32 | fDaughter[i] = -1; |
41dc4195 | 33 | fTrack[i] = NULL; |
34 | } | |
6e214c87 | 35 | } |
36 | ||
41dc4195 | 37 | AliFlowCandidateTrack::AliFlowCandidateTrack(const AliFlowCandidateTrack& aTrack): |
38 | AliFlowTrack(aTrack), | |
39 | fMass(aTrack.fMass), | |
40 | fNDaughters(aTrack.fNDaughters) | |
41 | { | |
42 | for(int i=0; i!=5; ++i) { | |
43 | fDaughter[i] = aTrack.fDaughter[i]; | |
44 | fTrack[i] = aTrack.fTrack[i]; | |
45 | } | |
46 | } | |
47 | ||
48 | AliFlowCandidateTrack& AliFlowCandidateTrack::operator=(const AliFlowCandidateTrack& aTrack) | |
49 | { | |
50 | AliFlowTrack::operator=(aTrack); | |
51 | fMass = aTrack.fMass; | |
52 | fNDaughters = aTrack.fNDaughters; | |
53 | for(int i=0; i!=5; ++i) { | |
54 | fDaughter[i] = aTrack.fDaughter[i]; | |
55 | fTrack[i] = aTrack.fTrack[i]; | |
56 | } | |
57 | return *this; | |
58 | } | |
6e214c87 | 59 | |
60 | AliFlowCandidateTrack::~AliFlowCandidateTrack() | |
61 | { | |
62 | } | |
63 |