fix warnings
authorsnelling <snelling@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 1 Jul 2010 07:09:51 +0000 (07:09 +0000)
committersnelling <snelling@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 1 Jul 2010 07:09:51 +0000 (07:09 +0000)
PWG2/FLOW/AliFlowCommon/AliFlowEventSimple.cxx
PWG2/FLOW/AliFlowCommon/AliFlowTrackSimple.cxx
PWG2/FLOW/AliFlowTasks/AliFlowTrack.cxx

index 3d57e3f..232c0a6 100644 (file)
@@ -649,10 +649,13 @@ void AliFlowEventSimple::DefineDeadZone( Double_t etaMin,
 Int_t AliFlowEventSimple::CleanUpDeadTracks()
 {
   //remove tracks that have no flow tags set and cleanup the container
+  //returns number of cleaned tracks
+  Int_t ncleaned=0;
   for (Int_t i=0; i<fNumberOfTracks; i++)
   {
     AliFlowTrackSimple* track = static_cast<AliFlowTrackSimple*>(fTrackCollection->At(i));
-    if (track->IsDead()) delete track;
+    if (track->IsDead()) {delete track;ncleaned++;}
   }
   fTrackCollection->Compress(); //clean up empty slots
+  return ncleaned;
 }
index 246eade..5e607e4 100644 (file)
@@ -79,7 +79,7 @@ AliFlowTrackSimple::AliFlowTrackSimple(const AliFlowTrackSimple& aTrack):
 }
 
 //-----------------------------------------------------------------------
-AliFlowTrackSimple* AliFlowTrackSimple::Clone(const char* option) const
+AliFlowTrackSimple* AliFlowTrackSimple::Clone(const char* /*option*/) const
 {
   //clone "constructor"
   return new AliFlowTrackSimple(*this);
@@ -203,7 +203,7 @@ void AliFlowTrackSimple::AddFlow( Double_t v1,
 }
 
 //______________________________________________________________________________
-void AliFlowTrackSimple::Print( Option_t* option ) const
+void AliFlowTrackSimple::Print( Option_t* /*option*/ ) const
 {
   //print stuff
   printf("Phi: %.3f, Eta: %+.3f, Pt: %.3f",fPhi,fEta,fPt);
index 7289cfb..90245cf 100644 (file)
@@ -52,7 +52,7 @@ AliFlowTrack::AliFlowTrack(const AliFlowTrack& aTrack):
 }
 
 //-----------------------------------------------------------------------
-AliFlowTrack* AliFlowTrack::Clone(const char* option) const
+AliFlowTrack* AliFlowTrack::Clone(const char* /*option*/) const
 {
   //clone "constructor"
   return new AliFlowTrack(*this);