]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/TPCLib/AliHLTTPCDigitDumpComponent.h
bugfix DigitReaderPacked: raw reader NextEvent added; more options in TPCDigitDumpCom...
[u/mrichter/AliRoot.git] / HLT / TPCLib / AliHLTTPCDigitDumpComponent.h
CommitLineData
3e6ec852 1//-*- Mode: C++ -*-
2// @(#) $Id$
3
4#ifndef ALIHLTTPCDIGITDUMPCOMPONENT_H
5#define ALIHLTTPCDIGITDUMPCOMPONENT_H
6/* This file is property of and copyright by the ALICE HLT Project *
7 * ALICE Experiment at CERN, All rights reserved. *
8 * See cxx source for full Copyright notice */
9
10/** @file AliHLTTPCDigitDumpComponent.h
11 @author Matthias Richter
12 @date
13 @brief Special file writer converting TPC digit input to ASCII.
14*/
15
16// see below for class documentation
17// or
18// refer to README to build package
19// or
20// visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
21
22#include "AliHLTFileWriter.h"
23
24/**
25 * @class AliHLTTPCDigitDumpComponent
26 * A converter for digit data of the TPC input to ASCII output.
32a35f9f 27 * Data blocks of type @ref kAliHLTDataTypeDDLRaw and origin 'TPC ' is docoded
28 * written in readable ASCII format to a file.
3e6ec852 29 *
30 * Component ID: \b TPCDigitDump <br>
31 * Library: \b libAliHLTTPC
32 *
33 * See AliHLTFileWriter for arguments, further specific options
34 * Mandatory arguments: <br>
35 * <!-- NOTE: ignore the \li. <i> and </i>: it's just doxygen formating -->
36 *
37 * Optional arguments: <br>
38 * <!-- NOTE: ignore the \li. <i> and </i>: it's just doxygen formating -->
8c27b00a 39 * \li -rawreadermode <i> mode </i> <br>
e962f438 40 * data mode of the <b>AliHLTTPCDigitReaderRaw</b>
8c27b00a 41 * \li -digitreader <i> reader </i> <br>
42 * type of the digit reader: <i>unpacked, packed, raw</i>
70d0b23e 43 * \li -rcutrailersize <i> size </i> <br>
44 * size of the RCU trailer in 32bit words (default 2)
45 * \li -unsorted <br>
46 * unsorted mode of digit readers (default sorted)
47 * \li -sorted <br>
48 * sorted mode of digit readers (default)
3e6ec852 49 *
50 */
51class AliHLTTPCDigitDumpComponent : public AliHLTFileWriter {
52 public:
53 /** default constructor */
54 AliHLTTPCDigitDumpComponent();
55 /** destructor */
56 virtual ~AliHLTTPCDigitDumpComponent();
57
58 // interface functions: property getters
59 virtual const char* GetComponentID();
60 virtual void GetInputDataTypes(AliHLTComponentDataTypeList& list);
61 virtual AliHLTComponent* Spawn();
62
63 protected:
64 // interface functions: processing
00b50bfa 65 int InitWriter();
66 int CloseWriter();
67 int DumpEvent( const AliHLTComponentEventData& evtData,
68 const AliHLTComponentBlockData* blocks,
69 AliHLTComponentTriggerData& trigData );
70 using AliHLTDataSink::DumpEvent;
71
72 int ScanArgument(int argc, const char** argv);
3e6ec852 73
3e6ec852 74 private:
75 /** copy constructor prohibited */
76 AliHLTTPCDigitDumpComponent(const AliHLTTPCDigitDumpComponent&);
77 /** assignment operator prohibited */
78 AliHLTTPCDigitDumpComponent& operator=(const AliHLTTPCDigitDumpComponent&);
79
8c27b00a 80 enum {
81 kDigitReaderInvalid,
82 kDigitReaderUnpacked,
83 kDigitReaderPacked,
84 kDigitReaderRaw
85 };
86
e1440dab 87 /** the mode for the DigitReaderRaw */
88 unsigned fRawreaderMode; //!transient
89
8c27b00a 90 /** the digit reader to use */
91 short fDigitReaderType; //!transient
92
70d0b23e 93 /** size of the RCU trailer in 32bit words */
94 short fRcuTrailerSize; //! transient
95
96 /** unsorted/sorted mode of digit readers */
97 bool fUnsorted; //!transient
98
3e6ec852 99 ClassDef(AliHLTTPCDigitDumpComponent, 0);
100};
101
102#endif