]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/BASE/AliHLTModulePreprocessor.cxx
- workaround for copying and merging of ESDs: The HLTOUT contains ESDs for every...
[u/mrichter/AliRoot.git] / HLT / BASE / AliHLTModulePreprocessor.cxx
1 // $Id: AliHLTModulePreprocessor.cxx 23039 2007-12-13 20:53:02Z richterm $
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 /**
20  * @file   AliHLTModulePreprocessor.cxx
21  * @author Matthias Richter
22  * @date   2008-01-22
23  * @brief  Base class for HLT module preprocessors
24  */
25
26 #include <cassert>
27 #include "AliHLTModulePreprocessor.h"
28 #include "AliHLTShuttleInterface.h"
29
30 ClassImp(AliHLTModulePreprocessor)
31
32 AliHLTModulePreprocessor::AliHLTModulePreprocessor() 
33   :
34   fpInterface(NULL)
35 {
36   // see header file for class documentation
37   // or
38   // refer to README to build package
39   // or
40   // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
41 }
42
43 AliHLTModulePreprocessor::~AliHLTModulePreprocessor() 
44 {
45   // see header file for function documentation
46 }
47
48 void AliHLTModulePreprocessor::SetShuttleInterface(AliHLTShuttleInterface* pInterface)
49 {
50   assert(fpInterface==NULL || fpInterface==pInterface || pInterface==NULL);
51   fpInterface=pInterface;
52 }
53
54 Int_t AliHLTModulePreprocessor::GetRun()
55 {
56   // see header file for function documentation
57
58   assert(fpInterface);
59   if (!fpInterface) return 0;
60   return fpInterface->PreprocessorGetRun();
61 }
62
63 UInt_t AliHLTModulePreprocessor::GetStartTime()
64 {
65   // see header file for function documentation
66
67   assert(fpInterface);
68   if (!fpInterface) return 0;
69   return fpInterface->PreprocessorGetStartTime();
70 }
71
72 UInt_t AliHLTModulePreprocessor::GetEndTime()
73 {
74   // see header file for function documentation
75
76   assert(fpInterface);
77   if (!fpInterface) return 0;
78   return fpInterface->PreprocessorGetEndTime();
79 }
80
81 Bool_t AliHLTModulePreprocessor::Store(const char* pathLevel2, const char* pathLevel3, TObject* object,
82                                  AliCDBMetaData* metaData, Int_t validityStart, Bool_t validityInfinite)
83 {
84   // see header file for function documentation
85
86   assert(fpInterface);
87   if (!fpInterface) return 0;
88   return fpInterface->PreprocessorStore(pathLevel2, pathLevel3, object, metaData, validityStart, validityInfinite);
89 }
90
91 Bool_t AliHLTModulePreprocessor::StoreReferenceData(const char* pathLevel2, const char* pathLevel3, TObject* object,
92                                               AliCDBMetaData* metaData)
93 {
94   // see header file for function documentation
95
96   assert(fpInterface);
97   if (!fpInterface) return 0;
98   return fpInterface->PreprocessorStoreReferenceData(pathLevel2, pathLevel3, object, metaData);
99 }
100
101 Bool_t AliHLTModulePreprocessor::StoreReferenceFile(const char* localFile, const char* gridFileName)
102 {
103   // see header file for function documentation
104
105   assert(fpInterface);
106   if (!fpInterface) return 0;
107   return fpInterface->PreprocessorStoreReferenceFile(localFile, gridFileName);
108 }
109
110 Bool_t AliHLTModulePreprocessor::StoreRunMetadataFile(const char* localFile, const char* gridFileName)
111 {
112   // see header file for function documentation
113
114   assert(fpInterface);
115   if (!fpInterface) return 0;
116   return fpInterface->PreprocessorStoreRunMetadataFile(localFile, gridFileName);
117 }
118     
119 const char* AliHLTModulePreprocessor::GetFile(Int_t system, const char* id, const char* source)
120 {
121   // see header file for function documentation
122
123   assert(fpInterface);
124   if (!fpInterface) return 0;
125   return fpInterface->PreprocessorGetFile(system, id, source);
126 }
127
128 TList* AliHLTModulePreprocessor::GetFileSources(Int_t system, const char* id)
129 {
130   // see header file for function documentation
131
132   assert(fpInterface);
133   if (!fpInterface) return 0;
134   return fpInterface->PreprocessorGetFileSources(system, id);
135 }
136
137 TList* AliHLTModulePreprocessor::GetFileIDs(Int_t system, const char* source)
138 {
139   // see header file for function documentation
140
141   assert(fpInterface);
142   if (!fpInterface) return 0;
143   return fpInterface->PreprocessorGetFileIDs(system, source);
144 }
145
146 const char* AliHLTModulePreprocessor::GetRunParameter(const char* param)
147 {
148   // see header file for function documentation
149
150   assert(fpInterface);
151   if (!fpInterface) return 0;
152   return fpInterface->PreprocessorGetRunParameter(param);
153 }
154
155 AliCDBEntry* AliHLTModulePreprocessor::GetFromOCDB(const char* pathLevel2, const char* pathLevel3)
156 {
157   // see header file for function documentation
158
159   assert(fpInterface);
160   if (!fpInterface) return 0;
161   return fpInterface->PreprocessorGetFromOCDB(pathLevel2, pathLevel3);
162 }
163
164 const char* AliHLTModulePreprocessor::GetRunType()
165 {
166   // see header file for function documentation
167
168   assert(fpInterface);
169   if (!fpInterface) return 0;
170   return fpInterface->PreprocessorGetRunType();
171 }
172
173 void AliHLTModulePreprocessor::Log(const char* message)
174 {
175   // see header file for function documentation
176
177   assert(fpInterface);
178   if (!fpInterface) return;
179   fpInterface->PreprocessorLog(message);
180 }