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 a8a4469..c72ca54 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 e45972e..3e6ef21 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;}