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 **************************************************************************/
19 /** @file AliHLTSystem.cxx
20 @author Matthias Richter
22 @brief Implementation of HLT module management.
30 #include "AliHLTStdIncludes.h"
31 #include "AliHLTSystem.h"
32 #include "AliHLTComponentHandler.h"
33 #include "AliHLTComponent.h"
34 #include "AliHLTConfiguration.h"
35 #include "AliHLTConfigurationHandler.h"
36 #include "AliHLTTask.h"
37 #include "AliHLTModuleAgent.h"
38 #include "AliHLTOfflineInterface.h"
39 #include <TObjArray.h>
40 #include <TObjString.h>
41 #include <TStopwatch.h>
43 #include <TInterpreter.h>
45 /** HLT default component libraries */
46 const char* kHLTDefaultLibs[]= {
49 // "libAliHLTSample.so",
56 /** ROOT macro for the implementation of ROOT specific class methods */
57 ClassImp(AliHLTSystem)
59 AliHLTSystem::AliHLTSystem()
61 fpComponentHandler(new AliHLTComponentHandler()),
62 fpConfigurationHandler(new AliHLTConfigurationHandler()),
66 fStopwatches(new TObjArray),
70 // see header file for class documentation
72 // refer to README to build package
74 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
76 if (fgNofInstances++>0)
77 HLTWarning("multiple instances of AliHLTSystem, you should not use more than one at a time");
79 SetGlobalLoggingLevel(kHLTLogDefault);
80 if (fpComponentHandler) {
81 AliHLTComponentEnvironment env;
82 memset(&env, 0, sizeof(AliHLTComponentEnvironment));
83 env.fAllocMemoryFunc=AliHLTSystem::AllocMemory;
84 env.fLoggingFunc=NULL;
85 fpComponentHandler->SetEnvironment(&env);
86 InitAliLogFunc(fpComponentHandler);
87 fpComponentHandler->AnnounceVersion();
89 HLTFatal("can not create Component Handler");
91 if (fpConfigurationHandler) {
92 AliHLTConfiguration::GlobalInit(fpConfigurationHandler);
94 HLTFatal("can not create Configuration Handler");
98 AliHLTSystem::~AliHLTSystem()
100 // see header file for class documentation
103 AliHLTConfiguration::GlobalDeinit(fpConfigurationHandler);
104 if (fpConfigurationHandler) {
105 delete fpConfigurationHandler;
107 fpConfigurationHandler=NULL;
109 if (fpComponentHandler) {
110 delete fpComponentHandler;
112 fpComponentHandler=NULL;
115 int AliHLTSystem::fgNofInstances=0;
117 int AliHLTSystem::AddConfiguration(AliHLTConfiguration* pConf)
119 // see header file for class documentation
128 int AliHLTSystem::InsertConfiguration(AliHLTConfiguration* pConf, AliHLTConfiguration* pPrec)
130 // see header file for class documentation
142 int AliHLTSystem::DeleteConfiguration(AliHLTConfiguration* pConf)
144 // see header file for class documentation
153 int AliHLTSystem::BuildTaskList(const char* id)
155 // see header file for class documentation
158 if (fpConfigurationHandler) {
159 AliHLTConfiguration* pConf=fpConfigurationHandler->FindConfiguration(id);
161 iResult=BuildTaskList(pConf);
163 HLTError("unknown configuration \"%s\"", id);
175 int AliHLTSystem::BuildTaskList(AliHLTConfiguration* pConf)
177 // see header file for class documentation
180 AliHLTTask* pTask=NULL;
181 if ((pTask=FindTask(pConf->GetName()))!=NULL) {
182 if (pTask->GetConf()!=pConf) {
183 HLTError("configuration missmatch, there is already a task with configuration name \"%s\", but it is different. Most likely configuration %p is not registered properly", pConf->GetName(), pConf);
186 // task for this configuration exists, terminate
188 } else if (pConf->SourcesResolved(1)!=1) {
189 HLTError("configuration \"%s\" has unresolved sources, aborting ...", pConf->GetName());
192 pTask=new AliHLTTask(pConf);
197 static int iterationLevel=0;
198 if (pTask && iResult>=0) {
199 // check for circular dependencies
200 if ((iResult=pConf->FollowDependency(pConf->GetName()))>0) {
201 HLTError("detected circular dependency for configuration \"%s\"", pTask->GetName());
202 pTask->PrintDependencyTree(pTask->GetName(), 1/*use the configuration list*/);
203 HLTError("aborted ...");
207 // check whether all dependencies are already in the task list
208 // create the missing ones
209 // this step is an iterative process which calls this function again for the missing
210 // configurations, in order to avoid the currently processed task to be created
211 // again it is added to the list temporarily and removed afterwards
212 // This is of high importance to preserve the order of the tasks. Furthermore, the
213 // InsertTask method has to be used in order to set all the cross links right
214 fTaskList.Add(pTask);
215 AliHLTConfiguration* pDep=pConf->GetFirstSource();
216 while (pDep!=NULL && iResult>=0) {
217 HLTDebug("iteration %d: checking dependency %s (%p)", iterationLevel, pDep->GetName(), pDep);
218 if (FindTask(pDep->GetName())==NULL) {
219 HLTDebug("iteration %d: building task list for configuration %s (%p)", iterationLevel, pDep->GetName(), pDep);
221 iResult=BuildTaskList(pDep);
224 pDep=pConf->GetNextSource();
226 // remove the temporarily added task
227 fTaskList.Remove(pTask);
229 // insert the task and set the cross-links
231 HLTDebug("iteration %d: inserting task %s (%p)", iterationLevel, pTask->GetName(), pTask);
232 iResult=InsertTask(pTask);
245 int AliHLTSystem::CleanTaskList()
247 // see header file for class documentation
250 while ((lnk=fTaskList.LastLink())!=NULL) {
251 delete (lnk->GetObject());
252 fTaskList.Remove(lnk);
257 int AliHLTSystem::InsertTask(AliHLTTask* pTask)
259 // see header file for class documentation
261 TObjLink *lnk = NULL;
262 if ((iResult=pTask->CheckDependencies())>0)
263 lnk=fTaskList.FirstLink();
264 while (lnk && iResult>0) {
265 AliHLTTask* pCurr = (AliHLTTask*)lnk->GetObject();
266 //HLTDebug("checking \"%s\"", pCurr->GetName());
267 iResult=pTask->Depends(pCurr);
269 iResult=pTask->SetDependency(pCurr);
270 pCurr->SetTarget(pTask);
271 HLTDebug("set dependency \"%s\" for configuration \"%s\"", pCurr->GetName(), pTask->GetName());
273 if (pCurr->Depends(pTask)) {
274 // circular dependency
275 HLTError("circular dependency: can not resolve dependencies for configuration \"%s\"", pTask->GetName());
277 } else if ((iResult=pTask->CheckDependencies())>0) {
283 fTaskList.AddAfter(lnk, pTask);
285 fTaskList.AddFirst(pTask);
287 HLTDebug("task \"%s\" (%p) inserted (size %d)", pTask->GetName(), pTask, sizeof(AliHLTTask));
288 } else if (iResult>0) {
289 HLTError("can not resolve dependencies for configuration \"%s\" (%d unresolved)", pTask->GetName(), iResult);
295 AliHLTTask* AliHLTSystem::FindTask(const char* id)
297 // see header file for class documentation
298 AliHLTTask* pTask=NULL;
300 pTask=dynamic_cast<AliHLTTask*>(fTaskList.FindObject(id));
305 void AliHLTSystem::PrintTaskList()
307 // see header file for class documentation
308 HLTLogKeyword("task list");
309 TObjLink *lnk = NULL;
310 HLTMessage("Task List");
311 lnk=fTaskList.FirstLink();
313 TObject* obj=lnk->GetObject();
315 HLTMessage(" %s - status:", obj->GetName());
316 AliHLTTask* pTask=(AliHLTTask*)obj;
317 pTask->PrintStatus();
324 int AliHLTSystem::Run(Int_t iNofEvents, int bStop)
326 // see header file for class documentation
329 SetStatusFlags(kRunning);
330 if (fEventCount>=0 || (iResult=InitTasks())>=0) {
331 if (fEventCount>=0 || (iResult=StartTasks())>=0) {
332 if (fEventCount==0) {
333 InitBenchmarking(fStopwatches);
335 //ResumeBenchmarking(fStopwatches);
337 for (int i=fEventCount; i<fEventCount+iNofEvents && iResult>=0; i++) {
338 if ((iResult=ProcessTasks(i))>=0) {
342 // TODO: define different running modes to either ignore errors in
343 // event processing or not
348 fEventCount+=iNofEvents;
349 if (bStop) StopTasks();
350 //else PauseBenchmarking(fStopwatches);
352 if (bStop) DeinitTasks();
356 } else if (iResult==-ENOKEY) {
357 iResult=0; // do not propagate the error
359 ClearStatusFlags(kRunning);
363 int AliHLTSystem::InitTasks()
365 // see header file for class documentation
367 TObjLink *lnk=fTaskList.FirstLink();
370 HLTWarning("Task list is empty, aborting ...");
373 while (lnk && iResult>=0) {
374 TObject* obj=lnk->GetObject();
376 AliHLTTask* pTask=(AliHLTTask*)obj;
377 iResult=pTask->Init(NULL, fpComponentHandler);
383 HLTError("can not initialize task list, error %d", iResult);
389 int AliHLTSystem::InitBenchmarking(TObjArray* pStopwatches)
391 // see header file for class documentation
393 if (pStopwatches==NULL) return 0;
395 for (int i=0; i<(int)AliHLTComponent::kSWTypeCount; i++) {
396 TStopwatch* pStopwatch= new TStopwatch;
399 pStopwatches->AddAt(pStopwatch, i);
406 TObjLink *lnk=fTaskList.FirstLink();
407 while (lnk && iResult>=0) {
408 TObject* obj=lnk->GetObject();
410 AliHLTTask* pTask=(AliHLTTask*)obj;
411 AliHLTComponent* pComp=NULL;
412 if (iResult>=0 && (pComp=pTask->GetComponent())!=NULL) {
413 switch (pComp->GetComponentType()) {
414 case AliHLTComponent::kProcessor:
415 pComp->SetStopwatches(pStopwatches);
417 case AliHLTComponent::kSource:
419 // this switch determines whether the time consumption of the
420 // AliHLTComponent base methods should be counted to the input
421 // stopwatch or base stopwatch.
422 //int inputBase=(int)AliHLTComponent::kSWBase;
423 int inputBase=(int)AliHLTComponent::kSWInput;
424 pComp->SetStopwatch(pStopwatches->At(inputBase), AliHLTComponent::kSWBase);
425 pComp->SetStopwatch(pStopwatches->At((int)AliHLTComponent::kSWInput), AliHLTComponent::kSWDA);
428 case AliHLTComponent::kSink:
430 // this switch determines whether the time consumption of the
431 // AliHLTComponent base methods should be counted to the output
432 // stopwatch or base stopwatch.
433 //int outputBase=(int)AliHLTComponent::kSWBase;
434 int outputBase=(int)AliHLTComponent::kSWOutput;
435 pComp->SetStopwatch(pStopwatches->At(outputBase), AliHLTComponent::kSWBase);
436 pComp->SetStopwatch(pStopwatches->At((int)AliHLTComponent::kSWOutput), AliHLTComponent::kSWDA);
440 HLTWarning("unknown component type %d", (int)pComp->GetComponentType());
450 int AliHLTSystem::PrintBenchmarking(TObjArray* pStopwatches, int bClean)
452 // see header file for class documentation
454 if (pStopwatches==NULL) return 0;
456 for (int i=0; i<(int)AliHLTComponent::kSWTypeCount; i++) {
457 if (!dynamic_cast<TStopwatch*>(pStopwatches->At(i))) {
463 if (iInitialized!=0) {
464 HLTInfo("HLT statistics:\n"
465 " base: R:%.3fs C:%.3fs\n"
466 " input: R:%.3fs C:%.3fs\n"
467 " output: R:%.3fs C:%.3fs\n"
468 " event processing : R:%.3fs C:%.3fs"
469 , dynamic_cast<TStopwatch*>(pStopwatches->At(AliHLTComponent::kSWBase))->RealTime()
470 , dynamic_cast<TStopwatch*>(pStopwatches->At(AliHLTComponent::kSWBase))->CpuTime()
471 , dynamic_cast<TStopwatch*>(pStopwatches->At(AliHLTComponent::kSWInput))->RealTime()
472 , dynamic_cast<TStopwatch*>(pStopwatches->At(AliHLTComponent::kSWInput))->CpuTime()
473 , dynamic_cast<TStopwatch*>(pStopwatches->At(AliHLTComponent::kSWOutput))->RealTime()
474 , dynamic_cast<TStopwatch*>(pStopwatches->At(AliHLTComponent::kSWOutput))->CpuTime()
475 , dynamic_cast<TStopwatch*>(pStopwatches->At(AliHLTComponent::kSWDA))->RealTime()
476 , dynamic_cast<TStopwatch*>(pStopwatches->At(AliHLTComponent::kSWDA))->CpuTime()
481 for (int i=0; i<(int)AliHLTComponent::kSWTypeCount; i++) {
482 TObject* pObj=pStopwatches->RemoveAt(i);
483 if (pObj) delete pObj;
489 int AliHLTSystem::StartTasks()
491 // see header file for class documentation
493 TObjLink *lnk=fTaskList.FirstLink();
494 while (lnk && iResult>=0) {
495 TObject* obj=lnk->GetObject();
497 AliHLTTask* pTask=(AliHLTTask*)obj;
498 iResult=pTask->StartRun();
504 HLTError("can not start task list, error %d", iResult);
512 int AliHLTSystem::ProcessTasks(Int_t eventNo)
514 // see header file for class documentation
516 HLTDebug("processing event no %d", eventNo);
517 TObjLink *lnk=fTaskList.FirstLink();
518 while (lnk && iResult>=0) {
519 TObject* obj=lnk->GetObject();
521 AliHLTTask* pTask=(AliHLTTask*)obj;
522 iResult=pTask->ProcessTask(eventNo);
523 HLTDebug("task %s finnished (%d)", pTask->GetName(), iResult);
530 HLTInfo("Event %d successfully finished (%d)", eventNo, iResult);
533 HLTError("Processing of event %d failed (%d)", eventNo, iResult);
539 int AliHLTSystem::StopTasks()
541 // see header file for class documentation
543 TObjLink *lnk=fTaskList.FirstLink();
544 while (lnk && iResult>=0) {
545 TObject* obj=lnk->GetObject();
547 AliHLTTask* pTask=(AliHLTTask*)obj;
548 iResult=pTask->EndRun();
553 PrintBenchmarking(fStopwatches, 1 /*clean*/);
557 int AliHLTSystem::DeinitTasks()
559 // see header file for class documentation
561 TObjLink *lnk=fTaskList.FirstLink();
562 while (lnk && iResult>=0) {
563 TObject* obj=lnk->GetObject();
565 AliHLTTask* pTask=(AliHLTTask*)obj;
566 iResult=pTask->Deinit();
577 void* AliHLTSystem::AllocMemory( void* /*param*/, unsigned long size )
579 // see header file for class documentation
582 p=(void*)new char[size];
586 log.LoggingVarargs(kHLTLogError, "AliHLTSystem" , "AllocMemory" , __FILE__ , __LINE__ , "exeption during memory allocation" );
591 int AliHLTSystem::Reconstruct(int nofEvents, AliRunLoader* runLoader,
592 AliRawReader* rawReader)
594 // see header file for class documentation
596 if (runLoader || rawReader || nofEvents==0) {
597 if (nofEvents>0) {HLTInfo("Run Loader %p, Raw Reader %p , %d event(s)", runLoader, rawReader, nofEvents);}
598 if (CheckStatus(kReady)) {
600 // special case to close the reconstruction
601 if (!CheckStatus(kError)) {
606 if ((iResult=AliHLTOfflineInterface::SetParamsToComponents(runLoader, rawReader))>=0) {
607 // the system always remains started after event processing, a specific
608 // call with nofEvents==0 is needed to execute the stop sequence
609 if ((iResult=Run(nofEvents, 0))<0) SetStatusFlags(kError);
613 HLTError("wrong state %#x, required flags %#x", GetStatusFlags(), kReady);
616 HLTError("missing RunLoader (%p)/RawReader (%p) instance", runLoader, rawReader);
622 int AliHLTSystem::FillESD(int eventNo, AliRunLoader* runLoader, AliESDEvent* esd)
624 // see header file for class documentation
626 if (runLoader || esd) {
627 HLTInfo("Event %d: Run Loader %p, ESD %p", eventNo, runLoader, esd);
628 iResult=AliHLTOfflineInterface::FillComponentESDs(eventNo, runLoader, esd);
630 HLTError("missing run loader/ESD instance(s)");
636 int AliHLTSystem::LoadComponentLibraries(const char* libraries)
638 // see header file for class documentation
641 if (fpComponentHandler) {
642 TString libs(libraries);
643 TObjArray* pTokens=libs.Tokenize(" ");
645 int iEntries=pTokens->GetEntries();
646 for (int i=0; i<iEntries && iResult>=0; i++) {
647 iResult=fpComponentHandler->LoadLibrary((((TObjString*)pTokens->At(i))->GetString()).Data());
652 SetStatusFlags(kLibrariesLoaded);
654 // lets see if we need this, probably not
655 //fpComponentHandler->UnloadLibraries();
656 ClearStatusFlags(kLibrariesLoaded);
660 HLTFatal("no component handler available");
668 int AliHLTSystem::Configure(AliRunLoader* runloader)
670 // see header file for class documentation
671 return Configure(NULL, runloader);
674 int AliHLTSystem::Configure(AliRawReader* rawReader, AliRunLoader* runloader)
676 // see header file for class documentation
678 if (CheckStatus(kRunning)) {
679 HLTError("HLT system in running state, can not configure");
682 ClearStatusFlags(kConfigurationLoaded|kTaskListCreated);
683 if (CheckFilter(kHLTLogDebug))
684 AliHLTModuleAgent::PrintStatus();
685 if (CheckStatus(kConfigurationLoaded)==0) {
686 iResult=LoadConfigurations(rawReader, runloader);
688 if (fChains.Length()==0) {
689 HLTError("custom configuration(s) specified, but no configuration to run in local reconstruction, use \'localrec=<conf>\' option");
694 SetStatusFlags(kConfigurationLoaded);
695 if (CheckFilter(kHLTLogDebug))
696 fpConfigurationHandler->PrintConfigurations();
697 iResult=BuildTaskListsFromReconstructionChains(rawReader, runloader);
699 SetStatusFlags(kTaskListCreated);
702 if (iResult<0) SetStatusFlags(kError);
707 int AliHLTSystem::ScanOptions(const char* options)
709 // see header file for class documentation
713 TString alloptions(options);
714 TObjArray* pTokens=alloptions.Tokenize(" ");
716 int iEntries=pTokens->GetEntries();
717 for (int i=0; i<iEntries; i++) {
718 TString token=(((TObjString*)pTokens->At(i))->GetString());
719 if (token.Contains("loglevel=")) {
720 TString param=token.ReplaceAll("loglevel=", "");
721 if (param.IsDigit()) {
722 SetGlobalLoggingLevel((AliHLTComponentLogSeverity)param.Atoi());
723 } else if (param.BeginsWith("0x") &&
724 param.Replace(0,2,"",0).IsHex()) {
726 sscanf(param.Data(),"%x", &severity);
727 SetGlobalLoggingLevel((AliHLTComponentLogSeverity)severity);
729 HLTWarning("wrong parameter for option \'loglevel=\', (hex) number expected");
731 } else if (token.Contains("alilog=off")) {
733 } else if (token.Contains("config=")) {
734 TString param=token.ReplaceAll("config=", "");
736 gROOT->Macro(param.Data(), &error);
738 SetStatusFlags(kConfigurationLoaded);
740 HLTError("can not execute macro \'%s\'", param.Data());
743 } else if (token.Contains("chains=")) {
744 TString param=token.ReplaceAll("chains=", "");
745 fChains=param.ReplaceAll(",", " ");
746 } else if (token.BeginsWith("lib") && token.EndsWith(".so")) {
750 HLTWarning("unknown option \'%s\'", token.Data());
758 const char** deflib=kHLTDefaultLibs;
764 if ((!CheckStatus(AliHLTSystem::kLibrariesLoaded)) &&
765 (LoadComponentLibraries(libs.Data())<0)) {
766 HLTError("error while loading HLT libraries");
774 int AliHLTSystem::Reset(int bForce)
776 // see header file for class documentation
778 if (!bForce && CheckStatus(kRunning)) {
779 HLTError("HLT system in running state, can not configure");
783 ClearStatusFlags(~kUninitialized);
787 int AliHLTSystem::LoadConfigurations(AliRawReader* rawReader, AliRunLoader* runloader)
789 // see header file for class documentation
790 if (CheckStatus(kRunning)) {
791 HLTError("HLT system in running state, can not configure");
795 AliHLTModuleAgent* pAgent=AliHLTModuleAgent::GetFirstAgent();
796 while (pAgent && iResult>=0) {
797 const char* deplibs=pAgent->GetRequiredComponentLibraries();
799 HLTDebug("load libraries \'%s\' for agent %s (%p)", deplibs, pAgent->GetName(), pAgent);
800 iResult=LoadComponentLibraries(deplibs);
803 HLTDebug("load configurations for agent %s (%p)", pAgent->GetName(), pAgent);
804 pAgent->CreateConfigurations(fpConfigurationHandler, rawReader, runloader);
805 pAgent=AliHLTModuleAgent::GetNextAgent();
811 int AliHLTSystem::BuildTaskListsFromReconstructionChains(AliRawReader* rawReader, AliRunLoader* runloader)
813 // see header file for class documentation
814 if (CheckStatus(kRunning)) {
815 HLTError("HLT system in running state, can not configure");
818 if (!CheckStatus(kConfigurationLoaded)) {
819 HLTWarning("configurations not yet loaded");
828 if (fChains.Length()>0) {
830 HLTInfo("custom reconstruction chain: %s", chains.Data());
832 AliHLTModuleAgent* pAgent=AliHLTModuleAgent::GetFirstAgent();
833 while ((pAgent || fChains.Length()>0) && iResult>=0) {
834 const char* agentchains=pAgent->GetReconstructionChains(rawReader, runloader);
836 if (!chains.IsNull()) chains+="";
838 HLTInfo("reconstruction chains for agent %s (%p): %s", pAgent->GetName(), pAgent, agentchains);
840 pAgent=AliHLTModuleAgent::GetNextAgent();
844 // build task list for chains
845 TObjArray* pTokens=chains.Tokenize(" ");
847 int iEntries=pTokens->GetEntries();
848 for (int i=0; i<iEntries && iResult>=0; i++) {
849 const char* pCID=((TObjString*)pTokens->At(i))->GetString().Data();
850 AliHLTConfiguration* pConf=fpConfigurationHandler->FindConfiguration(pCID);
852 iResult=BuildTaskList(pConf);
854 assert(fpComponentHandler!=NULL);
855 TString cid=pConf->GetComponentID();
856 if (cid.CompareTo("HLTOUT")==0) {
857 // remove from the input of a global HLTOUT configuration
858 chains.ReplaceAll(pCID, "");
859 } else if (bHaveOutput==0) {
860 // check whether this configuration produces data output
861 if ((bHaveOutput=fpComponentHandler->HasOutputData(cid.Data()))<0) {
863 chains.ReplaceAll(pCID, "");
868 HLTWarning("can not find configuration %s", pCID);
874 // build HLTOUT for simulation
875 if (iResult>=0 && runloader) {
877 // there are components in the chain which produce data which need to be
878 // piped to an HLTOUT
879 if (fpComponentHandler->FindComponentIndex("HLTOUT")>=0 ||
880 LoadComponentLibraries("libHLTsim.so")>=0) {
881 AliHLTConfiguration globalout("_globalout_", "HLTOUT", chains.Data(), NULL);
882 iResult=BuildTaskList("_globalout_");
884 HLTError("can not load libHLTsim.so and HLTOUT component");
890 if (iResult>=0) SetStatusFlags(kTaskListCreated);
895 int AliHLTSystem::CheckStatus(int flag)
897 // see header file for class documentation
898 if (flag==kUninitialized && flag==fState) return 1;
899 if ((fState&flag)==flag) return 1;
903 int AliHLTSystem::GetStatusFlags()
905 // see header file for class documentation
909 int AliHLTSystem::SetStatusFlags(int flags)
911 // see header file for class documentation
916 int AliHLTSystem::ClearStatusFlags(int flags)
918 // see header file for class documentation
923 void* AliHLTSystem::FindDynamicSymbol(const char* library, const char* symbol)
925 // see header file for class documentation
926 if (fpComponentHandler==NULL) return NULL;
927 return fpComponentHandler->FindSymbol(library, symbol);