Small fixes. Clean-up.
authormarkus <markus@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 8 Oct 2007 13:13:24 +0000 (13:13 +0000)
committermarkus <markus@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 8 Oct 2007 13:13:24 +0000 (13:13 +0000)
STEER/AliAODTracklets.cxx
STEER/AliAODTracklets.h

index 955f5eb..82892d1 100644 (file)
@@ -43,8 +43,10 @@ void AliAODTracklets::CreateContainer(Int_t nTracks)
   
   fNTracks = nTracks;
 
-  if (fNTracks <= 0)
+  if (fNTracks <= 0) {
+    fNTracks = 0;
     return;
+  }
 
   fTheta = new Double32_t[fNTracks];
   fPhi = new Double32_t[fNTracks];
index 7f57aed..8a5b939 100644 (file)
@@ -34,11 +34,11 @@ class AliAODTracklets : public TNamed
   inline Int_t   GetLabel(Int_t i) const;
 
  protected:
-  Int_t    fNTracks;      // Number of tracklets
+  Int_t      fNTracks;       // Number of tracklets
   Double32_t *fTheta;        //[fNTracks] array with theta values
   Double32_t *fPhi;          //[fNTracks] array with phi values
   Double32_t *fDeltaPhi;     //[fNTracks] array with delta phi values
-  Int_t   *fLabels;       //[fNTracks] array with labels of tracklets
+  Int_t      *fLabels;       //[fNTracks] array with labels of tracklets
 
  private:
   AliAODTracklets(const AliAODTracklets& evt);