3 #ifndef ALIHLTTPCDATACOMPRESSIONMONITORCOMPONENT_H
4 #define ALIHLTTPCDATACOMPRESSIONMONITORCOMPONENT_H
5 //* This file is property of and copyright by the ALICE HLT Project *
6 //* ALICE Experiment at CERN, All rights reserved. *
7 //* See cxx source for full Copyright notice *
9 /// @file AliHLTTPCDataCompressionMonitorComponent.h
10 /// @author Matthias Richter
12 /// @brief TPC component for monitoring of data compression
15 #include "AliHLTProcessor.h"
18 class AliHLTTPCHWCFData;
23 * @class AliHLTTPCDataCompressionMonitorComponent
25 * <h2>General properties:</h2>
27 * Component ID: \b TPCDataCompressorMonitor <br>
28 * Library: \b libAliHLTTPC.so <br>
29 * Input Data Types: <br>
30 * Output Data Types: <br>
32 * <h2>Mandatory arguments:</h2>
33 * <!-- NOTE: ignore the \li. <i> and </i>: it's just doxygen formatting -->
35 * <h2>Optional arguments:</h2>
36 * <!-- NOTE: ignore the \li. <i> and </i>: it's just doxygen formatting -->
38 * <h2>Configuration:</h2>
39 * <!-- NOTE: ignore the \li. <i> and </i>: it's just doxygen formatting -->
41 * <h2>Default CDB entries:</h2>
43 * <h2>Performance:</h2>
45 * <h2>Memory consumption:</h2>
47 * <h2>Output size:</h2>
52 class AliHLTTPCDataCompressionMonitorComponent : public AliHLTProcessor {
54 /// standard constructor
55 AliHLTTPCDataCompressionMonitorComponent();
57 ~AliHLTTPCDataCompressionMonitorComponent();
59 /// inherited from AliHLTComponent: id of the component
60 virtual const char* GetComponentID();
62 /// inherited from AliHLTComponent: list of data types in the vector reference
63 void GetInputDataTypes( AliHLTComponentDataTypeList& );
65 /// inherited from AliHLTComponent: output data type of the component.
66 AliHLTComponentDataType GetOutputDataType();
68 /// inherited from AliHLTComponent: multiple output data types of the component.
69 int GetOutputDataTypes(AliHLTComponentDataTypeList& tgtList);
71 /// inherited from AliHLTComponent: output data size estimator
72 void GetOutputDataSize( unsigned long& constBase, double& inputMultiplier );
74 /// inherited from AliHLTComponent: spawn function.
75 virtual AliHLTComponent* Spawn();
83 /// inherited from AliHLTProcessor: data processing
84 int DoEvent( const AliHLTComponentEventData& evtData,
85 const AliHLTComponentBlockData* blocks,
86 AliHLTComponentTriggerData& trigData,
87 AliHLTUInt8_t* outputPtr,
89 AliHLTComponentBlockDataList& outputBlocks );
90 using AliHLTProcessor::DoEvent;
92 /// inherited from AliHLTComponent: component initialisation and argument scan.
93 int DoInit( int argc, const char** argv );
95 /// inherited from AliHLTComponent: component cleanup
98 /// inherited from AliHLTComponent: argument scan
99 int ScanConfigurationArgument(int argc, const char** argv);
102 AliHLTTPCDataCompressionMonitorComponent(const AliHLTTPCDataCompressionMonitorComponent&);
103 AliHLTTPCDataCompressionMonitorComponent& operator=(const AliHLTTPCDataCompressionMonitorComponent&);
105 AliHLTTPCHWCFData* fpHWClusterDecoder; //! data decoder for HW clusters
107 TH2* fHistoHWCFDataSize; //! hwcf data size vs. event size
108 TH2* fHistoHWCFReductionFactor; //! reduction factor vs. event size
109 TH2* fHistoNofClusters; //! number of clusters vs. event size
110 TString fHistogramFile; //! file to save histogram
113 int fVerbosity; //! verbosity for debug printout
114 unsigned fFlags; //! flags to indicate various conditions
116 ClassDef(AliHLTTPCDataCompressionMonitorComponent, 0)
119 #endif //ALIHLTTPCDATACOMPRESSIONMONITORCOMPONENT_H