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 150cac8..8a25586 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 a57e45b..0a631b8 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 22ba442..b1f9573 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;