]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Clear method implemented: necssary to store this object in TClonesArray
authorskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 15 Jul 2004 10:38:34 +0000 (10:38 +0000)
committerskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 15 Jul 2004 10:38:34 +0000 (10:38 +0000)
ANALYSIS/AliAODParticle.cxx
ANALYSIS/AliAODParticle.h

index a8a44695fc8a50a4a36c435ebb3ec4a858dae7b4..c72ca54e8e22acbc53932e99ca316d611f53a0ce 100644 (file)
@@ -148,6 +148,23 @@ AliAODParticle::~AliAODParticle()
 }
 //______________________________________________________________________________
 
+void AliAODParticle::Clear(Option_t*)
+{
+//Must be implemented in order to store this object in Clones Array
+  delete [] fPids;
+  delete [] fPidProb;
+  delete fTPCTrackPoints;
+  delete fITSTrackPoints;
+  delete fClusterMap;
+  
+  fPids = 0x0;
+  fPidProb = 0x0;
+  fTPCTrackPoints = 0x0;
+  fITSTrackPoints = 0x0;
+  fClusterMap = 0x0;
+}
+//______________________________________________________________________________
+
 AliAODParticle& AliAODParticle::operator=(const AliAODParticle& in)
 {
 //assigment operator
index e45972e6c4c7bb2a53ce55574a033a2f5969d096..3e6ef21b9e9c647ade2c8f5613fdc19d41fada5e 100644 (file)
@@ -46,6 +46,8 @@ public:
   
   AliAODParticle& operator=(const AliAODParticle& in); 
   
+  void           Clear(Option_t*);//Must be implemented in order to store this object in Clones Array
+  
   TLorentzVector FourMomentum() const {TLorentzVector v(fPx,fPy,fPz,fE);return v;}
   TVector3       ProductionVertex() const {TVector3 v(fVx,fVy,fVz);return v;}