1 /**************************************************************************
2 * Copyright(c) 1998-1999, 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 **************************************************************************/
19 // A track class for use in AliFlowEvent for flow analysis
20 // origin: Mikolaj Krzewicki (mikolaj.krzewicki@cern.ch)
22 #include "AliVParticle.h"
23 #include "AliFlowTrack.h"
24 #include "AliFlowTrackSimple.h"
26 ClassImp(AliFlowTrack)
28 //-----------------------------------------------------------------------
29 AliFlowTrack::AliFlowTrack():
36 //-----------------------------------------------------------------------
37 AliFlowTrack::AliFlowTrack(const AliVParticle* p):
45 //-----------------------------------------------------------------------
46 void AliFlowTrack::Set(const AliVParticle* p)
48 //set from an AliVParticle
52 SetCharge(p->Charge());
55 //-----------------------------------------------------------------------
56 AliFlowTrack::AliFlowTrack(const AliFlowTrack& aTrack):
57 AliFlowTrackSimple(aTrack),
58 fTrackSourceBits(aTrack.fTrackSourceBits)
63 //-----------------------------------------------------------------------
64 AliFlowTrack* AliFlowTrack::Clone(const char* /*option*/) const
67 return new AliFlowTrack(*this);
70 //-----------------------------------------------------------------------
71 AliFlowTrack& AliFlowTrack::operator=(const AliFlowTrack& aTrack)
74 AliFlowTrackSimple::operator=(aTrack);
75 fTrackSourceBits = aTrack.fTrackSourceBits;
79 ////-----------------------------------------------------------------------
80 //AliFlowTrackSimple& AliFlowTrack::operator=(const AliFlowTrackSimple& aTrack)
82 // //polymorphic assignment
83 // AliFlowTrackSimple::operator=(aTrack);
84 // const AliFlowTrack* pft = dynamic_cast<const AliFlowTrack*>(&aTrack);
87 // fTrackSourceBits = pft->fTrackSourceBits;
91 // fTrackSourceBits.ResetAllBits();
96 //-----------------------------------------------------------------------
97 AliFlowTrack::~AliFlowTrack()