From b960733ad118bdfcf2d7654fe87c1795ee6c077a Mon Sep 17 00:00:00 2001 From: richterm Date: Thu, 7 Jun 2012 21:54:14 +0000 Subject: [PATCH] printing benchmark message only if input contains clusters --- .../comp/AliHLTTPCDataCompressionComponent.cxx | 8 ++++---- HLT/TPCLib/comp/AliHLTTPCDataCompressionComponent.h | 13 +++++++++---- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/HLT/TPCLib/comp/AliHLTTPCDataCompressionComponent.cxx b/HLT/TPCLib/comp/AliHLTTPCDataCompressionComponent.cxx index eeed6e85e5d..51c569d4cee 100644 --- a/HLT/TPCLib/comp/AliHLTTPCDataCompressionComponent.cxx +++ b/HLT/TPCLib/comp/AliHLTTPCDataCompressionComponent.cxx @@ -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 * @@ -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); diff --git a/HLT/TPCLib/comp/AliHLTTPCDataCompressionComponent.h b/HLT/TPCLib/comp/AliHLTTPCDataCompressionComponent.h index 1679eccb82c..f24cc828589 100644 --- a/HLT/TPCLib/comp/AliHLTTPCDataCompressionComponent.h +++ b/HLT/TPCLib/comp/AliHLTTPCDataCompressionComponent.h @@ -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
* Library: \b libAliHLTTPC.so
* Input Data Types:
- * - AliHLTTPCDefinitions::fgkHWClustersDataType - * - AliHLTTPCDefinitions::fgkClustersDataType + * - AliHLTTPCDefinitions::HWClustersDataType() + * - AliHLTTPCDefinitions::ClustersDataType() * - kAliHLTDataTypeTrack|kAliHLTDataOriginTPC - * Output Data Types: none
+ * Output Data Types:
+ * - AliHLTTPCDefinitions::RemainingClustersCompressedDataType()); + * - AliHLTTPCDefinitions::RemainingClusterIdsDataType()); + * - AliHLTTPCDefinitions::ClusterIdTracksDataType() + * - AliHLTTPCDefinitions::ClusterTracksCompressedDataType() + * - AliHLTTPCDefinitions::RawClustersDataType()); * *

Data Formats

* Two formats for compressed clusters can be used. -- 2.39.3