]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Possibility to get the number of clusters without getting the content (M.Ivanov)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 29 Jan 2004 09:38:58 +0000 (09:38 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 29 Jan 2004 09:38:58 +0000 (09:38 +0000)
STEER/AliESDtrack.cxx

index 11c5bbe5fbbd422d62687323bc4cda633d56c3b2..d172640df9d3de33e6ea3bb6c7100a28fd5f2a09 100644 (file)
@@ -405,7 +405,8 @@ Int_t AliESDtrack::GetTPCclusters(Int_t *idx) const {
   //---------------------------------------------------------------------
   // This function returns indices of the assgined ITS clusters 
   //---------------------------------------------------------------------
-  for (Int_t i=0; i<180; i++) idx[i]=fTPCindex[i];  // MI I prefer some constant
+  if (idx!=0)
+    for (Int_t i=0; i<180; i++) idx[i]=fTPCindex[i];  // MI I prefer some constant
   return fTPCncls;
 }
 
@@ -427,7 +428,8 @@ Int_t AliESDtrack::GetTRDclusters(UInt_t *idx) const {
   //---------------------------------------------------------------------
   // This function returns indices of the assgined TRD clusters 
   //---------------------------------------------------------------------
-  for (Int_t i=0; i<90; i++) idx[i]=fTRDindex[i];  // MI I prefer some constant
+  if (idx!=0)
+    for (Int_t i=0; i<90; i++) idx[i]=fTRDindex[i];  // MI I prefer some constant
   return fTRDncls;
 }