]>
Commit | Line | Data |
---|---|---|
c4228ec4 | 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 AliHLTOUTComponent.cxx | |
20 | @author Matthias Richter | |
21 | @date | |
22 | @brief The HLTOUT data sink component similar to HLTOUT nodes */ | |
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 | #if __GNUC__>= 3 | |
31 | using namespace std; | |
32 | #endif | |
33 | ||
34 | #include "AliHLTOUTComponent.h" | |
35 | ||
36 | /** ROOT macro for the implementation of ROOT specific class methods */ | |
37 | ClassImp(AliHLTOUTComponent) | |
38 | ||
39 | AliHLTOUTComponent::AliHLTOUTComponent() | |
40 | : | |
41 | AliHLTOfflineDataSink() | |
42 | { | |
43 | // see header file for class documentation | |
44 | // or | |
45 | // refer to README to build package | |
46 | // or | |
47 | // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt | |
48 | } | |
49 | ||
50 | AliHLTOUTComponent::~AliHLTOUTComponent() | |
51 | { | |
52 | // see header file for class documentation | |
53 | ||
54 | // file list and file name list are owner of their objects and | |
55 | // delete all the objects | |
56 | } | |
57 | ||
58 | const char* AliHLTOUTComponent::GetComponentID() | |
59 | { | |
60 | // see header file for class documentation | |
61 | return "HLTOUT"; | |
62 | } | |
63 | ||
64 | void AliHLTOUTComponent::GetInputDataTypes( vector<AliHLTComponentDataType>& list) | |
65 | { | |
66 | // see header file for class documentation | |
67 | list.clear(); | |
68 | list.push_back(kAliHLTAnyDataType); | |
69 | } | |
70 | ||
71 | AliHLTComponent* AliHLTOUTComponent::Spawn() | |
72 | { | |
73 | // see header file for class documentation | |
74 | return new AliHLTOUTComponent; | |
75 | } | |
76 | ||
77 | int AliHLTOUTComponent::DoInit( int argc, const char** argv ) | |
78 | { | |
79 | // see header file for class documentation | |
80 | int iResult=0; | |
81 | TString argument=""; | |
82 | int bMissingParam=0; | |
83 | for (int i=0; i<argc && iResult>=0; i++) { | |
84 | argument=argv[i]; | |
85 | if (argument.IsNull()) continue; | |
86 | ||
87 | { | |
88 | HLTError("unknown argument %s", argument.Data()); | |
89 | break; | |
90 | } | |
91 | } | |
92 | if (bMissingParam) { | |
93 | HLTError("missing parameter for argument %s", argument.Data()); | |
94 | iResult=-EINVAL; | |
95 | } | |
96 | if (iResult>=0) { | |
97 | } | |
98 | ||
99 | return iResult; | |
100 | } | |
101 | ||
102 | int AliHLTOUTComponent::DoDeinit() | |
103 | { | |
104 | // see header file for class documentation | |
105 | int iResult=0; | |
106 | ||
107 | return iResult; | |
108 | } | |
109 | ||
110 | int AliHLTOUTComponent::DumpEvent( const AliHLTComponentEventData& evtData, | |
111 | const AliHLTComponentBlockData* blocks, | |
112 | AliHLTComponentTriggerData& /*trigData*/ ) | |
113 | { | |
114 | // see header file for class documentation | |
115 | int iResult=0; | |
116 | HLTInfo("write %d output blocks", evtData.fBlockCnt); | |
117 | for (int n=0; n<(int)evtData.fBlockCnt; n++ ) { | |
118 | ||
119 | } | |
120 | ||
121 | return iResult; | |
122 | } | |
123 | ||
124 | int AliHLTOUTComponent::FillESD(int /*eventNo*/, AliRunLoader* /*runLoader*/, AliESDEvent* /*esd*/) | |
125 | { | |
126 | // see header file for class documentation | |
127 | int iResult=0; | |
128 | return iResult; | |
129 | } |