]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
copy ctor's
authorsnelling <snelling@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 7 May 2008 11:34:57 +0000 (11:34 +0000)
committersnelling <snelling@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 7 May 2008 11:34:57 +0000 (11:34 +0000)
PWG2/FLOW/AliFlowEventSimple.cxx
PWG2/FLOW/AliFlowTrackSimple.cxx
PWG2/FLOW/AliFlowTrackSimple.h

index 150cac8a97fd4b185c560869c1ae32e0375273da..8a255863839cee0c5e491b8521c962ce1a15da49 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/*
-$Log$
-*/ 
-
 #include "Riostream.h"
 #include "TObjArray.h"
 #include "TMath.h"
@@ -50,12 +46,15 @@ ClassImp(AliFlowEventSimple)
 //-----------------------------------------------------------------------
 
 AliFlowEventSimple::AliFlowEventSimple(const AliFlowEventSimple& event):
+  TObject(),
+  fTrackCollection(event.fTrackCollection),
+  fTrack(event.fTrack),
   fNumberOfTracks(event.fNumberOfTracks),
   fEventNSelTracksIntFlow(event.fEventNSelTracksIntFlow)
 {
   //copy constructor 
-  *fTrack = *event.fTrack;
-  *fTrackCollection =  *event.fTrackCollection ;
+  //  *fTrack = *event.fTrack;
+  //  *fTrackCollection =  *event.fTrackCollection ;
 
 }
 
@@ -63,7 +62,6 @@ AliFlowEventSimple::AliFlowEventSimple(const AliFlowEventSimple& event):
 
 AliFlowEventSimple& AliFlowEventSimple::operator=(const AliFlowEventSimple& event)
 {
-  //copy constructor 
   *fTrack = *event.fTrack;
   *fTrackCollection =  *event.fTrackCollection ;
   fNumberOfTracks = event.fNumberOfTracks;
index a57e45b72035f296dccc2e9d15cf50d2675f25fe..0a631b83afbb56a6dec757420ea5e86f71119546 100644 (file)
@@ -39,6 +39,31 @@ AliFlowTrackSimple::AliFlowTrackSimple():
   
 }
 
+//-----------------------------------------------------------------------
+
+AliFlowTrackSimple::AliFlowTrackSimple(const AliFlowTrackSimple& aTrack):
+  TObject(),
+  fEta(aTrack.fEta),
+  fPt(aTrack.fPt),
+  fPhi(aTrack.fPhi),
+  fFlowBits(aTrack.fFlowBits)
+{
+  //copy constructor 
+}
+//-----------------------------------------------------------------------
+
+AliFlowTrackSimple& AliFlowTrackSimple::operator=(const AliFlowTrackSimple& aTrack)
+{
+  fEta = aTrack.fEta;
+  fPt = aTrack.fPt;
+  fPhi = aTrack.fPhi;
+  fFlowBits = aTrack.fFlowBits;
+
+  return *this;
+
+}
+
+
 //----------------------------------------------------------------------- 
 
 AliFlowTrackSimple::~AliFlowTrackSimple()
index 22ba44282070492677e17e40860c9361edc57982..b1f9573b2c78d6e4e5fd8825767745f23825541c 100644 (file)
@@ -15,6 +15,8 @@ class AliFlowTrackSimple: public TObject {
 
  public:
   AliFlowTrackSimple();
+  AliFlowTrackSimple(const AliFlowTrackSimple& aTrack);
+  AliFlowTrackSimple& operator=(const AliFlowTrackSimple& aTrack);
   virtual  ~AliFlowTrackSimple();
   
   Double_t Eta() const;