]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
suppressing warning for missing MC info when running on raw data
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 14 Jul 2011 22:08:24 +0000 (22:08 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 14 Jul 2011 22:08:24 +0000 (22:08 +0000)
HLT/TPCLib/AliHLTTPCClusterAccessHLTOUT.cxx

index f197d3dc7f046e78fc47cd20162a1c7d1b4db9a3..840fd3cecfcd2bfc46f74f20eadac90368fa130e 100644 (file)
@@ -169,14 +169,16 @@ int AliHLTTPCClusterAccessHLTOUT::ProcessClusters(const char* params)
       if (fVerbosity>0) AliInfo(Form("processing HLT clusters for slice %d partitions %d", slice, part));
       AliHLTUInt32_t spec=slice<<24 | slice<<16 | part<<8 | part;
       AliHLTTPCClusterMCDataList tpcClusterLabels;
+      bool bHaveLabels=false;
       if (pHLTOUT->SelectFirstDataBlock(AliHLTTPCDefinitions::fgkAliHLTDataTypeClusterMCInfo, spec)>=0) {
        iResult=ReadAliHLTTPCClusterMCData(pHLTOUT, tpcClusterLabels);
+       bHaveLabels=true;
       }
 
       if (pHLTOUT->SelectFirstDataBlock(AliHLTTPCDefinitions::fgkRawClustersDataType, spec)>=0) {
-       iResult=ReadAliHLTTPCRawClusterData(pHLTOUT, fClusters, &tpcClusterLabels);
+       iResult=ReadAliHLTTPCRawClusterData(pHLTOUT, fClusters, bHaveLabels?&tpcClusterLabels:NULL);
       } else if (pHLTOUT->SelectFirstDataBlock(AliHLTTPCDefinitions::fgkClustersDataType, spec)>=0) {
-       iResult=ReadAliHLTTPCClusterData(pHLTOUT, fClusters, &tpcClusterLabels);
+       iResult=ReadAliHLTTPCClusterData(pHLTOUT, fClusters, bHaveLabels?&tpcClusterLabels:NULL);
       }
     }
   }
@@ -301,7 +303,7 @@ int AliHLTTPCClusterAccessHLTOUT::ReadAliHLTTPCClusterData(AliHLTOUT* pHLTOUT, T
        }
       }
     }
-    if (fVerbosity>0) AliInfo(Form("converted %d cluster(s) from block 0x%08x", nSpacepoints, specification));
+    if (fVerbosity>0) AliInfo(Form("converted %d cluster(s) from block %s 0x%08x", nSpacepoints, AliHLTComponent::DataType2Text(dt).c_str(), specification));
   } while (pHLTOUT->SelectNextDataBlock()>=0);
   return iResult;
 }
@@ -350,6 +352,7 @@ int AliHLTTPCClusterAccessHLTOUT::ReadAliHLTTPCRawClusterData(AliHLTOUT* pHLTOUT
        AliError("invalid object type, expecting AliTPCclusterMI");
        break; // this is a problem of all objects
       }
+      if (fVerbosity>1) AliInfo(Form("cluster padrow %d (slice %d partition %d)", clusters[i].GetPadRow(), slice, partition));
       if (clusters[i].GetPadRow()<rowOffset) {
        AliError(Form("invalid row number %d, expecting minimum row number %d for slice %d partition %d", clusters[i].GetPadRow(), rowOffset, slice, partition));
       } else {