]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
coding conventions
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 8 Feb 2007 12:07:03 +0000 (12:07 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 8 Feb 2007 12:07:03 +0000 (12:07 +0000)
20 files changed:
HLT/BASE/AliHLTComponent.cxx
HLT/BASE/AliHLTComponent.h
HLT/BASE/AliHLTComponentHandler.cxx
HLT/BASE/AliHLTComponentHandler.h
HLT/BASE/AliHLTConfiguration.cxx
HLT/BASE/AliHLTConfiguration.h
HLT/BASE/AliHLTConfigurationHandler.h
HLT/BASE/AliHLTDataBuffer.cxx
HLT/BASE/AliHLTDataBuffer.h
HLT/BASE/AliHLTDataSink.cxx
HLT/BASE/AliHLTDataSource.cxx
HLT/BASE/AliHLTFilePublisher.cxx
HLT/BASE/AliHLTFilePublisher.h
HLT/BASE/AliHLTFileWriter.cxx
HLT/BASE/AliHLTFileWriter.h
HLT/BASE/AliHLTLogging.h
HLT/BASE/AliHLTProcessor.cxx
HLT/BASE/AliHLTSystem.cxx
HLT/BASE/AliHLTSystem.h
HLT/BASE/AliHLTTask.h

index 4677cacbfd5a95aac6dfca932e9931d0a794c547..4af4d8fff2e168fde55b1b58237974a8f7b31c0e 100644 (file)
@@ -28,7 +28,7 @@ using namespace std;
 #include "AliHLTStdIncludes.h"
 #include "AliHLTComponent.h"
 #include "AliHLTComponentHandler.h"
-#include "AliHLTSystem.h"
+#include "TString.h"
 
 /** ROOT macro for the implementation of ROOT specific class methods */
 ClassImp(AliHLTComponent)
@@ -38,38 +38,65 @@ AliHLTComponent::AliHLTComponent()
   fEnvironment(),
   fCurrentEvent(0),
   fEventCount(-1)
-{ 
+{
+  // see header file for class documentation
+  // or
+  // refer to README to build package
+  // or
+  // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
   memset(&fEnvironment, 0, sizeof(AliHLTComponentEnvironment));
-  if (fpComponentHandler)
-    fpComponentHandler->ScheduleRegister(this);
+  if (fgpComponentHandler)
+    fgpComponentHandler->ScheduleRegister(this);
+}
+
+AliHLTComponent::AliHLTComponent(const AliHLTComponent&)
+  :
+  fEnvironment(),
+  fCurrentEvent(0),
+  fEventCount(-1)
+{
+  // see header file for class documentation
+  HLTFatal("copy constructor untested");
+}
+
+AliHLTComponent& AliHLTComponent::operator=(const AliHLTComponent&)
+{ 
+  // see header file for class documentation
+  HLTFatal("assignment operator untested");
+  return *this;
 }
 
 AliHLTComponent::~AliHLTComponent()
 {
+  // see header file for function documentation
 }
 
-AliHLTComponentHandler* AliHLTComponent::fpComponentHandler=NULL;
+AliHLTComponentHandler* AliHLTComponent::fgpComponentHandler=NULL;
 
 int AliHLTComponent::SetGlobalComponentHandler(AliHLTComponentHandler* pCH, int bOverwrite) 
 {
+  // see header file for function documentation
   int iResult=0;
-  if (fpComponentHandler==NULL || bOverwrite!=0)
-    fpComponentHandler=pCH;
+  if (fgpComponentHandler==NULL || bOverwrite!=0)
+    fgpComponentHandler=pCH;
   else
     iResult=-EPERM;
   return iResult;
 }
 
-int AliHLTComponent::UnsetGlobalComponentHandler() {
+int AliHLTComponent::UnsetGlobalComponentHandler() 
+{
+  // see header file for function documentation
   return SetGlobalComponentHandler(NULL,1);
 }
 
-int AliHLTComponent::Init( AliHLTComponentEnvironment* environ, void* environ_param, int argc, const char** argv )
+int AliHLTComponent::Init( AliHLTComponentEnvironment* environ, void* environParam, int argc, const char** argv )
 {
+  // see header file for function documentation
   int iResult=0;
   if (environ) {
     memcpy(&fEnvironment, environ, sizeof(AliHLTComponentEnvironment));
-    fEnvironment.fParam=environ_param;
+    fEnvironment.fParam=environParam;
   }
   iResult=DoInit(argc, argv);
   if (iResult>=0) fEventCount=0;
@@ -78,6 +105,7 @@ int AliHLTComponent::Init( AliHLTComponentEnvironment* environ, void* environ_pa
 
 int AliHLTComponent::Deinit()
 {
+  // see header file for function documentation
   int iResult=0;
   iResult=DoDeinit();
   return iResult;
@@ -85,6 +113,7 @@ int AliHLTComponent::Deinit()
 
 int AliHLTComponent::DoInit( int argc, const char** argv )
 {
+  // see header file for function documentation
   if (argc==0 && argv==NULL) {
     // this is currently just to get rid of the warning "unused parameter"
   }
@@ -93,10 +122,13 @@ int AliHLTComponent::DoInit( int argc, const char** argv )
 
 int AliHLTComponent::DoDeinit()
 {
+  // see header file for function documentation
   return 0;
 }
 
-void AliHLTComponent::DataType2Text( const AliHLTComponentDataType& type, char output[kAliHLTComponentDataTypefIDsize+kAliHLTComponentDataTypefOriginSize+2] ) {
+void AliHLTComponent::DataType2Text( const AliHLTComponentDataType& type, char output[kAliHLTComponentDataTypefIDsize+kAliHLTComponentDataTypefOriginSize+2] ) const
+{
+  // see header file for function documentation
   memset( output, 0, kAliHLTComponentDataTypefIDsize+kAliHLTComponentDataTypefOriginSize+2 );
   strncat( output, type.fOrigin, kAliHLTComponentDataTypefOriginSize );
   strcat( output, ":" );
@@ -105,6 +137,7 @@ void AliHLTComponent::DataType2Text( const AliHLTComponentDataType& type, char o
 
 string AliHLTComponent::DataType2Text( const AliHLTComponentDataType& type )
 {
+  // see header file for function documentation
   string out("");
   
   if (type==kAliHLTVoidDataType) {
@@ -126,7 +159,9 @@ string AliHLTComponent::DataType2Text( const AliHLTComponentDataType& type )
 }
 
 
-void* AliHLTComponent::AllocMemory( unsigned long size ) {
+void* AliHLTComponent::AllocMemory( unsigned long size ) 
+{
+  // see header file for function documentation
   if (fEnvironment.fAllocMemoryFunc)
     return (*fEnvironment.fAllocMemoryFunc)(fEnvironment.fParam, size );
   HLTFatal("no memory allocation handler registered");
@@ -134,7 +169,9 @@ void* AliHLTComponent::AllocMemory( unsigned long size ) {
 }
 
 int AliHLTComponent::MakeOutputDataBlockList( const vector<AliHLTComponentBlockData>& blocks, AliHLTUInt32_t* blockCount,
-                                             AliHLTComponentBlockData** outputBlocks ) {
+                                             AliHLTComponentBlockData** outputBlocks ) 
+{
+  // see header file for function documentation
     if ( blockCount==NULL || outputBlocks==NULL )
        return -EFAULT;
     AliHLTUInt32_t count = blocks.size();
@@ -159,7 +196,9 @@ int AliHLTComponent::MakeOutputDataBlockList( const vector<AliHLTComponentBlockD
 
 }
 
-int AliHLTComponent::GetEventDoneData( unsigned long size, AliHLTComponentEventDoneData** edd ) {
+int AliHLTComponent::GetEventDoneData( unsigned long size, AliHLTComponentEventDoneData** edd ) 
+{
+  // see header file for function documentation
   if (fEnvironment.fGetEventDoneDataFunc)
     return (*fEnvironment.fGetEventDoneDataFunc)(fEnvironment.fParam, fCurrentEvent, size, edd );
   return -ENOSYS;
@@ -167,6 +206,7 @@ int AliHLTComponent::GetEventDoneData( unsigned long size, AliHLTComponentEventD
 
 int AliHLTComponent::FindMatchingDataTypes(AliHLTComponent* pConsumer, vector<AliHLTComponentDataType>* tgtList) 
 {
+  // see header file for function documentation
   int iResult=0;
   if (pConsumer) {
     vector<AliHLTComponentDataType> ctlist;
@@ -188,7 +228,9 @@ int AliHLTComponent::FindMatchingDataTypes(AliHLTComponent* pConsumer, vector<Al
   return iResult;
 }
 
-void AliHLTComponent::FillBlockData( AliHLTComponentBlockData& blockData ) {
+void AliHLTComponent::FillBlockData( AliHLTComponentBlockData& blockData ) const
+{
+  // see header file for function documentation
   blockData.fStructSize = sizeof(blockData);
   FillShmData( blockData.fShmKey );
   blockData.fOffset = ~(AliHLTUInt32_t)0;
@@ -198,22 +240,30 @@ void AliHLTComponent::FillBlockData( AliHLTComponentBlockData& blockData ) {
   blockData.fSpecification = ~(AliHLTUInt32_t)0;
 }
 
-void AliHLTComponent::FillShmData( AliHLTComponentShmData& shmData ) {
+void AliHLTComponent::FillShmData( AliHLTComponentShmData& shmData ) const
+{
+  // see header file for function documentation
   shmData.fStructSize = sizeof(shmData);
   shmData.fShmType = gkAliHLTComponentInvalidShmType;
   shmData.fShmID = gkAliHLTComponentInvalidShmID;
 }
 
-void AliHLTComponent::FillDataType( AliHLTComponentDataType& dataType ) {
+void AliHLTComponent::FillDataType( AliHLTComponentDataType& dataType ) const
+{
+  // see header file for function documentation
   dataType=kAliHLTAnyDataType;
 }
 
-void AliHLTComponent::CopyDataType(AliHLTComponentDataType& tgtdt, const AliHLTComponentDataType& srcdt) {
+void AliHLTComponent::CopyDataType(AliHLTComponentDataType& tgtdt, const AliHLTComponentDataType& srcdt) 
+{
+  // see header file for function documentation
   memcpy(&tgtdt.fID[0], &srcdt.fID[0], kAliHLTComponentDataTypefIDsize);
   memcpy(&tgtdt.fOrigin[0], &srcdt.fOrigin[0], kAliHLTComponentDataTypefOriginSize);
 }
 
-void AliHLTComponent::SetDataType(AliHLTComponentDataType& tgtdt, const char* id, const char* origin) {
+void AliHLTComponent::SetDataType(AliHLTComponentDataType& tgtdt, const char* id, const char* origin) 
+{
+  // see header file for function documentation
   tgtdt.fStructSize = sizeof(AliHLTComponentDataType);
   memset(&tgtdt.fID[0], 0, kAliHLTComponentDataTypefIDsize);
   memset(&tgtdt.fOrigin[0], 0, kAliHLTComponentDataTypefOriginSize);
@@ -231,11 +281,14 @@ void AliHLTComponent::SetDataType(AliHLTComponentDataType& tgtdt, const char* id
 
 void AliHLTComponent::FillEventData(AliHLTComponentEventData& evtData)
 {
+  // see header file for function documentation
   memset(&evtData, 0, sizeof(AliHLTComponentEventData));
   evtData.fStructSize=sizeof(AliHLTComponentEventData);
 }
 
-void AliHLTComponent::PrintComponentDataTypeInfo(const AliHLTComponentDataType& dt) {
+void AliHLTComponent::PrintComponentDataTypeInfo(const AliHLTComponentDataType& dt) 
+{
+  // see header file for function documentation
   TString msg;
   msg.Form("AliHLTComponentDataType(%d): ID=\"", dt.fStructSize);
   for ( int i = 0; i < kAliHLTComponentDataTypefIDsize; i++ ) {
@@ -251,13 +304,15 @@ void AliHLTComponent::PrintComponentDataTypeInfo(const AliHLTComponentDataType&
   AliHLTLogging::Message(NULL, kHLTLogNone, NULL , NULL, msg.Data());
 }
 
-int AliHLTComponent::GetEventCount()
+int AliHLTComponent::GetEventCount() const
 {
+  // see header file for function documentation
   return fEventCount;
 }
 
 int AliHLTComponent::IncrementEventCounter()
 {
+  // see header file for function documentation
   if (fEventCount>=0) fEventCount++;
   return fEventCount;
 }
@@ -271,6 +326,7 @@ int AliHLTComponent::ProcessEvent( const AliHLTComponentEventData& evtData,
                                   AliHLTComponentBlockData*& outputBlocks,
                                   AliHLTComponentEventDoneData*& edd )
 {
+  // see header file for function documentation
   int iResult=0;
   fCurrentEvent=evtData.fEventID;
   iResult=DoProcessing(evtData, blocks, trigData, outputPtr, size, outputBlockCnt, outputBlocks, edd);
index 4712f0f31bee3a05e31f386d48163fbadaf406cf..a653444ef746876c66e4ed4ff7bb4c6c1315191c 100644 (file)
@@ -22,7 +22,6 @@
 #include "AliHLTLogging.h"
 #include "AliHLTDataTypes.h"
 #include "AliHLTDefinitions.h"
-#include "TObject.h"
 
 /* Matthias Dec 2006
  * The names have been changed for Aliroot's coding conventions sake
@@ -63,6 +62,10 @@ class AliHLTComponent : public AliHLTLogging {
  public:
   /** standard constructor */
   AliHLTComponent();
+  /** not a valid copy constructor, defined according to effective C++ style */
+  AliHLTComponent(const AliHLTComponent&);
+  /** not a valid assignment op, but defined according to effective C++ style */
+  AliHLTComponent& operator=(const AliHLTComponent&);
   /** standard destructor */
   virtual ~AliHLTComponent();
 
@@ -77,12 +80,12 @@ class AliHLTComponent : public AliHLTLogging {
    * During Init also the environment structure is passed to the component.
    * @param environ        environment pointer with environment dependend function
    *                       calls
-   * @param environ_param  additionel parameter for function calls, the pointer
+   * @param environParam   additionel parameter for function calls, the pointer
    *                       is passed as it is
    * @param argc           size of the argument array
    * @param argv           agument array for component initialization
    */
-  virtual int Init( AliHLTComponentEnvironment* environ, void* environ_param, int argc, const char** argv );
+  virtual int Init( AliHLTComponentEnvironment* environ, void* environParam, int argc, const char** argv );
 
   /**
    * Clean-up function to terminate data processing.
@@ -231,19 +234,19 @@ class AliHLTComponent : public AliHLTLogging {
    * Fill AliHLTComponentBlockData structure with default values.
    * @param blockData   reference to data structure
    */
-  void FillBlockData( AliHLTComponentBlockData& blockData );
+  void FillBlockData( AliHLTComponentBlockData& blockData ) const;
 
   /**
    * Fill AliHLTComponentShmData structure with default values.
    * @param shmData   reference to data structure
    */
-  void FillShmData( AliHLTComponentShmData& shmData );
+  void FillShmData( AliHLTComponentShmData& shmData ) const;
 
   /**
    * Fill AliHLTComponentDataType structure with default values.
    * @param dataType   reference to data structure
    */
-  void FillDataType( AliHLTComponentDataType& dataType );
+  void FillDataType( AliHLTComponentDataType& dataType ) const;
   
   /**
    * Copy data type structure
@@ -313,13 +316,13 @@ class AliHLTComponent : public AliHLTLogging {
   /**
    * Helper function to convert the data type to a string.
    */
-  void DataType2Text(const AliHLTComponentDataType& type, char output[kAliHLTComponentDataTypefIDsize+kAliHLTComponentDataTypefOriginSize+2]);
+  void DataType2Text(const AliHLTComponentDataType& type, char output[kAliHLTComponentDataTypefIDsize+kAliHLTComponentDataTypefOriginSize+2]) const;
 
   /**
    * Get event number.
    * @return value of the internal event counter
    */
-  int GetEventCount();
+  int GetEventCount() const;
 
  private:
   /**
@@ -331,18 +334,19 @@ class AliHLTComponent : public AliHLTLogging {
   int IncrementEventCounter();
 
   /** The global component handler instance */
-  static AliHLTComponentHandler* fpComponentHandler;
+  static AliHLTComponentHandler* fgpComponentHandler;  //! transient
+
   /** The environment where the component is running in */
-  AliHLTComponentEnvironment fEnvironment;
+  AliHLTComponentEnvironment fEnvironment; // see above
 
   /** 
    * Set by ProcessEvent before the processing starts (e.g. before calling 
    * @ref AliHLTProcessor::DoEvent)
    */
-  AliHLTEventID_t fCurrentEvent;
+  AliHLTEventID_t fCurrentEvent; // see above
 
   /** internal event no */
-  int fEventCount;
+  int fEventCount; // see above
 
   ClassDef(AliHLTComponent, 1)
 };
index b840d469e4a880e445ce2089edf609abe9924454..48350854c06cddbe1f11589762b692625ffa7411 100644 (file)
@@ -53,6 +53,11 @@ AliHLTComponentHandler::AliHLTComponentHandler()
   fEnvironment(),
   fStandardList()
 {
+  // see header file for class documentation
+  // or
+  // refer to README to build package
+  // or
+  // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
   memset(&fEnvironment, 0, sizeof(AliHLTComponentEnvironment));
   AddStandardComponents();
 }
@@ -65,6 +70,7 @@ AliHLTComponentHandler::AliHLTComponentHandler(AliHLTComponentEnvironment* pEnv)
   fEnvironment(),
   fStandardList()
 {
+  // see header file for class documentation
   if (pEnv) {
     memcpy(&fEnvironment, pEnv, sizeof(AliHLTComponentEnvironment));
     AliHLTLogging::Init(pEnv->fLoggingFunc);
@@ -75,12 +81,14 @@ AliHLTComponentHandler::AliHLTComponentHandler(AliHLTComponentEnvironment* pEnv)
 
 AliHLTComponentHandler::~AliHLTComponentHandler()
 {
+  // see header file for class documentation
   UnloadLibraries();
   DeleteStandardComponents();
 }
 
 int AliHLTComponentHandler::AnnounceVersion()
 {
+  // see header file for class documentation
   int iResult=0;
 #ifdef PACKAGE_STRING
   void HLTbaseCompileInfo( char*& date, char*& time);
@@ -98,6 +106,7 @@ int AliHLTComponentHandler::AnnounceVersion()
 
 Int_t AliHLTComponentHandler::RegisterComponent(AliHLTComponent* pSample)
 {
+  // see header file for class documentation
   Int_t iResult=0;
   if (pSample) {
     if (FindComponent(pSample->GetComponentID())==NULL) {
@@ -118,6 +127,7 @@ Int_t AliHLTComponentHandler::RegisterComponent(AliHLTComponent* pSample)
 
 int AliHLTComponentHandler::DeregisterComponent( const char* componentID )
 {
+  // see header file for class documentation
   int iResult=0;
   if (componentID) {
   } else {
@@ -128,6 +138,7 @@ int AliHLTComponentHandler::DeregisterComponent( const char* componentID )
 
 Int_t AliHLTComponentHandler::ScheduleRegister(AliHLTComponent* pSample)
 {
+  // see header file for class documentation
   Int_t iResult=0;
   if (pSample) {
     fScheduleList.push_back(pSample);
@@ -139,6 +150,7 @@ Int_t AliHLTComponentHandler::ScheduleRegister(AliHLTComponent* pSample)
 
 int AliHLTComponentHandler::CreateComponent(const char* componentID, void* pEnvParam, int argc, const char** argv, AliHLTComponent*& component )
 {
+  // see header file for class documentation
   int iResult=0;
   if (componentID) {
     AliHLTComponent* pSample=FindComponent(componentID);
@@ -167,6 +179,7 @@ int AliHLTComponentHandler::CreateComponent(const char* componentID, void* pEnvP
 
 Int_t AliHLTComponentHandler::FindComponentIndex(const char* componentID)
 {
+  // see header file for class documentation
   Int_t iResult=0;
   if (componentID) {
     vector<AliHLTComponent*>::iterator element=fComponentList.begin();
@@ -186,6 +199,7 @@ Int_t AliHLTComponentHandler::FindComponentIndex(const char* componentID)
 
 AliHLTComponent* AliHLTComponentHandler::FindComponent(const char* componentID)
 {
+  // see header file for class documentation
   AliHLTComponent* pSample=NULL;
   Int_t index=FindComponentIndex(componentID);
   if (index>=0) {
@@ -196,6 +210,7 @@ AliHLTComponent* AliHLTComponentHandler::FindComponent(const char* componentID)
 
 Int_t AliHLTComponentHandler::InsertComponent(AliHLTComponent* pSample)
 {
+  // see header file for class documentation
   Int_t iResult=0;
   if (pSample!=NULL) {
     fComponentList.push_back(pSample);
@@ -205,7 +220,9 @@ Int_t AliHLTComponentHandler::InsertComponent(AliHLTComponent* pSample)
   return iResult;
 }
 
-void AliHLTComponentHandler::List() {
+void AliHLTComponentHandler::List() 
+{
+  // see header file for class documentation
   vector<AliHLTComponent*>::iterator element=fComponentList.begin();
   int index=0;
   while (element!=fComponentList.end()) {
@@ -213,7 +230,9 @@ void AliHLTComponentHandler::List() {
   }
 }
 
-void AliHLTComponentHandler::SetEnvironment(AliHLTComponentEnvironment* pEnv) {
+void AliHLTComponentHandler::SetEnvironment(AliHLTComponentEnvironment* pEnv) 
+{
+  // see header file for class documentation
   if (pEnv) {
     memcpy(&fEnvironment, pEnv, sizeof(AliHLTComponentEnvironment));
     AliHLTLogging::Init(fEnvironment.fLoggingFunc);
@@ -222,6 +241,7 @@ void AliHLTComponentHandler::SetEnvironment(AliHLTComponentEnvironment* pEnv) {
 
 int AliHLTComponentHandler::LoadLibrary( const char* libraryPath )
 {
+  // see header file for class documentation
   int iResult=0;
   if (libraryPath) {
     AliHLTComponent::SetGlobalComponentHandler(this);
@@ -260,6 +280,7 @@ int AliHLTComponentHandler::LoadLibrary( const char* libraryPath )
 
 int AliHLTComponentHandler::UnloadLibrary( const char* libraryPath )
 {
+  // see header file for class documentation
   int iResult=0;
   if (libraryPath) {
   } else {
@@ -270,6 +291,7 @@ int AliHLTComponentHandler::UnloadLibrary( const char* libraryPath )
 
 int AliHLTComponentHandler::UnloadLibraries()
 {
+  // see header file for class documentation
   int iResult=0;
   vector<AliHLTLibHandle>::iterator element=fLibraryList.begin();
   while (element!=fLibraryList.end()) {
@@ -287,6 +309,7 @@ int AliHLTComponentHandler::UnloadLibraries()
 
 int AliHLTComponentHandler::AddStandardComponents()
 {
+  // see header file for class documentation
   int iResult=0;
   AliHLTComponent::SetGlobalComponentHandler(this);
   fStandardList.push_back(new AliHLTFilePublisher);
@@ -299,6 +322,7 @@ int AliHLTComponentHandler::AddStandardComponents()
 
 int AliHLTComponentHandler::RegisterScheduledComponents()
 {
+  // see header file for class documentation
   int iResult=0;
   vector<AliHLTComponent*>::iterator element=fScheduleList.begin();
   int iLocalResult=0;
@@ -313,6 +337,7 @@ int AliHLTComponentHandler::RegisterScheduledComponents()
 
 int AliHLTComponentHandler::DeleteStandardComponents()
 {
+  // see header file for class documentation
   int iResult=0;
   vector<AliHLTComponent*>::iterator element=fStandardList.begin();
   while (element!=fStandardList.end()) {
index 4be1c12632ac4d7e320c953a8da24460befa3a90..21a01498fba8ed8b48129185097c82a8a220dde0 100644 (file)
@@ -200,15 +200,15 @@ class AliHLTComponentHandler : public AliHLTLogging {
   int UnloadLibraries();
 
   /** list of registered components */
-  vector<AliHLTComponent*> fComponentList;
+  vector<AliHLTComponent*> fComponentList;                         // see above 
   /** list of scheduled components */
-  vector<AliHLTComponent*> fScheduleList;
+  vector<AliHLTComponent*> fScheduleList;                          // see above 
   /** list of libraries */
-  vector<AliHLTLibHandle> fLibraryList;
+  vector<AliHLTLibHandle> fLibraryList;                            // see above 
   /** running environment for the component */
-  AliHLTComponentEnvironment fEnvironment;
+  AliHLTComponentEnvironment fEnvironment;                         // see above 
   /** list of standard components */
-  vector<AliHLTComponent*> fStandardList;  
+  vector<AliHLTComponent*> fStandardList;                          // see above 
 
   ClassDef(AliHLTComponentHandler, 0);
 
index 0a8b9ba0c667485126cb0b09444220633ac474b4..e3cf2285ee0b2aa798b58f156e1beb66ca2da9a7 100644 (file)
@@ -33,6 +33,7 @@ using namespace std;
 #include "AliHLTComponentHandler.h"
 #include <iostream>
 #include <string>
+#include "TList.h"
 
 /** ROOT macro for the implementation of ROOT specific class methods */
 ClassImp(AliHLTConfiguration)
@@ -49,6 +50,7 @@ AliHLTConfiguration::AliHLTConfiguration()
   fArgc(-1),
   fArgv(NULL)
 { 
+  // see header file for function documentation
   fListSrcElement=fListSources.begin();
 }
 
@@ -64,10 +66,11 @@ AliHLTConfiguration::AliHLTConfiguration(const char* id, const char* component,
   fArgc(-1),
   fArgv(NULL)
 {
+  // see header file for function documentation
   fListSrcElement=fListSources.begin();
   if (id && component) {
-    if (fConfigurationHandler) {
-      fConfigurationHandler->RegisterConfiguration(this);
+    if (fgConfigurationHandler) {
+      fgConfigurationHandler->RegisterConfiguration(this);
     } else {
       HLTError("no configuration handler set, abort registration");
     }
@@ -88,21 +91,24 @@ AliHLTConfiguration::AliHLTConfiguration(const AliHLTConfiguration&)
   fArgc(-1),
   fArgv(NULL)
 { 
+  // see header file for function documentation
   fListSrcElement=fListSources.begin();
   HLTFatal("copy constructor untested");
 }
 
 AliHLTConfiguration& AliHLTConfiguration::operator=(const AliHLTConfiguration&)
 { 
+  // see header file for function documentation
   HLTFatal("assignment operator untested");
   return *this;
 }
 
 AliHLTConfiguration::~AliHLTConfiguration()
 {
-  if (fConfigurationHandler) {
-    if (fConfigurationHandler->FindConfiguration(fID)!=NULL) {
-      fConfigurationHandler->RemoveConfiguration(this);
+  // see header file for function documentation
+  if (fgConfigurationHandler) {
+    if (fgConfigurationHandler->FindConfiguration(fID)!=NULL) {
+      fgConfigurationHandler->RemoveConfiguration(this);
     }
   }
   if (fArgv != NULL) {
@@ -118,26 +124,30 @@ AliHLTConfiguration::~AliHLTConfiguration()
 
 /* the global configuration handler which is used to automatically register the configuration
  */
-AliHLTConfigurationHandler* AliHLTConfiguration::fConfigurationHandler=NULL;
+AliHLTConfigurationHandler* AliHLTConfiguration::fgConfigurationHandler=NULL;
 
 int AliHLTConfiguration::GlobalInit(AliHLTConfigurationHandler* pHandler)
 {
+  // see header file for function documentation
   int iResult=0;
-  if (fConfigurationHandler!=NULL) {
-    fConfigurationHandler->Logging(kHLTLogWarning, "AliHLTConfiguration::GlobalInit", HLT_DEFAULT_LOG_KEYWORD, "configuration handler already initialized, overriding object %p", fConfigurationHandler);
+  if (fgConfigurationHandler!=NULL) {
+    fgConfigurationHandler->Logging(kHLTLogWarning, "AliHLTConfiguration::GlobalInit", HLT_DEFAULT_LOG_KEYWORD, "configuration handler already initialized, overriding object %p", fgConfigurationHandler);
   }
-  fConfigurationHandler=pHandler;
+  fgConfigurationHandler=pHandler;
   return iResult;
 }
 
 int AliHLTConfiguration::GlobalDeinit()
 {
+  // see header file for function documentation
   int iResult=0;
-  fConfigurationHandler=NULL;
+  fgConfigurationHandler=NULL;
   return iResult;
 }
 
-const char* AliHLTConfiguration::GetName() const {
+const char* AliHLTConfiguration::GetName() const 
+{
+  // see header file for function documentation
   if (fID)
     return fID;
   return TObject::GetName();
@@ -145,6 +155,7 @@ const char* AliHLTConfiguration::GetName() const {
 
 AliHLTConfiguration* AliHLTConfiguration::GetSource(const char* id)
 {
+  // see header file for function documentation
   AliHLTConfiguration* pSrc=NULL;
   if (id) {
     // first check the current element
@@ -166,6 +177,7 @@ AliHLTConfiguration* AliHLTConfiguration::GetSource(const char* id)
 
 AliHLTConfiguration* AliHLTConfiguration::GetFirstSource()
 {
+  // see header file for function documentation
   AliHLTConfiguration* pSrc=NULL;
   if (fNofSources>=0 || ExtractSources()) {
     fListSrcElement=fListSources.begin();
@@ -176,6 +188,7 @@ AliHLTConfiguration* AliHLTConfiguration::GetFirstSource()
 
 AliHLTConfiguration* AliHLTConfiguration::GetNextSource()
 {
+  // see header file for function documentation
   AliHLTConfiguration* pSrc=NULL;
   if (fNofSources>0) {
     if (fListSrcElement!=fListSources.end() && (++fListSrcElement)!=fListSources.end()) 
@@ -186,6 +199,7 @@ AliHLTConfiguration* AliHLTConfiguration::GetNextSource()
 
 int AliHLTConfiguration::SourcesResolved(int bAuto) 
 {
+  // see header file for function documentation
   int iResult=0;
   if (fNofSources>=0 || bAuto && (iResult=ExtractSources())>=0) {
     //HLTDebug("fNofSources=%d", fNofSources);
@@ -197,6 +211,7 @@ int AliHLTConfiguration::SourcesResolved(int bAuto)
 
 int AliHLTConfiguration::InvalidateSource(AliHLTConfiguration* pConf)
 {
+  // see header file for function documentation
   int iResult=0;
   if (pConf) {
     vector<AliHLTConfiguration*>::iterator element=fListSources.begin();
@@ -219,6 +234,7 @@ int AliHLTConfiguration::InvalidateSource(AliHLTConfiguration* pConf)
 
 void AliHLTConfiguration::PrintStatus()
 {
+  // see header file for function documentation
   HLTLogKeyword("configuration status");
   HLTMessage("status of configuration \"%s\" (%p)", GetName(), this);
   if (fComponent) HLTMessage("  - component: \"%s\"", fComponent);
@@ -236,6 +252,7 @@ void AliHLTConfiguration::PrintStatus()
 
 int AliHLTConfiguration::GetArguments(const char*** pArgv)
 {
+  // see header file for function documentation
   int iResult=0;
   if (pArgv) {
     if (fArgc==-1) {
@@ -259,6 +276,7 @@ int AliHLTConfiguration::GetArguments(const char*** pArgv)
 
 int AliHLTConfiguration::ExtractSources()
 {
+  // see header file for function documentation
   int iResult=0;
   fNofSources=0;
   if (fStringSources!=NULL) {
@@ -268,8 +286,8 @@ int AliHLTConfiguration::ExtractSources()
       fNofSources=tgtList.size();
       vector<char*>::iterator element=tgtList.begin();
       while ((element=tgtList.begin())!=tgtList.end()) {
-       if (fConfigurationHandler) {
-         AliHLTConfiguration* pConf=fConfigurationHandler->FindConfiguration(*element);
+       if (fgConfigurationHandler) {
+         AliHLTConfiguration* pConf=fgConfigurationHandler->FindConfiguration(*element);
          if (pConf) {
            HLTDebug("source \"%s\" inserted", pConf->GetName());
            fListSources.push_back(pConf);
@@ -292,6 +310,7 @@ int AliHLTConfiguration::ExtractSources()
 
 int AliHLTConfiguration::ExtractArguments()
 {
+  // see header file for function documentation
   int iResult=0;
   if (fArguments!=NULL) {
     vector<char*> tgtList;
@@ -322,6 +341,7 @@ int AliHLTConfiguration::ExtractArguments()
 
 int AliHLTConfiguration::InterpreteString(const char* arg, vector<char*>& argList)
 {
+  // see header file for function documentation
   int iResult=0;
   if (arg) {
     //HLTDebug("interprete \"%s\"", arg);
@@ -350,6 +370,7 @@ int AliHLTConfiguration::InterpreteString(const char* arg, vector<char*>& argLis
 
 int AliHLTConfiguration::FollowDependency(const char* id, TList* pTgtList)
 {
+  // see header file for function documentation
   int iResult=0;
   if (id) {
     AliHLTConfiguration* pDep=NULL;
@@ -387,6 +408,7 @@ AliHLTTask::AliHLTTask()
   fpBlockDataArray(NULL),
   fBlockDataArraySize(0)
 {
+  // see header file for function documentation
 }
 
 AliHLTTask::AliHLTTask(AliHLTConfiguration* pConf)
@@ -399,6 +421,7 @@ AliHLTTask::AliHLTTask(AliHLTConfiguration* pConf)
   fpBlockDataArray(NULL),
   fBlockDataArraySize(0)
 {
+  // see header file for function documentation
 }
 
 AliHLTTask::AliHLTTask(const AliHLTTask&)
@@ -418,6 +441,7 @@ AliHLTTask::AliHLTTask(const AliHLTTask&)
 
 AliHLTTask& AliHLTTask::operator=(const AliHLTTask&)
 { 
+  // see header file for function documentation
   HLTFatal("assignment operator untested");
   return *this;
 }
@@ -432,6 +456,7 @@ AliHLTTask::~AliHLTTask()
 
 int AliHLTTask::Init(AliHLTConfiguration* pConf, AliHLTComponentHandler* pCH)
 {
+  // see header file for function documentation
   int iResult=0;
   if (fpConfiguration!=NULL && pConf!=NULL && fpConfiguration!=pConf) {
     HLTWarning("overriding existing reference to configuration object %p (%s) by %p",
@@ -468,6 +493,7 @@ int AliHLTTask::Init(AliHLTConfiguration* pConf, AliHLTComponentHandler* pCH)
 
 int AliHLTTask::Deinit()
 {
+  // see header file for function documentation
   int iResult=0;
   AliHLTComponent* pComponent=GetComponent();
   fpComponent=NULL;
@@ -482,6 +508,7 @@ int AliHLTTask::Deinit()
 
 const char *AliHLTTask::GetName() const
 {
+  // see header file for function documentation
   if (fpConfiguration)
     return fpConfiguration->GetName();
   return TObject::GetName();
@@ -489,16 +516,19 @@ const char *AliHLTTask::GetName() const
 
 AliHLTConfiguration* AliHLTTask::GetConf() const
 {
+  // see header file for function documentation
   return fpConfiguration;
 }
 
 AliHLTComponent* AliHLTTask::GetComponent() const
 {
+  // see header file for function documentation
   return fpComponent;
 }
 
 AliHLTTask* AliHLTTask::FindDependency(const char* id)
 {
+  // see header file for function documentation
   AliHLTTask* pTask=NULL;
   if (id) {
     pTask=(AliHLTTask*)fListDependencies.FindObject(id);
@@ -508,6 +538,7 @@ AliHLTTask* AliHLTTask::FindDependency(const char* id)
 
 int AliHLTTask::FollowDependency(const char* id, TList* pTgtList)
 {
+  // see header file for function documentation
   int iResult=0;
   if (id) {
     AliHLTTask* pDep=NULL;
@@ -537,6 +568,7 @@ int AliHLTTask::FollowDependency(const char* id, TList* pTgtList)
 
 void AliHLTTask::PrintDependencyTree(const char* id, int bFromConfiguration)
 {
+  // see header file for function documentation
   HLTLogKeyword("task dependencies");
   int iResult=0;
   TList tgtList;
@@ -569,6 +601,7 @@ void AliHLTTask::PrintDependencyTree(const char* id, int bFromConfiguration)
 
 int AliHLTTask::SetDependency(AliHLTTask* pDep)
 {
+  // see header file for function documentation
   int iResult=0;
   if (pDep) {
     if (FindDependency(pDep->GetName())==NULL) {
@@ -584,6 +617,7 @@ int AliHLTTask::SetDependency(AliHLTTask* pDep)
 
 int AliHLTTask::CheckDependencies()
 {
+  // see header file for function documentation
   int iResult=0;
   AliHLTConfiguration* pSrc=fpConfiguration->GetFirstSource();
   while (pSrc) {
@@ -599,6 +633,7 @@ int AliHLTTask::CheckDependencies()
 
 int AliHLTTask::Depends(AliHLTTask* pTask)
 {
+  // see header file for function documentation
   int iResult=0;
   if (pTask) {
     if (fpConfiguration) {
@@ -619,6 +654,7 @@ int AliHLTTask::Depends(AliHLTTask* pTask)
 
 AliHLTTask* AliHLTTask::FindTarget(const char* id)
 {
+  // see header file for function documentation
   AliHLTTask* pTask=NULL;
   if (id) {
     pTask=(AliHLTTask*)fListTargets.FindObject(id);
@@ -628,6 +664,7 @@ AliHLTTask* AliHLTTask::FindTarget(const char* id)
 
 int AliHLTTask::SetTarget(AliHLTTask* pTgt)
 {
+  // see header file for function documentation
   int iResult=0;
   if (pTgt) {
     if (FindTarget(pTgt->GetName())==NULL) {
@@ -643,6 +680,7 @@ int AliHLTTask::SetTarget(AliHLTTask* pTgt)
 
 int AliHLTTask::StartRun()
 {
+  // see header file for function documentation
   int iResult=0;
   int iNofInputDataBlocks=0;
   AliHLTComponent* pComponent=GetComponent();
@@ -719,6 +757,7 @@ int AliHLTTask::StartRun()
 
 int AliHLTTask::EndRun()
 {
+  // see header file for function documentation
   int iResult=0;
   if (fpBlockDataArray) {
     fBlockDataArraySize=0;
@@ -737,6 +776,7 @@ int AliHLTTask::EndRun()
 
 int AliHLTTask::ProcessTask(Int_t eventNo)
 {
+  // see header file for function documentation
   int iResult=0;
   AliHLTComponent* pComponent=GetComponent();
   if (pComponent && fpDataBuffer) {
@@ -863,6 +903,7 @@ int AliHLTTask::ProcessTask(Int_t eventNo)
 
 int AliHLTTask::GetNofMatchingDataBlocks(const AliHLTTask* pConsumerTask) const
 {
+  // see header file for function documentation
   int iResult=0;
   if (pConsumerTask) {
     if (fpDataBuffer) {
@@ -879,6 +920,7 @@ int AliHLTTask::GetNofMatchingDataBlocks(const AliHLTTask* pConsumerTask) const
 
 int AliHLTTask::GetNofMatchingDataTypes(const AliHLTTask* pConsumerTask) const
 {
+  // see header file for function documentation
   int iResult=0;
   if (pConsumerTask) {
     AliHLTComponent* pComponent=GetComponent();
@@ -899,6 +941,7 @@ int AliHLTTask::GetNofMatchingDataTypes(const AliHLTTask* pConsumerTask) const
 
 int AliHLTTask::Subscribe(const AliHLTTask* pConsumerTask, AliHLTComponentBlockData* pBlockDesc, int iArraySize)
 {
+  // see header file for function documentation
   int iResult=0;
   if (pConsumerTask) {
     if (fpDataBuffer) {
@@ -915,6 +958,7 @@ int AliHLTTask::Subscribe(const AliHLTTask* pConsumerTask, AliHLTComponentBlockD
 
 int AliHLTTask::Release(AliHLTComponentBlockData* pBlockDesc, const AliHLTTask* pConsumerTask)
 {
+  // see header file for function documentation
   int iResult=0;
   if (pConsumerTask && pBlockDesc) {
     if (fpDataBuffer) {
@@ -929,16 +973,9 @@ int AliHLTTask::Release(AliHLTComponentBlockData* pBlockDesc, const AliHLTTask*
   return iResult;
 }
 
-/* this function is most likely depricated
-int AliHLTTask::ClearSourceBlocks()
-{
-  int iResult=0;
-  return iResult;
-}
-*/
-
 void AliHLTTask::PrintStatus()
 {
+  // see header file for function documentation
   HLTLogKeyword("task properties");
   AliHLTComponent* pComponent=GetComponent();
   if (pComponent) {
@@ -968,22 +1005,24 @@ void AliHLTTask::PrintStatus()
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
-TList AliHLTConfigurationHandler::fListConfigurations;
-TList AliHLTConfigurationHandler::fListDynamicConfigurations;
+TList AliHLTConfigurationHandler::fgListConfigurations;
+TList AliHLTConfigurationHandler::fgListDynamicConfigurations;
 
 /** ROOT macro for the implementation of ROOT specific class methods */
 ClassImp(AliHLTConfigurationHandler)
 
 AliHLTConfigurationHandler::AliHLTConfigurationHandler()
 {
+  // see header file for function documentation
 }
 
 AliHLTConfigurationHandler::~AliHLTConfigurationHandler()
 {
-  TObjLink* lnk=fListDynamicConfigurations.FirstLink();
+  // see header file for function documentation
+  TObjLink* lnk=fgListDynamicConfigurations.FirstLink();
   while (lnk) {
     TObject* obj=lnk->GetObject();
-    if (fListConfigurations.FindObject(obj->GetName())==NULL) {
+    if (fgListConfigurations.FindObject(obj->GetName())==NULL) {
       HLTDebug("delete dynamic configuration \"%s\"", obj->GetName());
       delete obj;
     }
@@ -993,14 +1032,15 @@ AliHLTConfigurationHandler::~AliHLTConfigurationHandler()
 
 int AliHLTConfigurationHandler::RegisterConfiguration(AliHLTConfiguration* pConf)
 {
+  // see header file for function documentation
   int iResult=0;
   if (pConf) {
     if (FindConfiguration(pConf->GetName()) == NULL) {
-      fListConfigurations.Add(pConf);
+      fgListConfigurations.Add(pConf);
       //HLTDebug("configuration \"%s\" registered", pConf->GetName());
 
       // mark all configurations with unresolved dependencies for re-evaluation
-      TObjLink* lnk=fListConfigurations.FirstLink();
+      TObjLink* lnk=fgListConfigurations.FirstLink();
       while (lnk) {
        AliHLTConfiguration* pSrc=(AliHLTConfiguration*)lnk->GetObject();
        if (pSrc && pSrc!=pConf && pSrc->SourcesResolved()!=1) {
@@ -1020,6 +1060,7 @@ int AliHLTConfigurationHandler::RegisterConfiguration(AliHLTConfiguration* pConf
 
 int AliHLTConfigurationHandler::CreateConfiguration(const char* id, const char* component, const char* sources, const char* arguments)
 {
+  // see header file for function documentation
   int iResult=0;
   AliHLTConfiguration* pConf= new AliHLTConfiguration(id, component, sources, arguments);
   if (pConf) {
@@ -1030,7 +1071,7 @@ int AliHLTConfigurationHandler::CreateConfiguration(const char* id, const char*
       pConf=NULL;
       iResult=-EEXIST;
     } else {
-      fListDynamicConfigurations.Add(pConf);
+      fgListDynamicConfigurations.Add(pConf);
     }
   } else {
     HLTError("system error: object allocation failed");
@@ -1041,9 +1082,10 @@ int AliHLTConfigurationHandler::CreateConfiguration(const char* id, const char*
 
 void AliHLTConfigurationHandler::PrintConfigurations()
 {
+  // see header file for function documentation
   HLTLogKeyword("configuration listing");
   HLTMessage("registered configurations:");
-  TObjLink *lnk = fListConfigurations.FirstLink();
+  TObjLink *lnk = fgListConfigurations.FirstLink();
   while (lnk) {
     TObject *obj = lnk->GetObject();
     HLTMessage("  %s", obj->GetName());
@@ -1053,6 +1095,7 @@ void AliHLTConfigurationHandler::PrintConfigurations()
 
 int AliHLTConfigurationHandler::RemoveConfiguration(const char* id)
 {
+  // see header file for function documentation
   int iResult=0;
   if (id) {
     AliHLTConfiguration* pConf=NULL;
@@ -1070,13 +1113,14 @@ int AliHLTConfigurationHandler::RemoveConfiguration(const char* id)
 
 int AliHLTConfigurationHandler::RemoveConfiguration(AliHLTConfiguration* pConf)
 {
+  // see header file for function documentation
   int iResult=0;
   if (pConf) {
     // remove the configuration from the list
     HLTDebug("remove configuration \"%s\"", pConf->GetName());
-    fListConfigurations.Remove(pConf);
+    fgListConfigurations.Remove(pConf);
     // remove cross links in the remaining configurations
-    TObjLink* lnk=fListConfigurations.FirstLink();
+    TObjLink* lnk=fgListConfigurations.FirstLink();
     while (lnk && iResult>=0) {
       AliHLTConfiguration* pRem=(AliHLTConfiguration*)lnk->GetObject();
       if (pRem) {
@@ -1092,9 +1136,10 @@ int AliHLTConfigurationHandler::RemoveConfiguration(AliHLTConfiguration* pConf)
 
 AliHLTConfiguration* AliHLTConfigurationHandler::FindConfiguration(const char* id)
 {
+  // see header file for function documentation
   AliHLTConfiguration* pConf=NULL;
   if (id) {
-    pConf=(AliHLTConfiguration*)fListConfigurations.FindObject(id); 
+    pConf=(AliHLTConfiguration*)fgListConfigurations.FindObject(id); 
   }
   return pConf;
 }
index 913f495db86b1f665435b10406d2bc6e58150994..192917716b5ff338aa42a48d884f9521e75ab09e 100644 (file)
@@ -102,7 +102,7 @@ class AliHLTConfiguration : public TObject, public AliHLTLogging {
    * The id is a unique string.
    * @return id of the component
    */
-  const char* GetComponentID() {return fComponent;}
+  const char* GetComponentID() const {return fComponent;}
 
   /**
    * Print status info.
@@ -183,23 +183,26 @@ class AliHLTConfiguration : public TObject, public AliHLTLogging {
    */
   int ExtractArguments();
 
-  /* helper function to build a vector from an argument string
+  /**
+   * Helper function to build a vector from an argument string
+   * @param arg       pointer to argument string
+   * @param argList   target to receive the argument list
    */
   int InterpreteString(const char* arg, vector<char*>& argList);
 
   /** id of this configuration */
-  const char* fID;
+  const char* fID;                                                 //! transient
   /** component id of this configuration */
-  const char* fComponent;
+  const char* fComponent;                                          //! transient
 
   /** the <i>sources</i> string as passed to the constructor */
-  const char* fStringSources;
+  const char* fStringSources;                                      //! transient
   /** number of resolved sources, -1 indicates re-evaluation */
-  int fNofSources;
+  int fNofSources;                                                 // see above
   /** list of sources */
-  vector<AliHLTConfiguration*> fListSources;
+  vector<AliHLTConfiguration*> fListSources;                       // see above
   /** iterator for the above list */
-  vector<AliHLTConfiguration*>::iterator fListSrcElement;
+  vector<AliHLTConfiguration*>::iterator fListSrcElement;          // see above
 
   /**
    * The argument string as passed to the constructor.
@@ -207,13 +210,14 @@ class AliHLTConfiguration : public TObject, public AliHLTLogging {
    * be parsed and the separated arguments stored in the @ref fArgv array
    * and @ref fArgc member.
    */
-  const char* fArguments;
+  const char* fArguments;                                          // see above
   /** number of arguments */
-  int fArgc;
+  int fArgc;                                                       // see above
   /** argument array */
-  char** fArgv;
+  char** fArgv;                                                    // see above
 
-  static AliHLTConfigurationHandler* fConfigurationHandler;
+  /** the instance of the global configuration handler */
+  static AliHLTConfigurationHandler* fgConfigurationHandler;       //! transient
 
   ClassDef(AliHLTConfiguration, 0);
 };
index 3749d25fc22c9a268550111e69fdc389210d39d5..c552a8df06691563da60a41b6c488d9b43864ca6 100644 (file)
     @brief  Global handling of HLT configurations.
 */
 
-/* #include <cerrno> */
-#include <TObject.h>
 #include <TList.h>
-/* #include "AliHLTDataTypes.h" */
-/* #include "AliHLTLogging.h" */
-/* #include "AliHLTDataBuffer.h" */
 
 /**
  * @class AliHLTConfigurationHandler
@@ -86,9 +81,9 @@ class AliHLTConfigurationHandler : public AliHLTLogging {
 
  private:
   /** the list of registered configurations */
-  static TList fListConfigurations;
+  static TList fgListConfigurations;                              // see above
   /** the list of dynamic configurations (for proper cleanup) */
-  static TList fListDynamicConfigurations;
+  static TList fgListDynamicConfigurations;                       // see above
 
   ClassDef(AliHLTConfigurationHandler, 0);
 };
index 8c6c278cdc94c6252af3e2503e4d4223223c0a25..bb187c866e5d2ee925588cafc63094e73a00b836 100644 (file)
@@ -35,6 +35,11 @@ AliHLTConsumerDescriptor::AliHLTConsumerDescriptor()
   fpConsumer(NULL),
   fSegments()
 {
+  // see header file for class documentation
+  // or
+  // refer to README to build package
+  // or
+  // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
   fSegments.clear();
 }
 
@@ -43,6 +48,7 @@ AliHLTConsumerDescriptor::AliHLTConsumerDescriptor(AliHLTComponent* pConsumer)
   fpConsumer(pConsumer),
   fSegments()
 {
+  // see header file for function documentation
   fSegments.clear();
 }
 
@@ -53,12 +59,16 @@ AliHLTConsumerDescriptor::AliHLTConsumerDescriptor(const AliHLTConsumerDescripto
   fpConsumer(desc.fpConsumer),
   fSegments()
 {
+  // see header file for function documentation
+
   // we can simply transfer the pointer to th new object since there are no
   // release actions in the destructor
 }
 
 AliHLTConsumerDescriptor& AliHLTConsumerDescriptor::operator=(const AliHLTConsumerDescriptor& desc)
 { 
+  // see header file for function documentation
+
   // we can simply transfer the pointer to th new object since there are no
   // release actions in the destructor
   fpConsumer=desc.fpConsumer;
@@ -67,6 +77,7 @@ AliHLTConsumerDescriptor& AliHLTConsumerDescriptor::operator=(const AliHLTConsum
 
 AliHLTConsumerDescriptor::~AliHLTConsumerDescriptor()
 {
+  // see header file for function documentation
   if (fSegments.size()>0) {
     //HLTWarning("unreleased data segments found");
   }
@@ -74,6 +85,7 @@ AliHLTConsumerDescriptor::~AliHLTConsumerDescriptor()
 
 int AliHLTConsumerDescriptor::SetActiveDataSegment(AliHLTUInt32_t offset, AliHLTUInt32_t size)
 {
+  // see header file for function documentation
   int iResult=0;
   AliHLTDataSegment segment(offset, size);
   fSegments.push_back(segment);
@@ -83,6 +95,7 @@ int AliHLTConsumerDescriptor::SetActiveDataSegment(AliHLTUInt32_t offset, AliHLT
 
 int AliHLTConsumerDescriptor::CheckActiveDataSegment(AliHLTUInt32_t offset, AliHLTUInt32_t size)
 {
+  // see header file for function documentation
   int iResult=0;
   if (fSegments.size()>0) {
     vector<AliHLTDataSegment>::iterator segment=fSegments.begin();
@@ -101,6 +114,7 @@ int AliHLTConsumerDescriptor::CheckActiveDataSegment(AliHLTUInt32_t offset, AliH
 
 int AliHLTConsumerDescriptor::ReleaseActiveDataSegment(AliHLTUInt32_t offset, AliHLTUInt32_t size)
 {
+  // see header file for function documentation
   int iResult=0;
   if (fSegments.size()>0) {
     vector<AliHLTDataSegment>::iterator segment=fSegments.begin();
@@ -134,11 +148,16 @@ AliHLTDataBuffer::AliHLTDataBuffer()
   fpBuffer(NULL),
   fFlags(0)
 {
+  // see header file for class documentation
+  // or
+  // refer to README to build package
+  // or
+  // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
   fSegments.empty();
   fConsumers.empty();
   fActiveConsumers.empty();
   fReleasedConsumers.empty();
-  fNofInstances++;
+  fgNofInstances++;
 }
 
 AliHLTDataBuffer::AliHLTDataBuffer(const AliHLTDataBuffer&)
@@ -152,24 +171,27 @@ AliHLTDataBuffer::AliHLTDataBuffer(const AliHLTDataBuffer&)
   fpBuffer(NULL),
   fFlags(0)
 {
+  // see header file for function documentation
   HLTFatal("copy constructor untested");
 }
 
 AliHLTDataBuffer& AliHLTDataBuffer::operator=(const AliHLTDataBuffer&)
 { 
+  // see header file for function documentation
   HLTFatal("assignment operator untested");
   return *this;
 }
 
-int AliHLTDataBuffer::fNofInstances=0;
-vector<AliHLTRawBuffer*> AliHLTDataBuffer::fFreeBuffers;
-vector<AliHLTRawBuffer*> AliHLTDataBuffer::fActiveBuffers;
-AliHLTUInt32_t AliHLTDataBuffer::fMargin=1024;
+int AliHLTDataBuffer::fgNofInstances=0;
+vector<AliHLTRawBuffer*> AliHLTDataBuffer::fgFreeBuffers;
+vector<AliHLTRawBuffer*> AliHLTDataBuffer::fgActiveBuffers;
+AliHLTUInt32_t AliHLTDataBuffer::fgMargin=1024;
 AliHLTLogging AliHLTDataBuffer::fgLogging;
 
 AliHLTDataBuffer::~AliHLTDataBuffer()
 {
-  if (--fNofInstances<=0) {
+  // see header file for function documentation
+  if (--fgNofInstances<=0) {
     DeleteRawBuffers();
   }
   CleanupConsumerList();
@@ -177,6 +199,7 @@ AliHLTDataBuffer::~AliHLTDataBuffer()
 
 int AliHLTDataBuffer::SetConsumer(AliHLTComponent* pConsumer)
 {
+  // see header file for function documentation
   int iResult=0;
   if (pConsumer) {
     if (FindConsumer(pConsumer)) {
@@ -199,6 +222,7 @@ int AliHLTDataBuffer::SetConsumer(AliHLTComponent* pConsumer)
 
 int AliHLTDataBuffer::FindMatchingDataBlocks(const AliHLTComponent* pConsumer, vector<AliHLTComponentDataType>* tgtList)
 {
+  // see header file for function documentation
   int iResult=0;
   if (pConsumer) {
     vector<AliHLTDataSegment> segments;
@@ -220,6 +244,7 @@ int AliHLTDataBuffer::FindMatchingDataBlocks(const AliHLTComponent* pConsumer, v
 
 int AliHLTDataBuffer::FindMatchingDataSegments(const AliHLTComponent* pConsumer, vector<AliHLTDataSegment>& tgtList)
 {
+  // see header file for function documentation
   int iResult=0;
   if (pConsumer) {
     vector<AliHLTComponentDataType> dtlist;
@@ -246,6 +271,7 @@ int AliHLTDataBuffer::FindMatchingDataSegments(const AliHLTComponent* pConsumer,
 
 int AliHLTDataBuffer::Subscribe(const AliHLTComponent* pConsumer, AliHLTComponentBlockData* arrayBlockDesc, int iArraySize)
 {
+  // see header file for function documentation
   int iResult=0;
   if (pConsumer && arrayBlockDesc) {
     if (fpBuffer) {
@@ -306,6 +332,7 @@ int AliHLTDataBuffer::Subscribe(const AliHLTComponent* pConsumer, AliHLTComponen
 
 int AliHLTDataBuffer::Release(AliHLTComponentBlockData* pBlockDesc, const AliHLTComponent* pConsumer)
 {
+  // see header file for function documentation
   int iResult=0;
   if (pBlockDesc && pConsumer) {
     AliHLTConsumerDescriptor* pDesc=FindConsumer(pConsumer, fActiveConsumers);
@@ -344,6 +371,7 @@ int AliHLTDataBuffer::Release(AliHLTComponentBlockData* pBlockDesc, const AliHLT
 
 AliHLTUInt8_t* AliHLTDataBuffer::GetTargetBuffer(int iMinSize)
 {
+  // see header file for function documentation
   AliHLTUInt8_t* pTargetBuffer=NULL;
   fpBuffer=CreateRawBuffer(iMinSize);
   if (fpBuffer) {
@@ -356,6 +384,7 @@ AliHLTUInt8_t* AliHLTDataBuffer::GetTargetBuffer(int iMinSize)
 
 int AliHLTDataBuffer::SetSegments(AliHLTUInt8_t* pTgt, AliHLTComponentBlockData* arrayBlockData, int iSize)
 {
+  // see header file for function documentation
   int iResult=0;
   if (pTgt && arrayBlockData && iSize>=0) {
     if (fpBuffer) {
@@ -391,40 +420,45 @@ int AliHLTDataBuffer::SetSegments(AliHLTUInt8_t* pTgt, AliHLTComponentBlockData*
 
 int AliHLTDataBuffer::IsEmpty()
 {
+  // see header file for function documentation
   int iResult=fpBuffer==NULL || GetNofSegments()==0;
   return iResult;
 }
 
 int AliHLTDataBuffer::GetNofSegments()
 {
+  // see header file for function documentation
   int iResult=fSegments.size();
   return iResult;
 }
 
 int AliHLTDataBuffer::GetNofConsumers()
 {
+  // see header file for function documentation
   int iResult=fConsumers.size() + GetNofActiveConsumers() + fReleasedConsumers.size();
   return iResult;
 }
 
 int AliHLTDataBuffer::GetNofActiveConsumers()
 {
+  // see header file for function documentation
   int iResult=fActiveConsumers.size();
   return iResult;
 }
 
 AliHLTRawBuffer* AliHLTDataBuffer::CreateRawBuffer(AliHLTUInt32_t size)
 {
+  // see header file for function documentation
   AliHLTRawBuffer* pRawBuffer=NULL;
-  vector<AliHLTRawBuffer*>::iterator buffer=fFreeBuffers.begin();
-  while (buffer!=fFreeBuffers.end() && pRawBuffer==NULL) {
-    if ((*buffer)->fTotalSize>=size && ((*buffer)->fTotalSize-size)<fMargin) {
+  vector<AliHLTRawBuffer*>::iterator buffer=fgFreeBuffers.begin();
+  while (buffer!=fgFreeBuffers.end() && pRawBuffer==NULL) {
+    if ((*buffer)->fTotalSize>=size && ((*buffer)->fTotalSize-size)<fgMargin) {
       // assign this element
       pRawBuffer=*buffer;
       pRawBuffer->fSize=size;
-      fFreeBuffers.erase(buffer);
+      fgFreeBuffers.erase(buffer);
       fgLogging.Logging(kHLTLogDebug, "AliHLTDataBuffer::CreateRawBuffer", "data buffer handling", "raw buffer container %p provided for request of %d bytes (total %d available in buffer %p)", pRawBuffer, size, pRawBuffer->fTotalSize, pRawBuffer->fPtr);
-      fActiveBuffers.push_back(pRawBuffer);
+      fgActiveBuffers.push_back(pRawBuffer);
       break;
     }
     buffer++;
@@ -438,7 +472,7 @@ AliHLTRawBuffer* AliHLTDataBuffer::CreateRawBuffer(AliHLTUInt32_t size)
       if (pRawBuffer->fPtr) {
        pRawBuffer->fSize=size;
        pRawBuffer->fTotalSize=size;
-       fActiveBuffers.push_back(pRawBuffer);
+       fgActiveBuffers.push_back(pRawBuffer);
        fgLogging.Logging(kHLTLogDebug, "AliHLTDataBuffer::CreateRawBuffer", "data buffer handling", "new raw buffer %p of size %d created (container %p)", pRawBuffer->fPtr, pRawBuffer->fTotalSize, pRawBuffer);
       } else {
        delete pRawBuffer;
@@ -454,16 +488,17 @@ AliHLTRawBuffer* AliHLTDataBuffer::CreateRawBuffer(AliHLTUInt32_t size)
 
 int AliHLTDataBuffer::ReleaseRawBuffer(AliHLTRawBuffer* pBuffer)
 {
+  // see header file for function documentation
   int iResult=0;
   if (pBuffer) {
-    vector<AliHLTRawBuffer*>::iterator buffer=fActiveBuffers.begin();
-    while (buffer!=fActiveBuffers.end() && (*buffer)!=pBuffer) {
+    vector<AliHLTRawBuffer*>::iterator buffer=fgActiveBuffers.begin();
+    while (buffer!=fgActiveBuffers.end() && (*buffer)!=pBuffer) {
       buffer++;
     }
-    if (buffer!=fActiveBuffers.end()) {
+    if (buffer!=fgActiveBuffers.end()) {
       (*buffer)->fSize=0;
-      fFreeBuffers.push_back(*buffer);
-      fActiveBuffers.erase(buffer);
+      fgFreeBuffers.push_back(*buffer);
+      fgActiveBuffers.erase(buffer);
     } else {
       fgLogging.Logging(kHLTLogWarning, "AliHLTDataBuffer::ReleaseRawBuffer", "data buffer handling", "can not find raw buffer container %p in the list of active containers", pBuffer);
       iResult=-ENOENT;
@@ -478,27 +513,29 @@ int AliHLTDataBuffer::ReleaseRawBuffer(AliHLTRawBuffer* pBuffer)
 
 int AliHLTDataBuffer::DeleteRawBuffers() 
 {
+  // see header file for function documentation
   int iResult=0;
-  vector<AliHLTRawBuffer*>::iterator buffer=fFreeBuffers.begin();
-  while (buffer!=fFreeBuffers.end()) {
+  vector<AliHLTRawBuffer*>::iterator buffer=fgFreeBuffers.begin();
+  while (buffer!=fgFreeBuffers.end()) {
     free((*buffer)->fPtr);
     delete *buffer;
-    fFreeBuffers.erase(buffer);
-    buffer=fFreeBuffers.begin();
+    fgFreeBuffers.erase(buffer);
+    buffer=fgFreeBuffers.begin();
   }
-  buffer=fActiveBuffers.begin();
-  while (buffer!=fActiveBuffers.end()) {
+  buffer=fgActiveBuffers.begin();
+  while (buffer!=fgActiveBuffers.end()) {
     fgLogging.Logging(kHLTLogWarning, "AliHLTDataBuffer::ReleaseRawBuffer", "data buffer handling", "request to delete active raw buffer container (raw buffer %p, size %d)", (*buffer)->fPtr, (*buffer)->fTotalSize);
     free((*buffer)->fPtr);
     delete *buffer;
-    fActiveBuffers.erase(buffer);
-    buffer=fActiveBuffers.begin();
+    fgActiveBuffers.erase(buffer);
+    buffer=fgActiveBuffers.begin();
   }
   return iResult;
 }
 
-AliHLTConsumerDescriptor* AliHLTDataBuffer::FindConsumer(const AliHLTComponent* pConsumer, vector<AliHLTConsumerDescriptor*> &list)
+AliHLTConsumerDescriptor* AliHLTDataBuffer::FindConsumer(const AliHLTComponent* pConsumer, vector<AliHLTConsumerDescriptor*> &list) const
 {
+  // see header file for function documentation
   AliHLTConsumerDescriptor* pDesc=NULL;
   vector<AliHLTConsumerDescriptor*>::iterator desc=list.begin();
   while (desc!=list.end() && pDesc==NULL) {
@@ -512,6 +549,7 @@ AliHLTConsumerDescriptor* AliHLTDataBuffer::FindConsumer(const AliHLTComponent*
 
 int AliHLTDataBuffer::ResetDataBuffer() 
 {
+  // see header file for function documentation
   int iResult=0;
   AliHLTRawBuffer* pBuffer=fpBuffer;
   fpBuffer=NULL;
@@ -549,6 +587,7 @@ int AliHLTDataBuffer::ResetDataBuffer()
 
 int AliHLTDataBuffer::Reset()
 {
+  // see header file for function documentation
   return ResetDataBuffer();
 }
 
@@ -579,6 +618,7 @@ int AliHLTDataBuffer::Reset()
 
 int AliHLTDataBuffer::ChangeConsumerState(AliHLTConsumerDescriptor* pDesc, vector<AliHLTConsumerDescriptor*> &srcList, vector<AliHLTConsumerDescriptor*> &tgtList)
 {
+  // see header file for function documentation
   int iResult=-ENOENT;
   if (pDesc) {
     vector<AliHLTConsumerDescriptor*>::iterator desc=srcList.begin();
@@ -601,7 +641,9 @@ int AliHLTDataBuffer::ChangeConsumerState(AliHLTConsumerDescriptor* pDesc, vecto
   return iResult;
 }
 
-int AliHLTDataBuffer::CleanupConsumerList() {
+int AliHLTDataBuffer::CleanupConsumerList() 
+{
+  // see header file for function documentation
   int iResult=0;
   ResetDataBuffer();
   vector<AliHLTConsumerDescriptor*>::iterator desc=fConsumers.begin();
@@ -613,7 +655,9 @@ int AliHLTDataBuffer::CleanupConsumerList() {
   return iResult;
 }
 
-int AliHLTDataBuffer::FindConsumer(AliHLTComponent* pConsumer, int bAllLists) {
+int AliHLTDataBuffer::FindConsumer(AliHLTComponent* pConsumer, int bAllLists)
+{
+  // see header file for function documentation
   vector<AliHLTConsumerDescriptor*>::iterator desc=fConsumers.begin();
   while (desc!=fConsumers.end()) {
     if ((*desc)->GetComponent()==pConsumer)
index 5e4f3c203ba09bc15c619251b776607c1a941c11..972ec75b54b63f5267c3f815628a482bd25f07e9 100644 (file)
@@ -18,7 +18,7 @@
 #include "AliHLTDataTypes.h"
 #include "AliHLTDefinitions.h"
 #include "TObject.h"
-#include "TList.h"
+//#include "TList.h"
 
 class AliHLTComponent;
 /* @name internal data structures
@@ -49,13 +49,13 @@ struct AliHLTDataSegment {
     memset(&fDataType, 0, sizeof(AliHLTComponentDataType));
   }
   /** the data type of this segment */
-  AliHLTComponentDataType fDataType;
+  AliHLTComponentDataType fDataType;                               // see above
   /** offset in byte within the data buffer */
-  AliHLTUInt32_t fSegmentOffset;
+  AliHLTUInt32_t fSegmentOffset;                                   // see above
   /** size of the actual content */
-  AliHLTUInt32_t fSegmentSize;
+  AliHLTUInt32_t fSegmentSize;                                     // see above
   /** data specification */
-  AliHLTUInt32_t fSpecification;
+  AliHLTUInt32_t fSpecification;                                   // see above
 };
 
 /**
@@ -65,30 +65,27 @@ struct AliHLTDataSegment {
  */
 struct AliHLTRawBuffer {
   /** size of the currently occupied partition of the buffer */
-  AliHLTUInt32_t fSize;
+  AliHLTUInt32_t fSize;                                            // see above
   /** total size of the buffer, including safety margin */
-  AliHLTUInt32_t fTotalSize;
+  AliHLTUInt32_t fTotalSize;                                       // see above
   /** the buffer */
-  void* fPtr;
+  void* fPtr;                                                      //! transient
 };
 
 /**
  * @class AliHLTConsumerDescriptor
  * @brief Helper class to describe a consumer component.
  *
- * There is unfortunately no unique determination of the data type from the component
- * itself possible, thats why both component and data type have to be initialized
- * and are stored in a compound. The class is intended to make bookkeeping easier.
+ * There is unfortunately no unique determination of the data type from the
+ * component itself possible, thats why both component and data type have to
+ * be initialized and are stored in a compound. The class is intended to make
+ * bookkeeping easier.
  *
  * @note This class is only used for the @ref alihlt_system.
  *
  * @ingroup alihlt_system
  */
 class AliHLTConsumerDescriptor : public TObject, public AliHLTLogging {
- private:
-  AliHLTComponent* fpConsumer;
-  vector<AliHLTDataSegment> fSegments;
-
  public:
   /** standard constructur */
   AliHLTConsumerDescriptor();
@@ -104,14 +101,15 @@ class AliHLTConsumerDescriptor : public TObject, public AliHLTLogging {
   ~AliHLTConsumerDescriptor();
 
   /**
-   * Get the component of this descriptor
+   * Get the component of this descriptor.
    * @return pointer to the component
    */
   AliHLTComponent* GetComponent() {return fpConsumer;}
 
   /**
-   * Set an active data segment
-   * the pointer will be handled in a container, no allocation, copy or cleanup
+   * Set an active data segment.
+   * the pointer will be handled in a container, no allocation, copy or
+   * cleanup.
    * @param offset  offset of the segment in the buffer
    * @param size    size of the segment in the buffer
    * @return >=0 if succeeded
@@ -119,7 +117,8 @@ class AliHLTConsumerDescriptor : public TObject, public AliHLTLogging {
   int SetActiveDataSegment(AliHLTUInt32_t offset, AliHLTUInt32_t size);
 
   /**
-   * check whether there is an active data segment of certain size with certain offset
+   * Check whether there is an active data segment of certain size with
+   * certain offset.
    * @param offset  offset of the data segment in the data buffer
    * @param size    size of the data segment in the data buffer
    * @return > if existend, 0 if not
@@ -143,6 +142,13 @@ class AliHLTConsumerDescriptor : public TObject, public AliHLTLogging {
    */
   int ReleaseActiveDataSegment(AliHLTUInt32_t offset, AliHLTUInt32_t size);
 
+ private:
+  /** consumer object */
+  AliHLTComponent* fpConsumer;                                     //! transient
+
+  /** list of data segments */
+  vector<AliHLTDataSegment> fSegments;                             // see above
+
   //ClassDef(AliHLTConsumerDescriptor, 0)
 };
 
@@ -150,15 +156,15 @@ class AliHLTConsumerDescriptor : public TObject, public AliHLTLogging {
  * @class AliHLTDataBuffer
  * @brief  Handling of data buffers for the HLT.
  * 
- * The class provides handling of data buffers for HLT tasks. Each task gets its
- * own Data Buffer instance. The buffer is grouped into different data segments according
- * to the output of the component.<br>
- * The Data Buffer keeps control over the data requests of the 'child' components. Each 
- * component can subscribe to a certain segment of the data buffer. It's state is then 
- * changed from 'reserved' to 'active'. After the data processing, the component has to 
- * release the segment and it's state is set to 'processed'.
- * If all components have requested and released their data, the Raw Buffer is released
- * and pushed back in the list of available buffers.
+ * The class provides handling of data buffers for HLT tasks. Each task gets
+ * its own Data Buffer instance. The buffer is grouped into different data
+ * segments according to the output of the component.<br>
+ * The Data Buffer keeps control over the data requests of the 'child'
+ * components. Each component can subscribe to a certain segment of the data
+ * buffer. It's state is then changed from 'reserved' to 'active'. After the
+ * data processing, the component has to release the segment and it's state is
+ * set to 'processed'. If all components have requested and released their data,
+ * the Raw Buffer is released and pushed back in the list of available buffers.
  *
  * @note This class is only used for the @ref alihlt_system.
  *
@@ -166,7 +172,7 @@ class AliHLTConsumerDescriptor : public TObject, public AliHLTLogging {
  */
 class AliHLTDataBuffer : public TObject, public AliHLTLogging {
  public:
-  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+  //////////////////////////////////////////////////////////////////////////////
   // condtructors and destructors
 
   /* standard constructor
@@ -179,7 +185,7 @@ class AliHLTDataBuffer : public TObject, public AliHLTLogging {
   /** destructor */
   virtual ~AliHLTDataBuffer();
 
-  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+  //////////////////////////////////////////////////////////////////////////////
   // initialization
 
   /**
@@ -188,39 +194,44 @@ class AliHLTDataBuffer : public TObject, public AliHLTLogging {
    */
   int SetConsumer(AliHLTComponent* pConsumer);
 
-  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+  //////////////////////////////////////////////////////////////////////////////
   // component to component communication
 
   /**
-   * Determine the number of matching data blocks for the component and a consumer
-   * component. <br>
-   * The first approach will support only one output data type for processing components.
+   * Determine the number of matching data blocks for the component and a
+   * consumer component. <br>
+   * The first approach will support only one output data type for processing
+   * components.
    * @param pConsumer       the component which subscribes to the buffer
    * @param tgtList         (optional) the list to receive the data types
    * @return: number of data blocks which match the input data types 
    *          of the consumer, neg. error code if failed <br>
    *          -EINVAL       invalid parameter <br>
    */
-  int FindMatchingDataBlocks(const AliHLTComponent* pConsumer, vector<AliHLTComponentDataType>* tgtList=NULL);
+  int FindMatchingDataBlocks(const AliHLTComponent* pConsumer,
+                            vector<AliHLTComponentDataType>* tgtList=NULL);
 
   /**
    * Subscribe to a segment of the data buffer.
-   * The function prepares the block descriptor for subsequent use with the AliHLTComponent::ProcessEvent
-   * method, the method can prepare several block descriptors up to the array size specified by
-   * iArraySize. The return value is independent from the array size the number of block descriptors 
-   * which would have been prepared if there was enough space in the array<br>
+   * The function prepares the block descriptor for subsequent use with the
+   * AliHLTComponent::ProcessEvent method, the method can prepare several block
+   * descriptors up to the array size specified by iArraySize. The return value
+   * is independent from the array size the number of block descriptors which
+   * would have been prepared if there was enough space in the array<br>
    * The method is used by the consumer component.
    * @param pConsumer       the component which subscribes to the buffer
    * @param arrayBlockDesc  pointer to block descriptor to be filled
    * @param iArraySize      size of the block descriptor array
-   * @return: number of matching data blocks if success, negative error code if failed<br>
-   *          -EACCESS      the state of the consumer can not be changed (activated)
+   * @return: number of matching data blocks, neg. error code if failed<br>
+   *          -EACCESS      the consumer state can't be changed (activated)
    *          -EBADF        unresolved data segments <br>
    *          -ENOENT       consumer component not found <br>
    *          -ENODATA      data buffer does not have raw data <br>
    *          -EINVAL       invalid parameter <br>
    */
-  int Subscribe(const AliHLTComponent* pConsumer, AliHLTComponentBlockData* arrayBlockDesc, int iArraySize);
+  int Subscribe(const AliHLTComponent* pConsumer,
+               AliHLTComponentBlockData* arrayBlockDesc,
+               int iArraySize);
 
   /**
    * Release an instance of the data buffer.
@@ -231,8 +242,8 @@ class AliHLTDataBuffer : public TObject, public AliHLTLogging {
    * @param pBlockDesc      descriptor of the data segment
    * @param pConsumer       the component which subscribes to the buffer
    * @return: >0 if success, negative error code if failed <br>
-   *          -EACCESS      the state of the consumer can not be changed (de-activated)
-   *          -ENOENT       consumer component has not subscribed to the buffer <br>
+   *          -EACCESS      the consumer state can not be changed (de-activated)
+   *          -ENOENT       consumer has not subscribed to the buffer <br>
    *          -EINVAL       invalid parameter <br>
    */
   int Release(AliHLTComponentBlockData* pBlockDesc, const AliHLTComponent* pConsumer);
@@ -252,8 +263,8 @@ class AliHLTDataBuffer : public TObject, public AliHLTLogging {
    * which was requested by the @ref GetTargetBuffer method. The component might
    * produce different types of data, for each type a segment has to be defined
    * which describes the data inside the buffer.<br>
-   * The @ref AliHLTComponentBlockData segment descriptor comes directly from the
-   * @ref AliHLTComponent::ProcessEvent method.
+   * The @ref AliHLTComponentBlockData segment descriptor comes directly from
+   * the @ref AliHLTComponent::ProcessEvent method.
    * @param pTgt            the target buffer which the segments refer to
    * @param arraySegments   the output block descriptors of the component
    * @param iSize           size of the array
@@ -328,26 +339,27 @@ class AliHLTDataBuffer : public TObject, public AliHLTLogging {
    */
   int ResetDataBuffer();
 
-  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+  //////////////////////////////////////////////////////////////////////////////
+
   // the data description
 
   // the data segments within this buffer
-  vector<AliHLTDataSegment> fSegments;
+  vector<AliHLTDataSegment> fSegments;                             // see above
 
   // the list of all consumers which are going to subscribe to the buffer
-  vector<AliHLTConsumerDescriptor*> fConsumers;
+  vector<AliHLTConsumerDescriptor*> fConsumers;                    // see above
   // the list of all consumers which are currently subscribed to the buffer
-  vector<AliHLTConsumerDescriptor*> fActiveConsumers;
+  vector<AliHLTConsumerDescriptor*> fActiveConsumers;              // see above
   // the list of all consumers which are already released for the current event
-  vector<AliHLTConsumerDescriptor*> fReleasedConsumers;
+  vector<AliHLTConsumerDescriptor*> fReleasedConsumers;            // see above
 
   // the buffer instance
-  AliHLTRawBuffer* fpBuffer;
+  AliHLTRawBuffer* fpBuffer;                                       //! transient
 
   // flags indicating the state of the buffer
-  AliHLTUInt32_t fFlags;
+  AliHLTUInt32_t fFlags;                                           // see above
 
-  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+  //////////////////////////////////////////////////////////////////////////////
   // global buffer handling, internal use only
 
   /**
@@ -362,8 +374,8 @@ class AliHLTDataBuffer : public TObject, public AliHLTLogging {
 
   /**
    * Mark a buffer as free.
-   * After the Data Buffer has finnished using the raw buffer, it is released and
-   * added to the list of available buffers.
+   * After the Data Buffer has finnished using the raw buffer, it is released
+   * and added to the list of available buffers.
    * @param pBuffer         the raw buffer to release
    * @return >=0 if succeeded, neg. error code if failed
    */
@@ -371,47 +383,53 @@ class AliHLTDataBuffer : public TObject, public AliHLTLogging {
 
   /**
    * Deletes all the raw buffers.
-   * When the last Data Buffer object is destructed, all raw data buffers are relesed.
+   * When the last Data Buffer object is destructed, all raw data buffers are
+   * relesed.
    */
   static int DeleteRawBuffers();
 
   /**
    * Number of instances of AliHLTDataBuffer.
-   * The statice variable is incremented and decremented in the constructor/destructor.
-   * All internal data structures are cleaned up when the last instance is exiting.
+   * The statice variable is incremented and decremented in the constructor/
+   * destructor. All internal data structures are cleaned up when the last
+   * instance is exiting.
    */
-  static int fNofInstances;
+  static int fgNofInstances;                                       // see above
   /** global list of free raw buffers */
-  static vector<AliHLTRawBuffer*> fFreeBuffers;
+  static vector<AliHLTRawBuffer*> fgFreeBuffers;                   // see above
   /** global list of currently active raw buffers */
-  static vector<AliHLTRawBuffer*> fActiveBuffers;
+  static vector<AliHLTRawBuffer*> fgActiveBuffers;                 // see above
   /** determines the raw buffer size margin at buffer requests */
-  static AliHLTUInt32_t fMargin;
+  static AliHLTUInt32_t fgMargin;                                  // see above
 
   /** global instance to HLT logging class for static methods */
-  static AliHLTLogging fgLogging;
+  static AliHLTLogging fgLogging;                                  // see above
 
-  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+  //////////////////////////////////////////////////////////////////////////////
   // internal helper functions
 
   /**
    * Find the consumer descriptor for a certain component and data type in 
    * a list of consumers.<br>
-   * <b>Note:</b> There are three lists which contain the consumers in the different states.
+   * <b>Note:</b> There are three lists which contain the consumers in the
+   * different states.
    * @param pConsumer       pointer to consumer component
    * @param list            list where to search for the consumer
    */
-  AliHLTConsumerDescriptor* FindConsumer(const AliHLTComponent* pConsumer, vector<AliHLTConsumerDescriptor*> &list);
+  AliHLTConsumerDescriptor* FindConsumer(const AliHLTComponent* pConsumer,
+                                        vector<AliHLTConsumerDescriptor*> &list) const;
 
   /**
    * Change the state of a consumer.
-   * The state of a consumer is determined by the list it is strored in, the method moves a consumer from 
-   * the source to the target list.
+   * The state of a consumer is determined by the list it is strored in, the
+   * method moves a consumer from the source to the target list.
    * @param pDesc           pointer to consumer descriptor
    * @param srcList         list where the consumer is currently to be found
    * @param tgtList         list where to move the consumer
    */
-  int ChangeConsumerState(AliHLTConsumerDescriptor* pDesc, vector<AliHLTConsumerDescriptor*> &srcList, vector<AliHLTConsumerDescriptor*> &tgtList);
+  int ChangeConsumerState(AliHLTConsumerDescriptor* pDesc,
+                         vector<AliHLTConsumerDescriptor*> &srcList,
+                         vector<AliHLTConsumerDescriptor*> &tgtList);
 
   /**
    * Cleanup a consumer list.
index 65acccb3de354cc66f0de6fe1742610ccf7b67fe..26cbe746c7e5ac19b445b3ece5f57c206496c54f 100644 (file)
@@ -31,14 +31,21 @@ ClassImp(AliHLTDataSink)
 
 AliHLTDataSink::AliHLTDataSink()
 { 
+  // see header file for class documentation
+  // or
+  // refer to README to build package
+  // or
+  // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
 }
 
 AliHLTDataSink::~AliHLTDataSink()
 { 
+  // see header file for class documentation
 }
 
 AliHLTComponentDataType AliHLTDataSink::GetOutputDataType()
 {
+  // see header file for class documentation
   AliHLTComponentDataType dt =
     {sizeof(AliHLTComponentDataType),
      kAliHLTVoidDataTypeID,
@@ -48,6 +55,7 @@ AliHLTComponentDataType AliHLTDataSink::GetOutputDataType()
 
 void AliHLTDataSink::GetOutputDataSize( unsigned long& constBase, double& inputMultiplier )
 {
+  // see header file for class documentation
   constBase=0;
   inputMultiplier=0;
 }
@@ -61,6 +69,7 @@ int AliHLTDataSink::DoProcessing( const AliHLTComponentEventData& evtData,
                                    AliHLTComponentBlockData*& outputBlocks,
                                    AliHLTComponentEventDoneData*& edd )
 {
+  // see header file for class documentation
   int iResult=0;
   if (outputPtr==NULL
       && size==0 
index c605d278f06a5ae338c912c5f383cfb5908b2baa..9f6292f339173d78b77e1290051412a294453ad9 100644 (file)
@@ -31,14 +31,21 @@ ClassImp(AliHLTDataSource)
 
 AliHLTDataSource::AliHLTDataSource()
 { 
+  // see header file for class documentation
+  // or
+  // refer to README to build package
+  // or
+  // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
 }
 
 AliHLTDataSource::~AliHLTDataSource()
 { 
+  // see header file for class documentation
 }
 
 void AliHLTDataSource::GetInputDataTypes( vector<AliHLTComponentDataType>& list)
 {
+  // see header file for class documentation
   list.clear(); // there are no input data types
 }
 
@@ -52,6 +59,7 @@ int AliHLTDataSource::DoProcessing( const AliHLTComponentEventData& evtData,
                                    AliHLTComponentBlockData*& outputBlocks,
                                    AliHLTComponentEventDoneData*& edd )
 {
+  // see header file for class documentation
   int iResult=0;
   if (blocks) {
     // this is currently just to get rid of the warning "unused parameter"
index 8cab1dbbc386f2199df4afa3e31f67ca2857967a..f676a296de101c10a2e0d50723f51c1f9208038e 100644 (file)
@@ -41,6 +41,12 @@ AliHLTFilePublisher::AliHLTFilePublisher()
   fSpecification(~(AliHLTUInt32_t)0),
   fMaxSize(0)
 {
+  // see header file for class documentation
+  // or
+  // refer to README to build package
+  // or
+  // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
+
   // make the lists owners of their objects in order to automatically
   // de-allocate the objects
   fFileNames.SetOwner();
@@ -56,28 +62,34 @@ AliHLTFilePublisher::AliHLTFilePublisher(const AliHLTFilePublisher&)
   fSpecification(0),
   fMaxSize(0)
 {
+  // see header file for class documentation
   HLTFatal("copy constructor untested");
 }
 
 AliHLTFilePublisher& AliHLTFilePublisher::operator=(const AliHLTFilePublisher&)
 { 
+  // see header file for class documentation
   HLTFatal("assignment operator untested");
   return *this;
 }
 
 AliHLTFilePublisher::~AliHLTFilePublisher()
 {
+  // see header file for class documentation
+
   // file list and file name list are owner of their objects and
   // delete all the objects
 }
 
 const char* AliHLTFilePublisher::GetComponentID()
 {
+  // see header file for class documentation
   return "FilePublisher";
 }
 
 AliHLTComponentDataType AliHLTFilePublisher::GetOutputDataType()
 {
+  // see header file for class documentation
   AliHLTComponentDataType dt =
     {sizeof(AliHLTComponentDataType),
      kAliHLTVoidDataTypeID,
@@ -87,17 +99,21 @@ AliHLTComponentDataType AliHLTFilePublisher::GetOutputDataType()
 
 void AliHLTFilePublisher::GetOutputDataSize( unsigned long& constBase, double& inputMultiplier )
 {
+  // see header file for class documentation
   constBase=fMaxSize;
   inputMultiplier=1.0;
 }
 
 AliHLTComponent* AliHLTFilePublisher::Spawn()
 {
+  // see header file for class documentation
   return new AliHLTFilePublisher;
 }
 
 int AliHLTFilePublisher::DoInit( int argc, const char** argv )
 {
+  // see header file for class documentation
+
   //HLTDebug("%d %s", argc, argv[0]);
   int iResult=0;
   TString argument="";
@@ -172,12 +188,15 @@ int AliHLTFilePublisher::DoInit( int argc, const char** argv )
 
 int AliHLTFilePublisher::ScanArgument(int argc, const char** argv)
 {
+  // see header file for class documentation
+
   // there are no other arguments than the standard ones
   return -EINVAL;
 }
 
 int AliHLTFilePublisher::OpenFiles()
 {
+  // see header file for class documentation
   int iResult=0;
   TObjLink *lnk=fFileNames.FirstLink();
   while (lnk && iResult>=0) {
@@ -204,6 +223,7 @@ int AliHLTFilePublisher::OpenFiles()
 
 int AliHLTFilePublisher::DoDeinit()
 {
+  // see header file for class documentation
   int iResult=0;
   fFileNames.Clear();
   fFiles.Clear();
index 3c875b81fac928189df4174bd75dbe40a0ef5922..2d61e0b528d5451d682186b54a9ba66ffecf4286 100644 (file)
@@ -108,12 +108,18 @@ class AliHLTFilePublisher : public AliHLTDataSource  {
   virtual int ScanArgument(int argc, const char** argv);
 
  private:
-  TList                   fFileNames;
-  TList                   fFiles;
-  TObjLink*               fpCurrent; //! transient value
-  AliHLTComponentDataType fDataType;
-  AliHLTUInt32_t          fSpecification;
-  Int_t                   fMaxSize;
+  /** list of file names */
+  TList                   fFileNames;                              // see above
+  /** list of opened files */
+  TList                   fFiles;                                  // see above
+  /** current positions in the file list */
+  TObjLink*               fpCurrent;                               //! transient
+  /** data type */
+  AliHLTComponentDataType fDataType;                               // see above
+  /** data specification */
+  AliHLTUInt32_t          fSpecification;                          // see above
+  /** the maximum buffer size i.e. size of the biggest file */
+  Int_t                   fMaxSize;                                // see above
 
   ClassDef(AliHLTFilePublisher, 0)
 };
index b6795d945fda51105adb96e4b7f6a8958bb4a6c1..bd4e993679dd16644703dcc316c0bad39cc0400f 100644 (file)
@@ -41,6 +41,11 @@ AliHLTFileWriter::AliHLTFileWriter()
   fCurrentFileName(""),
   fMode(0)
 {
+  // see header file for class documentation
+  // or
+  // refer to README to build package
+  // or
+  // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
 }
 
 AliHLTFileWriter::AliHLTFileWriter(const AliHLTFileWriter&)
@@ -51,39 +56,47 @@ AliHLTFileWriter::AliHLTFileWriter(const AliHLTFileWriter&)
   fCurrentFileName(""),
   fMode(0)
 {
+  // see header file for class documentation
   HLTFatal("copy constructor untested");
 }
 
 AliHLTFileWriter& AliHLTFileWriter::operator=(const AliHLTFileWriter&)
 { 
+  // see header file for class documentation
   HLTFatal("assignment operator untested");
   return *this;
 }
 
 AliHLTFileWriter::~AliHLTFileWriter()
 {
+  // see header file for class documentation
+
   // file list and file name list are owner of their objects and
   // delete all the objects
 }
 
 const char* AliHLTFileWriter::GetComponentID()
 {
+  // see header file for class documentation
   return "FileWriter";
 }
 
 void AliHLTFileWriter::GetInputDataTypes( vector<AliHLTComponentDataType>& list)
 {
+  // see header file for class documentation
   list.clear();
   list.push_back(kAliHLTAnyDataType);
 }
 
 AliHLTComponent* AliHLTFileWriter::Spawn()
 {
+  // see header file for class documentation
   return new AliHLTFileWriter;
 }
 
 int AliHLTFileWriter::DoInit( int argc, const char** argv )
 {
+  // see header file for class documentation
   int iResult=0;
   TString argument="";
   int bMissingParam=0;
@@ -152,18 +165,21 @@ int AliHLTFileWriter::DoInit( int argc, const char** argv )
 
 int AliHLTFileWriter::InitWriter()
 {
+  // see header file for class documentation
   return 0; // note: this doesn't mean 'error'
 }
 
 int AliHLTFileWriter::ScanArgument(int argc, const char** argv)
 {
+  // see header file for class documentation
+
   // there are no other arguments than the standard ones
   return -EINVAL;
 }
 
 int AliHLTFileWriter::DoDeinit()
 {
-  HLTDebug("");
+  // see header file for class documentation
   int iResult=CloseWriter();
   ClearMode(kEnumerate);
   return iResult;
@@ -171,6 +187,7 @@ int AliHLTFileWriter::DoDeinit()
 
 int AliHLTFileWriter::CloseWriter()
 {
+  // see header file for class documentation
   return 0; // note: this doesn't mean 'error'
 }
 
@@ -178,6 +195,7 @@ int AliHLTFileWriter::DumpEvent( const AliHLTComponentEventData& evtData,
                         const AliHLTComponentBlockData* blocks, 
                         AliHLTComponentTriggerData& trigData )
 {
+  // see header file for class documentation
   int iResult=0;
   if (CheckMode(kConcatenateEvents)==0) {
     // reset the current file name in order to open a new file
@@ -215,6 +233,7 @@ int AliHLTFileWriter::DumpEvent( const AliHLTComponentEventData& evtData,
 
 int AliHLTFileWriter::BuildFileName(const AliHLTEventID_t eventID, const int blockID, const AliHLTComponentDataType& dataType, TString& filename)
 {
+  // see header file for class documentation
   int iResult=0;
   //HLTDebug("build file name for event %d block %d", eventID, blockID);
   filename="";
@@ -251,6 +270,7 @@ int AliHLTFileWriter::BuildFileName(const AliHLTEventID_t eventID, const int blo
 
 int AliHLTFileWriter::SetMode(Short_t mode) 
 {
+  // see header file for class documentation
   fMode|=mode;
   //HLTDebug("mode set to 0x%x", fMode);
   return fMode;
@@ -258,6 +278,7 @@ int AliHLTFileWriter::SetMode(Short_t mode)
 
 int AliHLTFileWriter::ClearMode(Short_t mode)
 {
+  // see header file for class documentation
   fMode&=~mode;
   //HLTDebug("mode set to 0x%x", fMode);
   return fMode;
@@ -265,6 +286,8 @@ int AliHLTFileWriter::ClearMode(Short_t mode)
 
 int AliHLTFileWriter::CheckMode(Short_t mode)
 {
+  // see header file for class documentation
+
   //HLTDebug("check mode 0x%x for flag 0x%x: %d", fMode, mode, (fMode&mode)!=0);
   return (fMode&mode)!=0;
 }
index 9a281be18d7c32dad8aa1f7cc070790913b989ce..bd994c75abab6975a5611a7e1cfda53c310ebf69 100644 (file)
@@ -174,16 +174,16 @@ class AliHLTFileWriter : public AliHLTDataSink  {
 
  private:
   /** the basename of the output file */
-  TString    fBaseName;
+  TString    fBaseName;                                            // see above
   /** the extension of the output file */
-  TString    fExtension;
+  TString    fExtension;                                           // see above
   /** target directory */
-  TString    fDirectory;
+  TString    fDirectory;                                           // see above
   /** enumeration format string */
-  TString    fCurrentFileName;
+  TString    fCurrentFileName;                                     // see above
 
   /** mode specifier, see @ref TWriterMode */
-  Short_t    fMode;
+  Short_t    fMode;                                                // see above
 
   ClassDef(AliHLTFileWriter, 1)
 };
index c461d05e3601bc7e105eb3d2e8f3c32f911e37de..b4cf3408383deba2ccea1148847ee08986de74bb 100644 (file)
@@ -37,7 +37,7 @@
 #define HLTFatal( ... )     LoggingVarargs(kHLTLogFatal,     this->Class_Name() , __func__ ,  __VA_ARGS__ )
 
 // helper macro to set the keyword
-#define HLTLogKeyword(a)    AliHLTKeyword __hltlog_tmpkey__LINE__(this, a)
+#define HLTLogKeyword(a)    AliHLTKeyword hltlogTmpkey__LINE__(this, a)
 
 #define HLT_DEFAULT_LOG_KEYWORD "no key"
 
index a2619a93e48b9dfc30825ac636d629d46b3d95e1..abb2bba281ec043a4442d5266be16401ae57ed70 100644 (file)
@@ -33,14 +33,21 @@ ClassImp(AliHLTProcessor)
 
 AliHLTProcessor::AliHLTProcessor()
 { 
+  // see header file for class documentation
+  // or
+  // refer to README to build package
+  // or
+  // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
 }
 
 AliHLTProcessor::~AliHLTProcessor()
 { 
+  // see header file for class documentation
 }
 
 int AliHLTProcessor::Init( AliHLTComponentEnvironment* environ, void* environ_param, int argc, const char** argv )
 {
+  // see header file for class documentation
   int iResult=0;
   iResult=AliHLTComponent::Init(environ, environ_param, argc, argv);
   return iResult;
@@ -48,6 +55,7 @@ int AliHLTProcessor::Init( AliHLTComponentEnvironment* environ, void* environ_pa
 
 int AliHLTProcessor::Deinit()
 {
+  // see header file for class documentation
   int iResult=0;
   iResult=AliHLTComponent::Deinit();
   return iResult;
@@ -59,6 +67,7 @@ int AliHLTProcessor::DoProcessing( const AliHLTComponentEventData& evtData, cons
                            AliHLTComponentBlockData*& outputBlocks,
                            AliHLTComponentEventDoneData*& edd )
 {
+  // see header file for class documentation
   int iResult=0;
   vector<AliHLTComponentBlockData> blockData;
   iResult=DoEvent(evtData, blocks, trigData, outputPtr, size, blockData);
index 9b1b968170ec9d1bfeda5d71252d88c25314ffe5..b263bd34abd1b1af42de4778e9097c288121f6ee 100644 (file)
@@ -56,6 +56,11 @@ AliHLTSystem::AliHLTSystem()
   fpConfigurationHandler(new AliHLTConfigurationHandler()),
   fTaskList()
 {
+  // see header file for class documentation
+  // or
+  // refer to README to build package
+  // or
+  // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
   if (fpComponentHandler) {
     AliHLTComponentEnvironment env;
     memset(&env, 0, sizeof(AliHLTComponentEnvironment));
@@ -87,17 +92,20 @@ AliHLTSystem::AliHLTSystem(const AliHLTSystem&)
   fpConfigurationHandler(NULL),
   fTaskList()
 {
+  // see header file for class documentation
   HLTFatal("copy constructor untested");
 }
 
 AliHLTSystem& AliHLTSystem::operator=(const AliHLTSystem&)
 { 
+  // see header file for class documentation
   HLTFatal("assignment operator untested");
   return *this;
 }
 
 AliHLTSystem::~AliHLTSystem()
 {
+  // see header file for class documentation
   CleanTaskList();
   AliHLTConfiguration::GlobalDeinit();
   if (fpConfigurationHandler) {
@@ -113,6 +121,7 @@ AliHLTSystem::~AliHLTSystem()
 
 int AliHLTSystem::AddConfiguration(AliHLTConfiguration* pConf)
 {
+  // see header file for class documentation
   int iResult=0;
   if (pConf) {
   } else {
@@ -123,6 +132,7 @@ int AliHLTSystem::AddConfiguration(AliHLTConfiguration* pConf)
 
 int AliHLTSystem::InsertConfiguration(AliHLTConfiguration* pConf, AliHLTConfiguration* pPrec)
 {
+  // see header file for class documentation
   int iResult=0;
   if (pConf) {
     if (pPrec) {
@@ -136,6 +146,7 @@ int AliHLTSystem::InsertConfiguration(AliHLTConfiguration* pConf, AliHLTConfigur
 
 int AliHLTSystem::DeleteConfiguration(AliHLTConfiguration* pConf)
 {
+  // see header file for class documentation
   int iResult=0;
   if (pConf) {
   } else {
@@ -146,6 +157,7 @@ int AliHLTSystem::DeleteConfiguration(AliHLTConfiguration* pConf)
 
 int AliHLTSystem::BuildTaskList(AliHLTConfiguration* pConf)
 {
+  // see header file for class documentation
   int iResult=0;
   if (pConf) {
     AliHLTTask* pTask=NULL;
@@ -208,6 +220,7 @@ int AliHLTSystem::BuildTaskList(AliHLTConfiguration* pConf)
 
 int AliHLTSystem::CleanTaskList()
 {
+  // see header file for class documentation
   int iResult=0;
   TObjLink* lnk=NULL;
   while ((lnk=fTaskList.FirstLink())!=NULL) {
@@ -219,6 +232,7 @@ int AliHLTSystem::CleanTaskList()
 
 int AliHLTSystem::InsertTask(AliHLTTask* pTask)
 {
+  // see header file for class documentation
   int iResult=0;
   TObjLink *lnk = NULL;
   if ((iResult=pTask->CheckDependencies())>0)
@@ -256,6 +270,7 @@ int AliHLTSystem::InsertTask(AliHLTTask* pTask)
 
 AliHLTTask* AliHLTSystem::FindTask(const char* id)
 {
+  // see header file for class documentation
   AliHLTTask* pTask=NULL;
   if (id) {
     pTask=(AliHLTTask*)fTaskList.FindObject(id); 
@@ -265,6 +280,7 @@ AliHLTTask* AliHLTSystem::FindTask(const char* id)
 
 void AliHLTSystem::PrintTaskList()
 {
+  // see header file for class documentation
   HLTLogKeyword("task list");
   TObjLink *lnk = NULL;
   HLTMessage("Task List");
@@ -283,6 +299,7 @@ void AliHLTSystem::PrintTaskList()
 
 int AliHLTSystem::Run(Int_t iNofEvents) 
 {
+  // see header file for class documentation
   int iResult=0;
   if ((iResult=InitTasks())>=0) {
     if ((iResult=StartTasks())>=0) {
@@ -312,6 +329,7 @@ int AliHLTSystem::Run(Int_t iNofEvents)
 
 int AliHLTSystem::InitTasks()
 {
+  // see header file for class documentation
   int iResult=0;
   TObjLink *lnk=fTaskList.FirstLink();
   while (lnk && iResult>=0) {
@@ -330,6 +348,7 @@ int AliHLTSystem::InitTasks()
 
 int AliHLTSystem::StartTasks()
 {
+  // see header file for class documentation
   int iResult=0;
   TObjLink *lnk=fTaskList.FirstLink();
   while (lnk && iResult>=0) {
@@ -348,6 +367,7 @@ int AliHLTSystem::StartTasks()
 
 int AliHLTSystem::ProcessTasks(Int_t eventNo)
 {
+  // see header file for class documentation
   int iResult=0;
   HLTDebug("processing event no %d", eventNo);
   TObjLink *lnk=fTaskList.FirstLink();
@@ -366,6 +386,7 @@ int AliHLTSystem::ProcessTasks(Int_t eventNo)
 
 int AliHLTSystem::StopTasks()
 {
+  // see header file for class documentation
   int iResult=0;
   TObjLink *lnk=fTaskList.FirstLink();
   while (lnk && iResult>=0) {
@@ -382,6 +403,7 @@ int AliHLTSystem::StopTasks()
 
 int AliHLTSystem::DeinitTasks()
 {
+  // see header file for class documentation
   int iResult=0;
   TObjLink *lnk=fTaskList.FirstLink();
   while (lnk && iResult>=0) {
@@ -398,5 +420,6 @@ int AliHLTSystem::DeinitTasks()
 
 void* AliHLTSystem::AllocMemory( void* param, unsigned long size )
 {
+  // see header file for class documentation
   return (void*)new char[size];
 }
index 3967093350f846b08800a445dd74b5addb1c56fc..3ceebbe9d8cf64a616601f07375619c6e5dfe4bc 100644 (file)
@@ -49,12 +49,12 @@ class AliHLTSystem : public AliHLTLogging {
   /**
    * Pointer to an instance of @ref AliHLTComponentHandler.
    */
-  AliHLTComponentHandler* fpComponentHandler;
+  AliHLTComponentHandler* fpComponentHandler;                      //! transient
 
   /**
    * Pointer to an instance of @ref AliHLTConfigurationHandler.
    */
-  AliHLTConfigurationHandler* fpConfigurationHandler;
+  AliHLTConfigurationHandler* fpConfigurationHandler;              //! transient
 
   /**
    * Add a configuration to the end of the list.
@@ -63,7 +63,8 @@ class AliHLTSystem : public AliHLTLogging {
   int AddConfiguration(AliHLTConfiguration* pConf);
 
   /**
-   * Insert a configuration to the end of the list after the specified configuration.
+   * Insert a configuration to the end of the list after the specified
+   * configuration.
    * @param pConf    pointer to configuration to insert
    * @param pPrec    pointer to configuration to insert the new one after
    */
@@ -96,9 +97,9 @@ class AliHLTSystem : public AliHLTLogging {
   /**
    * Insert a task to the task list.
    * The method first checks whether all dependencies are resolved (i.e. exist 
-   * already in the task list). During this iteration the cross links between the 
-   * tasks are set as well. If all dependencies are resolved, the task is added
-   * at the end of the list.
+   * already in the task list). During this iteration the cross links between
+   * the tasks are set as well. If all dependencies are resolved, the task is
+   * added at the end of the list.
    * @param pTask    pointer to task to add
    */
   int InsertTask(AliHLTTask* pTask);
@@ -135,8 +136,8 @@ class AliHLTSystem : public AliHLTLogging {
 
   /**
    * Start task list.
-   * The @ref AliHLTTask::StartRun method is called for each task, the components
-   * will be prepared for event processing.
+   * The @ref AliHLTTask::StartRun method is called for each task, the
+   * components will be prepared for event processing.
    * @return neg error code if failed
    */
   int StartTasks();
@@ -171,16 +172,12 @@ class AliHLTSystem : public AliHLTLogging {
   static void* AllocMemory( void* param, unsigned long size );
 
  protected:
-  int ProcessTask();
-  int StartEvent();
-  int ProcessEvent();
-  int StopEvent();
  
  private:
 /*   TList fConfList; */
 /*   int fbListChanged; */
 
-  TList fTaskList;
+  TList fTaskList;                                                 // see above
 
  private:
   ClassDef(AliHLTSystem, 1);
index 2f2e7ec7efbec80924b4bed6e076ea0e746953d8..0a1e80b57e9f1fb1616e1106db66621c8fa954d8 100644 (file)
@@ -254,24 +254,24 @@ class AliHLTTask : public TObject, public AliHLTLogging {
 
  private:
   /** the configuration descriptor (external pointer) */
-  AliHLTConfiguration* fpConfiguration;
-  /** the component described by this task (created and deleted by the task object) */
-  AliHLTComponent* fpComponent;
+  AliHLTConfiguration* fpConfiguration;                           //! transient
+  /** the component described by this task (created and deleted internally) */
+  AliHLTComponent* fpComponent;                                   //! transient
   /** the data buffer for the component processing */
-  AliHLTDataBuffer* fpDataBuffer;
+  AliHLTDataBuffer* fpDataBuffer;                                 //! transient
   /** the list of targets (tasks which depend upon the current one) */
-  TList fListTargets;
+  TList fListTargets;                                             // see above
   /** the list of sources (tasks upon which the current one depends) */ 
-  TList fListDependencies;
+  TList fListDependencies;                                        // see above
 
   /**
    * block data array to be passed as argument to the 
    * @ref AliHLTComponent::ProcessEvent method. 
    * Filled through subscription to source tasks (@ref Subscribe).
    */
-  AliHLTComponentBlockData* fpBlockDataArray;
+  AliHLTComponentBlockData* fpBlockDataArray;                     //! transient
   /** size of the block data array */
-  int fBlockDataArraySize;
+  int fBlockDataArraySize;                                        // see above
 
   ClassDef(AliHLTTask, 1);
 };