]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG/FLOW/Tasks/AliFlowCandidateTrack.cxx
Moving/split PWG2/FLOW to PWGCF/FLOW, PWG/FLOW/Base, PWG/FLOW/Tasks, PWG/Glauber
[u/mrichter/AliRoot.git] / PWG / FLOW / Tasks / AliFlowCandidateTrack.cxx
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 {
31   // ctor
32   for(int i=0; i!=5; ++i) {
33     fDaughter[i] = -1;
34     fTrack[i] = NULL;
35   }
36 }
37
38 AliFlowCandidateTrack::AliFlowCandidateTrack(const AliFlowCandidateTrack& aTrack):
39   AliFlowTrack(aTrack),
40   fMass(aTrack.fMass),
41   fNDaughters(aTrack.fNDaughters)
42 {
43   // ctor
44   for(int i=0; i!=5; ++i) {
45     fDaughter[i] = aTrack.fDaughter[i];
46     fTrack[i] = aTrack.fTrack[i];
47   }
48 }
49
50 AliFlowCandidateTrack&  AliFlowCandidateTrack::operator=(const AliFlowCandidateTrack& aTrack)
51 {
52   // assignment
53   if (this == &aTrack) return *this; //handles self assignment
54
55   AliFlowTrack::operator=(aTrack);
56   fMass = aTrack.fMass;
57   fNDaughters = aTrack.fNDaughters;
58   for(int i=0; i!=5; ++i) {
59     fDaughter[i] = aTrack.fDaughter[i];
60     fTrack[i] = aTrack.fTrack[i];
61   }
62   return *this;
63 }
64
65 AliFlowCandidateTrack::~AliFlowCandidateTrack()
66 {
67   // dtor
68 }
69