]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
printing benchmark message only if input contains clusters
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 7 Jun 2012 21:54:14 +0000 (21:54 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 7 Jun 2012 21:54:14 +0000 (21:54 +0000)
HLT/TPCLib/comp/AliHLTTPCDataCompressionComponent.cxx
HLT/TPCLib/comp/AliHLTTPCDataCompressionComponent.h

index eeed6e85e5df34e6d0c2d3d5083b4f60fee24bbb..51c569d4cee664e7bfe893a663975a0e8edf72d1 100644 (file)
@@ -1,6 +1,6 @@
 // $Id$
 //**************************************************************************
-//* This file is property of and copyright by the ALICE HLT Project        * 
+//* This file is property of and copyright by the                          * 
 //* ALICE Experiment at CERN, All rights reserved.                         *
 //*                                                                        *
 //* Primary Authors: Matthias Richter <Matthias.Richter@ift.uib.no>        *
@@ -94,8 +94,8 @@ void AliHLTTPCDataCompressionComponent::GetInputDataTypes( AliHLTComponentDataTy
 {
   /// inherited from AliHLTComponent: list of data types in the vector reference
   tgtList.clear();
-  tgtList.push_back(AliHLTTPCDefinitions::fgkHWClustersDataType);
-  tgtList.push_back(AliHLTTPCDefinitions::fgkClustersDataType);
+  tgtList.push_back(AliHLTTPCDefinitions::HWClustersDataType());
+  tgtList.push_back(AliHLTTPCDefinitions::ClustersDataType());
   tgtList.push_back(kAliHLTDataTypeTrack|kAliHLTDataOriginTPC);
 }
 
@@ -489,7 +489,7 @@ int AliHLTTPCDataCompressionComponent::DoEvent( const AliHLTComponentEventData&
   else compressionFactor=0.;
   if (fHistoCompFactor) fHistoCompFactor->Fill(compressionFactor);
 
-  if (GetBenchmarkInstance()) {
+  if (GetBenchmarkInstance() && allClusters>0) {
     GetBenchmarkInstance()->Stop(0);
     if (fDeflaterMode!=3) {
       HLTBenchmark("%s - compression factor %.2f", GetBenchmarkInstance()->GetStatistics(), compressionFactor);
index 1679eccb82ca3bb4fcc89825b023f8a3e7a0f232..f24cc82858908ce43330727cbeeb07bd197addf3 100644 (file)
@@ -2,7 +2,7 @@
 // $Id$
 #ifndef ALIHLTTPCDATACOMPRESSIONCOMPONENT_H
 #define ALIHLTTPCDATACOMPRESSIONCOMPONENT_H
-//* This file is property of and copyright by the ALICE HLT Project        * 
+//* This file is property of and copyright by the                          * 
 //* ALICE Experiment at CERN, All rights reserved.                         *
 //* See cxx source for full Copyright notice                               *
 
@@ -41,10 +41,15 @@ class TH1F;
  * Component ID: \b TPCDataCompressor      <br>
  * Library: \b libAliHLTTPC.so     <br>
  * Input Data Types:  <br>
- *  -  AliHLTTPCDefinitions::fgkHWClustersDataType
- *  -  AliHLTTPCDefinitions::fgkClustersDataType
+ *  -  AliHLTTPCDefinitions::HWClustersDataType()
+ *  -  AliHLTTPCDefinitions::ClustersDataType()
  *  -  kAliHLTDataTypeTrack|kAliHLTDataOriginTPC
- * Output Data Types: none <br>
+ * Output Data Types: <br>
+ *  -  AliHLTTPCDefinitions::RemainingClustersCompressedDataType());
+ *  -  AliHLTTPCDefinitions::RemainingClusterIdsDataType());    
+ *  -  AliHLTTPCDefinitions::ClusterIdTracksDataType()
+ *  -  AliHLTTPCDefinitions::ClusterTracksCompressedDataType()
+ *  -  AliHLTTPCDefinitions::RawClustersDataType());            
  *
  * <h2>Data Formats</h2>
  * Two formats for compressed clusters can be used.