]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/BASE/AliHLTModulePreprocessor.cxx
Minor cleanup of code.
[u/mrichter/AliRoot.git] / HLT / BASE / AliHLTModulePreprocessor.cxx
CommitLineData
12ec5482 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"
310c7637 28#include "AliHLTShuttleInterface.h"
12ec5482 29
30ClassImp(AliHLTModulePreprocessor)
31
32AliHLTModulePreprocessor::AliHLTModulePreprocessor()
33 :
310c7637 34 fpInterface(NULL)
12ec5482 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
43AliHLTModulePreprocessor::~AliHLTModulePreprocessor()
44{
45 // see header file for function documentation
46}
47
310c7637 48void AliHLTModulePreprocessor::SetShuttleInterface(AliHLTShuttleInterface* pInterface)
12ec5482 49{
310c7637 50 assert(fpInterface==NULL || fpInterface==pInterface || pInterface==NULL);
51 fpInterface=pInterface;
12ec5482 52}
53
54Int_t AliHLTModulePreprocessor::GetRun()
55{
56 // see header file for function documentation
57
310c7637 58 assert(fpInterface);
59 if (!fpInterface) return 0;
60 return fpInterface->PreprocessorGetRun();
12ec5482 61}
62
63UInt_t AliHLTModulePreprocessor::GetStartTime()
64{
65 // see header file for function documentation
66
310c7637 67 assert(fpInterface);
68 if (!fpInterface) return 0;
69 return fpInterface->PreprocessorGetStartTime();
12ec5482 70}
71
72UInt_t AliHLTModulePreprocessor::GetEndTime()
73{
74 // see header file for function documentation
75
310c7637 76 assert(fpInterface);
77 if (!fpInterface) return 0;
78 return fpInterface->PreprocessorGetEndTime();
12ec5482 79}
80
81Bool_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
310c7637 86 assert(fpInterface);
87 if (!fpInterface) return 0;
88 return fpInterface->PreprocessorStore(pathLevel2, pathLevel3, object, metaData, validityStart, validityInfinite);
12ec5482 89}
90
91Bool_t AliHLTModulePreprocessor::StoreReferenceData(const char* pathLevel2, const char* pathLevel3, TObject* object,
92 AliCDBMetaData* metaData)
93{
94 // see header file for function documentation
95
310c7637 96 assert(fpInterface);
97 if (!fpInterface) return 0;
98 return fpInterface->PreprocessorStoreReferenceData(pathLevel2, pathLevel3, object, metaData);
12ec5482 99}
100
101Bool_t AliHLTModulePreprocessor::StoreReferenceFile(const char* localFile, const char* gridFileName)
102{
103 // see header file for function documentation
104
310c7637 105 assert(fpInterface);
106 if (!fpInterface) return 0;
107 return fpInterface->PreprocessorStoreReferenceFile(localFile, gridFileName);
12ec5482 108}
109
110Bool_t AliHLTModulePreprocessor::StoreRunMetadataFile(const char* localFile, const char* gridFileName)
111{
112 // see header file for function documentation
113
310c7637 114 assert(fpInterface);
115 if (!fpInterface) return 0;
116 return fpInterface->PreprocessorStoreRunMetadataFile(localFile, gridFileName);
12ec5482 117}
118
119const char* AliHLTModulePreprocessor::GetFile(Int_t system, const char* id, const char* source)
120{
121 // see header file for function documentation
122
310c7637 123 assert(fpInterface);
124 if (!fpInterface) return 0;
125 return fpInterface->PreprocessorGetFile(system, id, source);
12ec5482 126}
127
128TList* AliHLTModulePreprocessor::GetFileSources(Int_t system, const char* id)
129{
130 // see header file for function documentation
131
310c7637 132 assert(fpInterface);
133 if (!fpInterface) return 0;
134 return fpInterface->PreprocessorGetFileSources(system, id);
12ec5482 135}
136
137TList* AliHLTModulePreprocessor::GetFileIDs(Int_t system, const char* source)
138{
139 // see header file for function documentation
140
310c7637 141 assert(fpInterface);
142 if (!fpInterface) return 0;
143 return fpInterface->PreprocessorGetFileIDs(system, source);
12ec5482 144}
145
146const char* AliHLTModulePreprocessor::GetRunParameter(const char* param)
147{
148 // see header file for function documentation
149
310c7637 150 assert(fpInterface);
151 if (!fpInterface) return 0;
152 return fpInterface->PreprocessorGetRunParameter(param);
12ec5482 153}
154
155AliCDBEntry* AliHLTModulePreprocessor::GetFromOCDB(const char* pathLevel2, const char* pathLevel3)
156{
157 // see header file for function documentation
158
310c7637 159 assert(fpInterface);
160 if (!fpInterface) return 0;
161 return fpInterface->PreprocessorGetFromOCDB(pathLevel2, pathLevel3);
12ec5482 162}
163
164const char* AliHLTModulePreprocessor::GetRunType()
165{
166 // see header file for function documentation
167
310c7637 168 assert(fpInterface);
169 if (!fpInterface) return 0;
170 return fpInterface->PreprocessorGetRunType();
12ec5482 171}
172
173void AliHLTModulePreprocessor::Log(const char* message)
174{
175 // see header file for function documentation
176
310c7637 177 assert(fpInterface);
178 if (!fpInterface) return;
179 fpInterface->PreprocessorLog(message);
12ec5482 180}