1 // $Id: AliHLTModulePreprocessor.cxx 23039 2007-12-13 20:53:02Z richterm $
3 //**************************************************************************
4 //* This file is property of and copyright by the ALICE HLT Project *
5 //* ALICE Experiment at CERN, All rights reserved. *
7 //* Primary Authors: Matthias Richter <Matthias.Richter@ift.uib.no> *
8 //* for The ALICE HLT Project. *
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 //**************************************************************************
20 * @file AliHLTModulePreprocessor.cxx
21 * @author Matthias Richter
23 * @brief Base class for HLT module preprocessors
27 #include "AliHLTModulePreprocessor.h"
28 #include "AliHLTShuttleInterface.h"
30 ClassImp(AliHLTModulePreprocessor)
32 AliHLTModulePreprocessor::AliHLTModulePreprocessor()
36 // see header file for class documentation
38 // refer to README to build package
40 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
43 AliHLTModulePreprocessor::~AliHLTModulePreprocessor()
45 // see header file for function documentation
48 void AliHLTModulePreprocessor::SetShuttleInterface(AliHLTShuttleInterface* pInterface)
50 assert(fpInterface==NULL || fpInterface==pInterface || pInterface==NULL);
51 fpInterface=pInterface;
54 Int_t AliHLTModulePreprocessor::GetRun()
56 // see header file for function documentation
59 if (!fpInterface) return 0;
60 return fpInterface->PreprocessorGetRun();
63 UInt_t AliHLTModulePreprocessor::GetStartTime()
65 // see header file for function documentation
68 if (!fpInterface) return 0;
69 return fpInterface->PreprocessorGetStartTime();
72 UInt_t AliHLTModulePreprocessor::GetEndTime()
74 // see header file for function documentation
77 if (!fpInterface) return 0;
78 return fpInterface->PreprocessorGetEndTime();
81 Bool_t AliHLTModulePreprocessor::Store(const char* pathLevel2, const char* pathLevel3, TObject* object,
82 AliCDBMetaData* metaData, Int_t validityStart, Bool_t validityInfinite)
84 // see header file for function documentation
87 if (!fpInterface) return 0;
88 return fpInterface->PreprocessorStore(pathLevel2, pathLevel3, object, metaData, validityStart, validityInfinite);
91 Bool_t AliHLTModulePreprocessor::StoreReferenceData(const char* pathLevel2, const char* pathLevel3, TObject* object,
92 AliCDBMetaData* metaData)
94 // see header file for function documentation
97 if (!fpInterface) return 0;
98 return fpInterface->PreprocessorStoreReferenceData(pathLevel2, pathLevel3, object, metaData);
101 Bool_t AliHLTModulePreprocessor::StoreReferenceFile(const char* localFile, const char* gridFileName)
103 // see header file for function documentation
106 if (!fpInterface) return 0;
107 return fpInterface->PreprocessorStoreReferenceFile(localFile, gridFileName);
110 Bool_t AliHLTModulePreprocessor::StoreRunMetadataFile(const char* localFile, const char* gridFileName)
112 // see header file for function documentation
115 if (!fpInterface) return 0;
116 return fpInterface->PreprocessorStoreRunMetadataFile(localFile, gridFileName);
119 const char* AliHLTModulePreprocessor::GetFile(Int_t system, const char* id, const char* source)
121 // see header file for function documentation
124 if (!fpInterface) return 0;
125 return fpInterface->PreprocessorGetFile(system, id, source);
128 TList* AliHLTModulePreprocessor::GetFileSources(Int_t system, const char* id)
130 // see header file for function documentation
133 if (!fpInterface) return 0;
134 return fpInterface->PreprocessorGetFileSources(system, id);
137 TList* AliHLTModulePreprocessor::GetFileIDs(Int_t system, const char* source)
139 // see header file for function documentation
142 if (!fpInterface) return 0;
143 return fpInterface->PreprocessorGetFileIDs(system, source);
146 const char* AliHLTModulePreprocessor::GetRunParameter(const char* param)
148 // see header file for function documentation
151 if (!fpInterface) return 0;
152 return fpInterface->PreprocessorGetRunParameter(param);
155 AliCDBEntry* AliHLTModulePreprocessor::GetFromOCDB(const char* pathLevel2, const char* pathLevel3)
157 // see header file for function documentation
160 if (!fpInterface) return 0;
161 return fpInterface->PreprocessorGetFromOCDB(pathLevel2, pathLevel3);
164 const char* AliHLTModulePreprocessor::GetRunType()
166 // see header file for function documentation
169 if (!fpInterface) return 0;
170 return fpInterface->PreprocessorGetRunType();
173 void AliHLTModulePreprocessor::Log(const char* message)
175 // see header file for function documentation
178 if (!fpInterface) return;
179 fpInterface->PreprocessorLog(message);