]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/TPCLib/AliHLTTPCDigitDumpComponent.cxx
added DigitDumpComponent and AltroChannelSelector
[u/mrichter/AliRoot.git] / HLT / TPCLib / AliHLTTPCDigitDumpComponent.cxx
1 // $Id$
2
3 /**************************************************************************
4  * This file is property of and copyright by the ALICE HLT Project        * 
5  * ALICE Experiment at CERN, All rights reserved.                         *
6  *                                                                        *
7  * Primary Authors: Matthias Richter <Matthias.Richter@ift.uib.no>        *
8  *                  for The ALICE HLT Project.                            *
9  *                                                                        *
10  * Permission to use, copy, modify and distribute this software and its   *
11  * documentation strictly for non-commercial purposes is hereby granted   *
12  * without fee, provided that the above copyright notice appears in all   *
13  * copies and that both the copyright notice and this permission notice   *
14  * appear in the supporting documentation. The authors make no claims     *
15  * about the suitability of this software for any purpose. It is          *
16  * provided "as is" without express or implied warranty.                  *
17  **************************************************************************/
18
19 /** @file   AliHLTTPCDigitDumpComponent.cxx
20     @author Matthias Richter
21     @date   
22     @brief  Special file writer converting TPC digit input to ASCII. */
23
24 // see header file for class documentation
25 // or
26 // refer to README to build package
27 // or
28 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
29
30 #include "AliHLTTPCDigitDumpComponent.h"
31
32 /** ROOT macro for the implementation of ROOT specific class methods */
33 ClassImp(AliHLTTPCDigitDumpComponent)
34
35 AliHLTTPCDigitDumpComponent::AliHLTTPCDigitDumpComponent()
36   :
37   AliHLTFileWriter()
38 {
39   // see header file for class documentation
40   // or
41   // refer to README to build package
42   // or
43   // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
44 }
45
46 AliHLTTPCDigitDumpComponent::~AliHLTTPCDigitDumpComponent()
47 {
48   // see header file for class documentation
49 }
50
51 const char* AliHLTTPCDigitDumpComponent::GetComponentID()
52 {
53   // see header file for class documentation
54   return "TPCDigitDump";
55 }
56
57 void AliHLTTPCDigitDumpComponent::GetInputDataTypes( vector<AliHLTComponentDataType>& list)
58 {
59   // see header file for class documentation
60   list.clear();
61   list.push_back(kAliHLTAnyDataType);
62 }
63
64 AliHLTComponent* AliHLTTPCDigitDumpComponent::Spawn()
65 {
66   // see header file for class documentation
67   return new AliHLTTPCDigitDumpComponent;
68 }
69
70 int AliHLTTPCDigitDumpComponent::InitWriter()
71 {
72   // see header file for class documentation
73   return 0;
74 }
75
76 int AliHLTTPCDigitDumpComponent::ScanArgument(int argc, const char** argv)
77 {
78   // see header file for class documentation
79   int iResult=0;
80   TString argument="";
81   for (int i=0; i<argc && iResult>=0; i++) {
82     argument=argv[i];
83     if (argument.IsNull()) continue;
84
85     //
86     if (argument.CompareTo("-whatsoever")==0) {
87     } else {
88       iResult=-EINVAL;
89     }
90   }
91
92   return iResult;
93 }
94
95 int AliHLTTPCDigitDumpComponent::CloseWriter()
96 {
97   // see header file for class documentation
98   return 0;
99 }
100
101 int AliHLTTPCDigitDumpComponent::DumpEvent( const AliHLTComponentEventData& evtData,
102                          const AliHLTComponentBlockData* blocks, 
103                          AliHLTComponentTriggerData& trigData )
104 {
105   // see header file for class documentation
106   int iResult=0;
107   return iResult;
108 }