]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
- made package indepentend of src
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 21 Aug 2006 08:41:29 +0000 (08:41 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 21 Aug 2006 08:41:29 +0000 (08:41 +0000)
- removed eff C++ warnings in BASE
- TPCref library off by default
- added doc pictures to distribution
- TPCLib version interface no 2
- started to sort header includes in TPCLib
: CVS----------------------------------------------------------------------

51 files changed:
HLT/BASE/AliHLTComponent.cxx
HLT/BASE/AliHLTComponent.h
HLT/BASE/AliHLTComponentHandler.cxx
HLT/BASE/AliHLTConfiguration.cxx
HLT/BASE/AliHLTConfiguration.h
HLT/BASE/AliHLTDataBuffer.cxx
HLT/BASE/AliHLTDataBuffer.h
HLT/BASE/AliHLTLogging.cxx
HLT/BASE/AliHLTLogging.h
HLT/BASE/AliHLTStdIncludes.h [new file with mode: 0644]
HLT/BASE/AliHLTSystem.cxx
HLT/BASE/AliHLTSystem.h
HLT/BASE/AliHLTTask.h
HLT/BASE/Makefile.am
HLT/ChangeLog
HLT/Makefile.am
HLT/SampleLib/AliHLTSampleComponent1.cxx
HLT/SampleLib/AliHLTSampleComponent2.cxx
HLT/SampleLib/Makefile.am
HLT/TPCLib/AliHLTTPC.cxx
HLT/TPCLib/AliHLTTPCBenchmark.cxx
HLT/TPCLib/AliHLTTPCClustFinderNew.cxx
HLT/TPCLib/AliHLTTPCClusterFinder.cxx
HLT/TPCLib/AliHLTTPCConfMapFit.cxx
HLT/TPCLib/AliHLTTPCConfMapPoint.cxx
HLT/TPCLib/AliHLTTPCConfMapTrack.cxx
HLT/TPCLib/AliHLTTPCConfMapper.cxx
HLT/TPCLib/AliHLTTPCDDLDataFileHandler.cxx
HLT/TPCLib/AliHLTTPCDataCompressorHelper.cxx
HLT/TPCLib/AliHLTTPCDisplay.cxx
HLT/TPCLib/AliHLTTPCFileHandler.cxx
HLT/TPCLib/AliHLTTPCFitter.cxx
HLT/TPCLib/AliHLTTPCGlobalMerger.cxx
HLT/TPCLib/AliHLTTPCInterMerger.cxx
HLT/TPCLib/AliHLTTPCLog.cxx
HLT/TPCLib/AliHLTTPCLogging.h
HLT/TPCLib/AliHLTTPCMemHandler.cxx
HLT/TPCLib/AliHLTTPCMerger.cxx
HLT/TPCLib/AliHLTTPCModelTrack.cxx
HLT/TPCLib/AliHLTTPCTrack.cxx
HLT/TPCLib/AliHLTTPCTrackArray.cxx
HLT/TPCLib/AliHLTTPCTrackMerger.cxx
HLT/TPCLib/AliHLTTPCTransform.cxx
HLT/TPCLib/AliHLTTPCVertex.cxx
HLT/TPCLib/AliHLTTPCVertexArray.cxx
HLT/TPCLib/AliHLTTPCVertexFinder.cxx
HLT/TPCLib/Makefile.am
HLT/configure.ac
HLT/doc/Makefile.am
HLT/src/AliL3StandardIncludes.h
HLT/src/Makefile.am [deleted file]

index 12ffd969841dd0f1bdee3fd2f23038b639df7347..1347a568a42ee6b52f1c80f12031b43390ef41b3 100644 (file)
 using namespace std;
 #endif
 
+#include "AliHLTStdIncludes.h"
 #include "AliHLTComponent.h"
 #include "AliHLTComponentHandler.h"
-#include <string>
 #include "AliHLTSystem.h"
 
 /** ROOT macro for the implementation of ROOT specific class methods */
 ClassImp(AliHLTComponent)
 
 AliHLTComponent::AliHLTComponent()
+  :
+  fCurrentEvent(0),
+  fEnvironment()
 { 
   memset(&fEnvironment, 0, sizeof(AliHLTComponentEnvironment));
   if (fpComponentHandler)
@@ -46,6 +49,20 @@ AliHLTComponent::~AliHLTComponent()
 
 AliHLTComponentHandler* AliHLTComponent::fpComponentHandler=NULL;
 
+int AliHLTComponent::SetGlobalComponentHandler(AliHLTComponentHandler* pCH, int bOverwrite) 
+{
+  int iResult=0;
+  if (fpComponentHandler==NULL || bOverwrite!=0)
+    fpComponentHandler=pCH;
+  else
+    iResult=-EPERM;
+  return iResult;
+}
+
+int AliHLTComponent::UnsetGlobalComponentHandler() {
+  return SetGlobalComponentHandler(NULL,1);
+}
+
 int AliHLTComponent::Init( AliHLTComponentEnvironment* environ, void* environ_param, int argc, const char** argv )
 {
   int iResult=0;
@@ -71,6 +88,12 @@ strcat( output, ":" );
 strncat( output, type.fID, 8 );
 }
 
+void* AliHLTComponent::AllocMemory( unsigned long size ) {
+  if (fEnvironment.fAllocMemoryFunc)
+    return (*fEnvironment.fAllocMemoryFunc)(fEnvironment.fParam, size );
+  return NULL;
+}
+
 int AliHLTComponent::MakeOutputDataBlockList( const vector<AliHLTComponent_BlockData>& blocks, AliHLTUInt32_t* blockCount,
                                              AliHLTComponent_BlockData** outputBlocks ) {
     if ( !blockCount || !outputBlocks )
@@ -92,6 +115,12 @@ int AliHLTComponent::MakeOutputDataBlockList( const vector<AliHLTComponent_Block
 
 }
 
+int AliHLTComponent::GetEventDoneData( unsigned long size, AliHLTComponent_EventDoneData** edd ) {
+  if (fEnvironment.fGetEventDoneDataFunc)
+    return (*fEnvironment.fGetEventDoneDataFunc)(fEnvironment.fParam, fCurrentEvent, size, edd );
+  return -ENOSYS;
+}
+
 int AliHLTComponent::FindMatchingDataTypes(AliHLTComponent* pConsumer, vector<AliHLTComponent_DataType>* tgtList) 
 {
   int iResult=0;
index e28080d7240196862e8327617d60421924f3bac9..dd46622ec1ae8686411dc3176e4c46a04a1fc880 100644 (file)
@@ -16,7 +16,6 @@
  * @defgroup alihlt_component Component handling of the HLT module
  * This section describes the the component handling for the HLT module.
  */
-#include <cerrno>
 #include "AliHLTLogging.h"
 #include "AliHLTDataTypes.h"
 #include "AliHLTDefinitions.h"
@@ -163,22 +162,13 @@ class AliHLTComponent : public AliHLTLogging {
    * Set the global component handler.
    * The static method is needed for the automatic registration of components. 
    */
-  static int SetGlobalComponentHandler(AliHLTComponentHandler* pCH, int bOverwrite=0) {
-    int iResult=0;
-    if (fpComponentHandler==NULL || bOverwrite!=0)
-      fpComponentHandler=pCH;
-    else
-      iResult=-EPERM;
-    return iResult;
-  }
+  static int SetGlobalComponentHandler(AliHLTComponentHandler* pCH, int bOverwrite=0);
 
   /**
    * Clear the global component handler.
    * The static method is needed for the automatic registration of components. 
    */
-  static int UnsetGlobalComponentHandler() {
-    return SetGlobalComponentHandler(NULL,1);
-  }
+  static int UnsetGlobalComponentHandler();
 
  protected:
 
@@ -240,11 +230,7 @@ class AliHLTComponent : public AliHLTLogging {
    * framework. Function pointers are transferred via the @ref
    * AliHLTComponentEnvironment structure.
    */
-  void* AllocMemory( unsigned long size ) {
-    if (fEnvironment.fAllocMemoryFunc)
-      return (*fEnvironment.fAllocMemoryFunc)(fEnvironment.fParam, size );
-    return NULL;
-  }
+  void* AllocMemory( unsigned long size );
 
   /**
    * Helper function to create a monolithic BlockData description block out
@@ -257,11 +243,6 @@ class AliHLTComponent : public AliHLTLogging {
    */
   int MakeOutputDataBlockList( const vector<AliHLTComponent_BlockData>& blocks, AliHLTUInt32_t* blockCount,
                               AliHLTComponent_BlockData** outputBlocks );
-/*  { */
-/*     if (fEnvironment.fMakeOutputDataBlockListFunc) */
-/*       return (*fEnvironment.fMakeOutputDataBlockListFunc)(fEnvironment.fParam, blocks, blockCount, outputBlocks ); */
-/*     return -ENOSYS; */
-/*   } */
 
   /**
    * Fill the EventDoneData structure.
@@ -269,12 +250,7 @@ class AliHLTComponent : public AliHLTLogging {
    * framework. Function pointers are transferred via the @ref
    * AliHLTComponentEnvironment structure.
    */
-  int GetEventDoneData( unsigned long size, AliHLTComponent_EventDoneData** edd ) {
-    if (fEnvironment.fGetEventDoneDataFunc)
-      return (*fEnvironment.fGetEventDoneDataFunc)(fEnvironment.fParam, fCurrentEvent, size, edd );
-    return -ENOSYS;
-  }
-
+  int GetEventDoneData( unsigned long size, AliHLTComponent_EventDoneData** edd );
 
   /**
    * Helper function to convert the data type to a string.
index 3aa3488fa7267466ff4dc04bd5c343d471115f62..fa93e7040b3b7a8c27f384e3f9008467fe962192 100644 (file)
 using namespace std;
 #endif
 
-#include <cerrno>
-#include <string>
 #include <dlfcn.h>
-#include "AliL3StandardIncludes.h"
+#include "AliHLTStdIncludes.h"
 #include "AliHLTComponentHandler.h"
 #include "AliHLTComponent.h"
 #include "AliHLTDataTypes.h"
@@ -38,10 +36,15 @@ using namespace std;
 ClassImp(AliHLTComponentHandler)
 
 AliHLTComponentHandler::AliHLTComponentHandler()
+  :
+  fComponentList(),
+  fScheduleList(),
+  fLibraryList(),
+  fEnvironment()
 {
+  memset(&fEnvironment, 0, sizeof(AliHLTComponentEnvironment));
 }
 
-
 AliHLTComponentHandler::~AliHLTComponentHandler()
 {
   UnloadLibraries();
index 8c1838d9c1135e5de23923ad7810f35899586da6..df29649a92703b28f4be80b7126c646e5d4decf4 100644 (file)
@@ -38,29 +38,34 @@ using namespace std;
 ClassImp(AliHLTConfiguration)
 
 AliHLTConfiguration::AliHLTConfiguration()
+  :
+  fID(NULL),
+  fComponent(NULL),
+  fStringSources(NULL),
+  fNofSources(-1),
+  fArguments(NULL),
+  fArgc(-1),
+  fArgv(NULL),
+  fListSources(),
+  fListSrcElement()
 { 
-  fID=NULL;
-  fComponent=NULL;
-  fStringSources=NULL;
-  fNofSources=-1;
-  fArguments=NULL;
-  fArgc=-1;
-  fArgv=NULL;
   fListSrcElement=fListSources.begin();
 }
 
 AliHLTConfiguration::AliHLTConfiguration(const char* id, const char* component, const char* sources, const char* arguments)
+  :
+  fID(id),
+  fComponent(component),
+  fStringSources(sources),
+  fNofSources(-1),
+  fArguments(arguments),
+  fArgc(-1),
+  fArgv(NULL),
+  fListSources(),
+  fListSrcElement()
 {
-  fArgc=-1;
-  fArgv=NULL;
-  
+  fListSrcElement=fListSources.begin();
   if (id && component) {
-    fID=id;
-    fComponent=component;
-    fStringSources=sources;
-    fNofSources=-1;
-    fArguments=arguments;
-    fListSrcElement=fListSources.begin();
     if (fConfigurationHandler) {
       fConfigurationHandler->RegisterConfiguration(this);
     } else {
@@ -69,6 +74,28 @@ AliHLTConfiguration::AliHLTConfiguration(const char* id, const char* component,
   }
 }
 
+AliHLTConfiguration::AliHLTConfiguration(const AliHLTConfiguration&)
+  :
+  fID(NULL),
+  fComponent(NULL),
+  fStringSources(NULL),
+  fNofSources(-1),
+  fArguments(NULL),
+  fArgc(-1),
+  fArgv(NULL),
+  fListSources(),
+  fListSrcElement()
+{ 
+  fListSrcElement=fListSources.begin();
+  HLTFatal("copy constructor untested");
+}
+
+AliHLTConfiguration& AliHLTConfiguration::operator=(const AliHLTConfiguration&)
+{ 
+  HLTFatal("assignment operator untested");
+  return *this;
+}
+
 AliHLTConfiguration::~AliHLTConfiguration()
 {
   if (fConfigurationHandler) {
@@ -336,24 +363,49 @@ int AliHLTConfiguration::FollowDependency(const char* id, TList* pTgtList)
 ClassImp(AliHLTTask)
 
 AliHLTTask::AliHLTTask()
+  :
+  fpConfiguration(NULL),
+  fpComponent(NULL),
+  fpBlockDataArray(NULL),
+  fBlockDataArraySize(0),
+  fpDataBuffer(NULL),
+  fListTargets(),
+  fListDependencies()
 {
-  fpConfiguration=NULL;
-  fpComponent=NULL;
-  fpBlockDataArray=NULL;
-  fBlockDataArraySize=0;
-  fpDataBuffer=NULL;
 }
 
 AliHLTTask::AliHLTTask(AliHLTConfiguration* fConf, AliHLTComponentHandler* pCH)
+  :
+  fpConfiguration(NULL),
+  fpComponent(NULL),
+  fpBlockDataArray(NULL),
+  fBlockDataArraySize(0),
+  fpDataBuffer(NULL),
+  fListTargets(),
+  fListDependencies()
 {
-  fpConfiguration=NULL;
-  fpComponent=NULL;
-  fpBlockDataArray=NULL;
-  fBlockDataArraySize=0;
-  fpDataBuffer=NULL;
   Init(fConf, pCH);
 }
 
+AliHLTTask::AliHLTTask(const AliHLTTask&)
+  :
+  fpConfiguration(NULL),
+  fpComponent(NULL),
+  fpBlockDataArray(NULL),
+  fBlockDataArraySize(0),
+  fpDataBuffer(NULL),
+  fListTargets(),
+  fListDependencies()
+{
+  HLTFatal("copy constructor untested");
+}
+
+AliHLTTask& AliHLTTask::operator=(const AliHLTTask&)
+{ 
+  HLTFatal("assignment operator untested");
+  return *this;
+}
+
 AliHLTTask::~AliHLTTask()
 {
   if (fpComponent) delete fpComponent;
index 0dd4c6387438c3b0077481d8aac3689c78402460..71027049028c02acc5bf320c0086ab94295f58c2 100644 (file)
@@ -62,6 +62,11 @@ class AliHLTConfiguration : public TObject, public AliHLTLogging {
    */
   AliHLTConfiguration(const char* id, const char* component,
                      const char* sources, const char* arguments);
+  /** not a valid copy constructor, defined according to effective C++ style */
+  AliHLTConfiguration(const AliHLTConfiguration&);
+  /** not a valid assignment op, but defined according to effective C++ style */
+  AliHLTConfiguration& operator=(const AliHLTConfiguration&);
+  /** destructor */
   /** destructor */
   virtual ~AliHLTConfiguration();
 
index 2866ae0ec9746d45c27b35c44617eee3ee9721d0..c937ddf3261e98e71df1fa7a466fbb338b8c16c2 100644 (file)
@@ -31,17 +31,38 @@ using namespace std;
 #include "AliHLTSystem.h"
 
 AliHLTConsumerDescriptor::AliHLTConsumerDescriptor()
+  :
+  fpConsumer(NULL),
+  fSegments()
 {
-  fpConsumer=NULL;
   fSegments.clear();
 }
 
 AliHLTConsumerDescriptor::AliHLTConsumerDescriptor(AliHLTComponent* pConsumer)
+  :
+  fpConsumer(pConsumer),
+  fSegments()
 {
-  fpConsumer=pConsumer;
   fSegments.clear();
 }
 
+AliHLTConsumerDescriptor::AliHLTConsumerDescriptor(const AliHLTConsumerDescriptor& desc)
+  :
+  fpConsumer(desc.fpConsumer),
+  fSegments()
+{
+  // 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)
+{ 
+  // we can simply transfer the pointer to th new object since there are no
+  // release actions in the destructor
+  fpConsumer=desc.fpConsumer;
+  return *this;
+}
+
 AliHLTConsumerDescriptor::~AliHLTConsumerDescriptor()
 {
   if (fSegments.size()>0) {
@@ -103,17 +124,39 @@ int AliHLTConsumerDescriptor::ReleaseActiveDataSegment(AliHLTUInt32_t offset, Al
 ClassImp(AliHLTDataBuffer)
 
 AliHLTDataBuffer::AliHLTDataBuffer()
+  :
+  fSegments(),
+  fConsumers(),
+  fActiveConsumers(),
+  fReleasedConsumers(),
+  fpBuffer(NULL),
+  fFlags(0)
 {
-  // TODO: do the right initialization 
-  //fSegments.empty();
-  //fConsumers.empty;
-  //fActiveConsumers.empty;
-  //fReleasedConsumers.empty;
-  fpBuffer=NULL;
-  fFlags=0;
+  fSegments.empty();
+  fConsumers.empty();
+  fActiveConsumers.empty();
+  fReleasedConsumers.empty();
   fNofInstances++;
 }
 
+AliHLTDataBuffer::AliHLTDataBuffer(const AliHLTDataBuffer&)
+  :
+  fSegments(),
+  fConsumers(),
+  fActiveConsumers(),
+  fReleasedConsumers(),
+  fpBuffer(NULL),
+  fFlags(0)
+{
+  HLTFatal("copy constructor untested");
+}
+
+AliHLTDataBuffer& AliHLTDataBuffer::operator=(const AliHLTDataBuffer&)
+{ 
+  HLTFatal("assignment operator untested");
+  return *this;
+}
+
 int AliHLTDataBuffer::fNofInstances=0;
 vector<AliHLTRawBuffer*> AliHLTDataBuffer::fFreeBuffers;
 vector<AliHLTRawBuffer*> AliHLTDataBuffer::fActiveBuffers;
index 9445746927bb81431ef4c1764997887a20c2f41d..18efe0c70bf60566b3181dc55e01d72597c0f891 100644 (file)
@@ -30,18 +30,22 @@ class AliHLTComponent;
  */
 struct AliHLTDataSegment {
   AliHLTDataSegment()
+    :
+    fDataType(),
+    fSegmentOffset(0),
+    fSegmentSize(0),
+    fSpecification(0)
   {
-    //fDataType=0;
-   fSegmentOffset=0;
-   fSegmentSize=0;
-   fSpecification=0;
+    memset(&fDataType, 0, sizeof(AliHLTComponent_DataType));
   }
   AliHLTDataSegment(AliHLTUInt32_t offset, AliHLTUInt32_t size) 
+    :
+    fDataType(),
+    fSegmentOffset(offset),
+    fSegmentSize(size),
+    fSpecification(0)
   {
-    //fDataType=0;
-   fSegmentOffset=offset;
-   fSegmentSize=size;
-   fSpecification=0;
+    memset(&fDataType, 0, sizeof(AliHLTComponent_DataType));
   }
   /** the data type of this segment */
   AliHLTComponent_DataType fDataType;
@@ -91,6 +95,11 @@ class AliHLTConsumerDescriptor : public AliHLTLogging, public TObject {
    * @param pConsumer pointer to the consumer component
    */
   AliHLTConsumerDescriptor(AliHLTComponent* pConsumer);
+  /** not a valid copy constructor, defined according to effective C++ style */
+  AliHLTConsumerDescriptor(const AliHLTConsumerDescriptor&);
+  /** not a valid assignment op, but defined according to effective C++ style */
+  AliHLTConsumerDescriptor& operator=(const AliHLTConsumerDescriptor&);
+  /** destructor */
   ~AliHLTConsumerDescriptor();
 
   /**
@@ -162,7 +171,11 @@ class AliHLTDataBuffer : public AliHLTLogging, public TObject {
   /* standard constructor
    */
   AliHLTDataBuffer();
-
+  /** not a valid copy constructor, defined according to effective C++ style */
+  AliHLTDataBuffer(const AliHLTDataBuffer&);
+  /** not a valid assignment op, but defined according to effective C++ style */
+  AliHLTDataBuffer& operator=(const AliHLTDataBuffer&);
+  /** destructor */
   virtual ~AliHLTDataBuffer();
 
   ////////////////////////////////////////////////////////////////////////////////////////////////////////////////
index 93e933ec15915f4d528c244926b2824f64015b51..93712ae563dfa7b91a6897149a67bdbb1993baa8 100644 (file)
 using namespace std;
 #endif
 
-#include <cerrno>
-#include "AliL3StandardIncludes.h"
+#include "AliHLTStdIncludes.h"
 #include "AliHLTLogging.h"
-#include <cstdarg>
-#include <string>
 
 /** ROOT macro for the implementation of ROOT specific class methods */
 ClassImp(AliHLTLogging)
 
 AliHLTLogging::AliHLTLogging()
+  :
+  fpDefaultKeyword(NULL),
+  fpCurrentKeyword(NULL),
+  //fLocalLogFilter(kHLTLogDefault),
+  fLocalLogFilter(kHLTLogAll)
 {
-  fpDefaultKeyword=NULL;
-  fpCurrentKeyword=NULL;
-  //fLocalLogFilter=kHLTLogDefault;
-  fLocalLogFilter=kHLTLogAll;
+}
+
+AliHLTLogging::AliHLTLogging(const AliHLTLogging&)
+  :
+  fpDefaultKeyword(NULL),
+  fpCurrentKeyword(NULL),
+  fLocalLogFilter(kHLTLogAll)
+{
+  HLTFatal("copy constructor untested");
+}
+
+AliHLTLogging& AliHLTLogging::operator=(const AliHLTLogging&)
+{ 
+  HLTFatal("assignment operator untested");
+  return *this;
 }
 
 char AliHLTLogging::fLogBuffer[LOG_BUFFER_SIZE]="";
@@ -130,7 +143,7 @@ int AliHLTLogging::Logging(AliHLTComponent_LogSeverity severity, const char* ori
   return iResult;
 }
 
-int AliHLTLogging::LoggingVarargs( AliHLTComponent_LogSeverity severity, const char* origin_class, const char* origin_func,  ... )
+int AliHLTLogging::LoggingVarargs( AliHLTComponent_LogSeverity severity, const char* origin_class, const char* origin_func,  ... ) const
 {
   int iResult=CheckFilter(severity);
   if (iResult>0) {
@@ -172,7 +185,7 @@ int AliHLTLogging::LoggingVarargs( AliHLTComponent_LogSeverity severity, const c
   return iResult;
 }
 
-int AliHLTLogging::CheckFilter(AliHLTComponent_LogSeverity severity)
+int AliHLTLogging::CheckFilter(AliHLTComponent_LogSeverity severity) const
 {
   int iResult=severity==kHLTLogNone || (severity&fGlobalLogFilter)>0 && (severity&fLocalLogFilter)>0;
   return iResult;
index 92e75692266a8727deca854f107f10ed622d4013..ba0f33b20d9ecc33073d22832f8af951018870c6 100644 (file)
@@ -41,6 +41,8 @@
 class AliHLTLogging {
 public:
   AliHLTLogging();
+  AliHLTLogging(const AliHLTLogging&);
+  AliHLTLogging& operator=(const AliHLTLogging&);
   virtual ~AliHLTLogging();
 
   // logging filter for all objects
@@ -67,7 +69,7 @@ public:
 
   // get the current keyword
   //
-  const char* GetKeyword()
+  const char* GetKeyword() const
     {
       if (fpCurrentKeyword) return fpCurrentKeyword;
       else if (fpDefaultKeyword) return fpDefaultKeyword;
@@ -82,11 +84,11 @@ public:
 
   // logging function with two origin parameters, used by the log macros
   //
-  int LoggingVarargs( AliHLTComponent_LogSeverity severity, const char* origin_class, const char* origin_func,  ... );
+  int LoggingVarargs( AliHLTComponent_LogSeverity severity, const char* origin_class, const char* origin_func,  ... ) const;
 
   // apply filter, return 1 if message should pass
   //
-  int CheckFilter(AliHLTComponent_LogSeverity severity);
+  int CheckFilter(AliHLTComponent_LogSeverity severity) const;
 
   static int Message(void * param, AliHLTComponent_LogSeverity severity, const char* origin, const char* keyword, const char* message);
 
@@ -115,20 +117,36 @@ private:
 class AliHLTKeyword {
  public:
   AliHLTKeyword()
+    :
+    fpParent(NULL),
+    fpOriginal(NULL)
     {
-      fpParent=NULL;
-      fpOriginal=NULL;
     }
 
   AliHLTKeyword(AliHLTLogging* parent, const char* keyword)
+    :
+    fpParent(parent),
+    fpOriginal(NULL)
     {
-      fpOriginal=NULL;
       if (parent) {
-       fpParent=parent;
        fpOriginal=fpParent->SetKeyword(keyword);
       }
     }
 
+  AliHLTKeyword(const AliHLTKeyword& kw)
+    :
+    fpParent(kw.fpParent),
+    fpOriginal(kw.fpOriginal)
+    {
+    }
+
+  AliHLTKeyword& operator=(const AliHLTKeyword& kw)
+    { 
+      fpParent=kw.fpParent;
+      fpOriginal=kw.fpOriginal;
+      return *this;
+    }
+
   ~AliHLTKeyword()
     {
       if (fpParent) {
diff --git a/HLT/BASE/AliHLTStdIncludes.h b/HLT/BASE/AliHLTStdIncludes.h
new file mode 100644 (file)
index 0000000..47acaea
--- /dev/null
@@ -0,0 +1,49 @@
+// @(#) $Id$
+// Original file : src/AliL3StandardIncludes.h,v 1.5
+
+#ifndef ALIHLTSTDINCLUDESH
+#define ALIHLTSTDINCLUDESH
+
+#if __GNUC__ >= 3
+#include <fstream>
+#include <iostream>
+
+#include <cstdio>
+#include <cmath>
+#include <cstring>
+#include <ctime>
+#include <cstdlib>
+#include <cerrno>
+#include <cstdarg>
+
+/* Use these only if absolutely necessary 
+eg. in inline functions defined in header files */
+#define STDCOUT std::cout
+#define STDCERR std::cerr
+#define STDENDL std::endl
+#define STDIF   std::ifstream
+#define STDOF   std::ofstream
+
+#else
+#include <iostream.h>
+#include <fstream.h>
+
+#include <stdio.h>
+#include <math.h>
+#include <string.h>
+#include <time.h>
+#include <stdlib.h>
+#include <errno.h>
+#include <stdarg.h>
+
+/* Use these only if absolutely necessary 
+eg. in inline functions defined in header files */
+#define STDCOUT cout
+#define STDCERR cerr
+#define STDENDL endl
+#define STDIF   ifstream
+#define STDOF   ofstream
+
+#endif //__GNUC__
+
+#endif
index 168956f4b4e3c3a13ca54ed1333cacf88c1f7cfd..141476368afee4319b5040968c609031cdb43f94 100644 (file)
@@ -25,9 +25,7 @@
 using namespace std;
 #endif
 
-#include <cerrno>
-#include <string>
-#include "AliL3StandardIncludes.h"
+#include "AliHLTStdIncludes.h"
 #include "AliHLTSystem.h"
 #include "AliHLTComponentHandler.h"
 #include "AliHLTComponent.h"
@@ -39,8 +37,11 @@ using namespace std;
 ClassImp(AliHLTSystem)
 
 AliHLTSystem::AliHLTSystem()
+  :
+  fpComponentHandler(new AliHLTComponentHandler()),
+  fpConfigurationHandler(new AliHLTConfigurationHandler()),
+  fTaskList()
 {
-  fpComponentHandler=new AliHLTComponentHandler();
   if (fpComponentHandler) {
     AliHLTComponentEnvironment env;
     memset(&env, 0, sizeof(AliHLTComponentEnvironment));
@@ -52,7 +53,6 @@ AliHLTSystem::AliHLTSystem()
   } else {
     HLTFatal("can not create Component Handler");
   }
-  fpConfigurationHandler=new AliHLTConfigurationHandler();
   if (fpConfigurationHandler) {
     AliHLTConfiguration::GlobalInit(fpConfigurationHandler);
   } else {
@@ -60,6 +60,20 @@ AliHLTSystem::AliHLTSystem()
   }
 }
 
+AliHLTSystem::AliHLTSystem(const AliHLTSystem&)
+  :
+  fpComponentHandler(NULL),
+  fpConfigurationHandler(NULL),
+  fTaskList()
+{
+  HLTFatal("copy constructor untested");
+}
+
+AliHLTSystem& AliHLTSystem::operator=(const AliHLTSystem&)
+{ 
+  HLTFatal("assignment operator untested");
+  return *this;
+}
 
 AliHLTSystem::~AliHLTSystem()
 {
index 39fb3ef58c139af0133d1d931b75834b3917db51..eccb36844b6cc3b5e65dfd5c833edd6b940c5686 100644 (file)
@@ -17,7 +17,6 @@
  * This section describes the HLT integration into AliRoot.
  */
 
-#include "AliL3RootTypes.h"
 #include "AliHLTLogging.h"
 #include <TList.h>
 
@@ -40,6 +39,10 @@ class AliHLTSystem : public AliHLTLogging {
  public:
   /** default constructor */
   AliHLTSystem();
+  /** not a valid copy constructor, defined according to effective C++ style */
+  AliHLTSystem(const AliHLTSystem&);
+  /** not a valid assignment op, but defined according to effective C++ style */
+  AliHLTSystem& operator=(const AliHLTSystem&);
   /** destructor */
   virtual ~AliHLTSystem();
 
@@ -122,8 +125,8 @@ class AliHLTSystem : public AliHLTLogging {
   int StopEvent();
  
  private:
-  TList fConfList;
-  int fbListChanged;
+/*   TList fConfList; */
+/*   int fbListChanged; */
 
   TList fTaskList;
 
index d70e91e3130a395b743491f1ebce08b0c083752a..394dbcb0f3b779619d03f8612cc2d9365f83b3f9 100644 (file)
@@ -48,6 +48,10 @@ class AliHLTTask : public TObject, public AliHLTLogging {
       @param pCH   the HLT component handler
    */
   AliHLTTask(AliHLTConfiguration* pConf, AliHLTComponentHandler* pCH);
+  /** not a valid copy constructor, defined according to effective C++ style */
+  AliHLTTask(const AliHLTTask&);
+  /** not a valid assignment op, but defined according to effective C++ style */
+  AliHLTTask& operator=(const AliHLTTask&);
   /** destructor */
   virtual ~AliHLTTask();
 
index b23fb436bdec7f1504276b654ecfb3b715640f7c..4653e2b53a2f926645ca4ca4b3ca5bcee3351c44 100644 (file)
@@ -3,7 +3,7 @@
 
 MODULE                         = HLTbase
 
-AM_CPPFLAGS                    = -I$(top_srcdir)/src      
+AM_CPPFLAGS                    = 
 
 # library definition
 lib_LTLIBRARIES                        =  libHLTbase.la
@@ -38,6 +38,7 @@ pkginclude_HEADERS            =  $(CLASS_HDRS) \
                                   AliHLT_C_Component_WrapperInterface.h \
                                   AliHLTDefinitions.h
 
+noinst_HEADERS                 =  AliHLTStdIncludes.h
 
 # version info for the library
 libHLTbase_la_LDFLAGS          =  -version-info 1:0:0
index 339ac92e8a30ac0aab2f1a3cccb250150d5a0b55..bc578e430f9de49d8cf393ac009fa72caa3d1801 100644 (file)
@@ -1,3 +1,13 @@
+2006-08-21 intermediate
+       - made package indepentend of src
+         added BASE/AliHLTStdIncludes.h which should take the job of
+         including std headers
+       - removed eff C++ warnings in BASE
+       - TPCref library off by default
+       - added doc pictures to distribution
+       - TPCLib version interface no 2
+       - started to sort header includes in TPCLib
+       
 2006-08-17 Jochen's TPCLib source code from Jan 2006 (not a joke) merged
        - bugfix in AliHLTTPCConfMapper (caused low tracking efficiency)
        - Online Display development
index 3fa827976012a84e7fff5efe39d7b1f72630a471..5fb0a7e5ac3b696dab89e654077c8d89734b59e3 100644 (file)
@@ -13,7 +13,6 @@ endif
 SUBDIRS                = BASE \
                          $(SAMPLE_DIR) \
                          $(TPC_DIR) \
-                         src \
                          doc
 
 DIST_SUBDIRS           = $(SUBDIRS)
index 5e3220ea0fbc6e81853391cfa20488d1172b7360..05f27c0d63bc7643e1baa43e7391282adf33c3e3 100644 (file)
@@ -25,7 +25,6 @@
 using namespace std;
 #endif
 
-#include "AliL3StandardIncludes.h"
 #include "AliHLTSampleComponent1.h"
 
 /**
index 2035926b8e17828a6c1853deb7a4d4885660c2cf..59858cdb6318d0e262c6d9b70fa19d7191359403 100644 (file)
@@ -25,7 +25,6 @@
 using namespace std;
 #endif
 
-#include "AliL3StandardIncludes.h"
 #include "AliHLTSampleComponent2.h"
 
 /**
index 7b68fb6a9f8ff10750107a5c8f58a6dbb5cf19c2..461732548799094d537a1a22ef5aab0864e57f2e 100644 (file)
@@ -5,8 +5,7 @@ EXTRA_DIST                      = tutorial.c
 
 MODULE                                 = AliHLTSample
 
-AM_CPPFLAGS                    = -I$(top_srcdir)/src        \
-                                 -I$(top_srcdir)/BASE
+AM_CPPFLAGS                    = -I$(top_srcdir)/BASE
 
 
 # library definition
index 814f1c04f87c3a30400fa1f72a59c17fd55e8430..47c7f194cf99b341b109676a20b4d336cfe9996d 100644 (file)
@@ -3,8 +3,6 @@
 // Author: Anders Vestbo <mailto:vestbo@fi.uib.no>, Uli Frankenfeld <mailto:franken@fi.uib.no>
 //*-- Copyright &copy ALICE HLT Group
 
-#include "AliHLTTPCStandardIncludes.h"
-
 #ifndef no_root
 #include <TFile.h>
 #include <TDirectory.h>
index a83e70ca9e46ea6d9f19b7994042e2273b2b1293..8969ec2752fadf316a276d0292bc8a1226ebc9ae 100644 (file)
@@ -22,7 +22,6 @@
 #include <TStopwatch.h>
 #include <TMath.h>
 #endif
-#include "AliHLTTPCStandardIncludes.h"
 #include "AliHLTTPCRootTypes.h"
 #include "AliHLTTPCLogging.h"
 #include "AliHLTTPCBenchmark.h"
index eb78ea6b79086d41f44c162ae99394aff26eafd5..b912dff206644ba732bfc07797f28bdab09ce8dc 100644 (file)
@@ -3,7 +3,6 @@
 // Author: Anders Vestbo <mailto:vestbo@fi.uib.no>, Constantin Loizides <mailto:loizides@ikf.uni-frankfurt.de>
 //*-- Copyright &copy ALICE HLT Group
 
-#include "AliHLTTPCStandardIncludes.h"
 #include "AliHLTTPCRootTypes.h"
 #include "AliHLTTPCLogging.h"
 #include "AliHLTTPCClustFinderNew.h"
index fd4ca78df50b30aff88703f12bc8a88a0b68eae1..cd6dac7ff539a1a161313d2d9c4122dc1006aa11 100644 (file)
@@ -8,7 +8,6 @@
 
 
 #include "AliHLTTPCDigitReader.h"
-#include "AliHLTTPCStandardIncludes.h"
 #include "AliHLTTPCRootTypes.h"
 #include "AliHLTTPCLogging.h"
 #include "AliHLTTPCClusterFinder.h"
index 60d945baa47a8c91348c3c0249e0a28892351c1b..8ed758785a4666a9fbce7645a0bac80e35d9f287 100644 (file)
@@ -3,7 +3,6 @@
 // Author: Anders Vestbo <mailto:vestbo@fi.uib.no>
 //*-- Copyright &copy ALICE HLT Group
 
-#include "AliHLTTPCStandardIncludes.h"
 #include "AliHLTTPCRootTypes.h"
 #include "AliHLTTPCLogging.h"
 #include "AliHLTTPCVertex.h"
index 83637d0a202004781712e19e9b59e1bd78e531b6..d625ddcbdf1c4e682b2e5803cd606cfbe7bf4b43 100644 (file)
@@ -3,8 +3,6 @@
 // Author: Anders Vestbo <mailto:vestbo$fi.uib.no>
 //*-- Copyright &copy ALICE HLT Group
 
-#include "AliHLTTPCStandardIncludes.h"
-
 #include "AliHLTTPCLogging.h"
 #include "AliHLTTPCConfMapPoint.h"
 #include "AliHLTTPCSpacePointData.h"
index 2515436dcb782b2a6a8bf7fa6b2651afd1c0aee8..9f5c9594306fede0e0e79384cf1e9c8bdfd30eb1 100644 (file)
@@ -3,8 +3,6 @@
 // Author: Anders Vestbo <mailto:vestbo@fi.uib.no>, Uli Frankenfeld <mailto:franken@fi.uib.no>
 //*-- Copyright &copy ALICE HLT Group 
 
-#include "AliHLTTPCStandardIncludes.h"
-
 #include "AliHLTTPCRootTypes.h"
 #include "AliHLTTPCLogging.h"
 #include "AliHLTTPCVertex.h"
index 310051304ea7451cebb407514445ea51cfcfb770..ba325054ef0298d850ded398c34c83f78f238b41 100644 (file)
@@ -14,7 +14,6 @@
 
 #include <sys/time.h>
  
-#include "AliHLTTPCStandardIncludes.h"
 #include "AliHLTTPCRootTypes.h"
 #include "AliHLTTPCSpacePointData.h"
 #include "AliHLTTPCLogging.h" 
index 4e3e72cdc5803c67f47ed19cdc622ba08e2642c6..aa4b4ae4e60e0965f2e4b8807532d807150d203d 100644 (file)
@@ -3,8 +3,6 @@
 // Author: C. Loizides <loizides@ikf.uni-frankfurt.de>
 //*-- Copyright &copy ALICE HLT Group
 
-#include "AliHLTTPCStandardIncludes.h"
-
 #include "AliHLTTPCRootTypes.h"
 #include "AliHLTTPCLogging.h"
 #include "AliHLTTPCTransform.h"
index b3d2dce7f5b619bd1e2a4775e35f0ccce8e4364e..1d8c3fa0291a7fe10f8a3706e5edcabba0c98466 100644 (file)
@@ -3,8 +3,7 @@
 // Author: Anders Vestbo <mailto:vestbo@fi.uib.no>
 //*-- Copyright &copy ALICE HLT Group
 
-#include "AliHLTTPCStandardIncludes.h"
-
+#include "AliHLTStdIncludes.h"
 #include "AliHLTTPCRootTypes.h"
 #include "AliHLTTPCTransform.h"
 
index 4947e1d717248cef4c67e4f87a363eb64fee812f..54a76325b490a4d7503564e6b302b436bfec6c6b 100644 (file)
@@ -16,7 +16,6 @@
 #define TRACKPOLYMARKER 0
 #define BACKWARD 0
 
-#include "AliHLTTPCStandardIncludes.h"
 #include <TView.h>
 #include <TPolyMarker3D.h>
 #include <TPolyLine3D.h>
index cbf89bbd5730e37af5bd2c466f984e5360f1c1dc..db36f49f69a45b21afabbca6eb38eb6ddb1ea04a 100644 (file)
@@ -3,7 +3,6 @@
 // Author: Uli Frankenfeld <mailto:franken@fi.uib.no>, Anders Vestbo <mailto:vestbo$fi.uib.no>, C. Loizides <mailto:loizides@ikf.uni-frankfurt.de>
 //*-- Copyright &copy ALICE HLT Group 
 
-#include "AliHLTTPCStandardIncludes.h"
 #include <TClonesArray.h>
 #include <TSystem.h>
 #include <TMath.h>
index f153ecc5d2e074976b322fed263c5162fb64ffb5..edb02c0594e55b808e277981edbe91c23176bce1 100644 (file)
@@ -13,7 +13,6 @@
 */
 
 #include <math.h>
-#include "AliHLTTPCStandardIncludes.h"
 #include "AliHLTTPCLogging.h"
 #include "AliHLTTPCFitter.h"
 #include "AliHLTTPCVertex.h"
index 4a079e70fc4f9dac8dd20128a0df936a1b4992b9..3b136a7a6d25d6ce89e5e6e3f35df54d614add40 100644 (file)
@@ -3,8 +3,6 @@
 // Author: Uli Frankenfeld <mailto:franken@fi.uib.no>
 //*-- Copyright &copy ALICE HLT Group 
 
-#include "AliHLTTPCStandardIncludes.h"
-
 #include "AliHLTTPCLogging.h"
 #include "AliHLTTPCGlobalMerger.h"
 #include "AliHLTTPCTrack.h"
index 4c16f7c2397702bbd7c6d4af276e691cd8e5aef4..90f1a37f3f31502442ed55bcc21671d2cdeecd98 100644 (file)
@@ -3,8 +3,6 @@
 // Author: Uli Frankenfeld <mailto:franken@fi.uib.no>
 //*-- Copyright &copy ALICE HLT Group
 
-#include "AliHLTTPCStandardIncludes.h"
-
 #include "AliHLTTPCLogging.h"
 #include "AliHLTTPCInterMerger.h"
 #include "AliHLTTPCTrack.h"
index 9bf28ca64b28e37b3503dae214ecfa8f4f59e7bb..f2a87a842eae011c9b0d9cf54c050302c345f5e9 100644 (file)
@@ -2,7 +2,6 @@
 
 #ifndef use_logging
 
-#include "AliHLTTPCStandardIncludes.h"
 #include "AliHLTTPCLogging.h"
 
 AliHLTTPCLog::TLogLevel AliHLTTPCLog::fgLevel=AliHLTTPCLog::kNone;
index 6c04548549d00bd718d936f5b3b7f4dc156e8a72..3cc4f80db88c7cef33257609851894a470e0bd6b 100644 (file)
@@ -4,7 +4,7 @@
 #define ALIHLTTPCLOGGING_H
 
 #include "AliHLTTPCRootTypes.h"
-#include "AliHLTTPCStandardIncludes.h"
+#include "AliHLTStdIncludes.h"
 
 #ifdef use_logging
 #include <MLUCLog.hpp>
index 204ad8058199b141b0491dc69dd212d75c3fd278..2fd6374691c2e427510d7932ba9bb04cde7d4e55 100644 (file)
@@ -63,7 +63,6 @@
 */  
 
 #include "AliHLTTPCRootTypes.h"
-#include "AliHLTTPCStandardIncludes.h"
 #include "AliHLTTPCDigitData.h"
 #include "AliHLTTPCLogging.h"
 #include "AliHLTTPCTransform.h"
index 8d4864adbd23b879c1dcbda3b0ef4c7049119c1f..d1bc403ab3825db04fd52cd1800ee467b8c900f3 100644 (file)
@@ -3,8 +3,6 @@
 // Author: Uli Frankenfeld <mailto:franken@fi.uib.no>
 //*-- Copyright &copy Uli 
 
-#include "AliHLTTPCStandardIncludes.h"
-
 #include "AliHLTTPCLogging.h"
 #include "AliHLTTPCMerger.h"
 #include "AliHLTTPCTrack.h"
index 0683e6216c7ea4a1ebab8f62a5c8ccea99bd1126..b337985d8a7fc8a7c25b56379531c28e1d878498 100644 (file)
@@ -8,8 +8,6 @@
 // 
 
 
-#include "AliHLTTPCStandardIncludes.h"
-
 #include "AliHLTTPCLogging.h"
 #include "AliHLTTPCTransform.h"
 #include "AliHLTTPCVertex.h"
index b8c9e5b641c55abb48bd676e75847afe0ffd8a1e..39b9bc4ece11a76f871051c0b1cbe45699345527 100644 (file)
@@ -3,9 +3,6 @@
 // Author: Anders Vestbo <mailto:vestbo$fi.uib.no>, Uli Frankenfeld <mailto:franken@fi.uib.no>
 //*-- Copyright &copy ALICE HLT Group
 
-#include "AliHLTTPCStandardIncludes.h"
-#include "AliHLTTPCRootTypes.h"
-#include "AliHLTTPCRootTypes.h"
 #include "AliHLTTPCLogging.h"
 #include "AliHLTTPCTrack.h"
 #include "AliHLTTPCTransform.h"
index 89db67175710b3fc4b30948e0d31793ff190773d..5170d24c6ef944fe119ec3846d9751507ce35ac2 100644 (file)
@@ -3,8 +3,6 @@
 // Author: Uli Frankenfeld <mailto:franken@fi.uib.no>
 //*-- Copyright &copy ALICE HLT Group
 
-#include "AliHLTTPCStandardIncludes.h"
-
 #include "AliHLTTPCLogging.h"
 #include "AliHLTTPCTrackArray.h"
 #ifdef INCLUDE_TPC_HOUGH
index 002042dd7fc9ba90f66a796a7b48adf03327507f..7fd2175bdbdde7d30e70ea7d23d6ec5a32ab89b3 100644 (file)
@@ -13,8 +13,6 @@
 </pre
 */
 
-#include "AliHLTTPCStandardIncludes.h"
-
 #include "AliHLTTPCLogging.h"
 #include "AliHLTTPCTrackMerger.h"
 #include "AliHLTTPCTrack.h"
index 0480c3e32eeb57565b3945bcded2f14246edab6b..462f668299566b650dc3cb611e7f87565c522db7 100644 (file)
@@ -4,7 +4,6 @@
 //*-- Copyright &copy ALICE HLT Group
 
 
-#include "AliHLTTPCStandardIncludes.h"
 #include "dirent.h"
 
 #ifdef use_aliroot
index 369dbb9200814ceded9758cd5ae2cd602d7a0009..33cec77e40190e709e1c54ca577aeec056e4967c 100644 (file)
@@ -3,8 +3,6 @@
 // Author: Uli Frankenfeld <mailto:franken@fi.uib.no>
 //*-- Copyright &copy ALICE HLT Group
 
-#include "AliHLTTPCStandardIncludes.h"
-#include "AliHLTTPCRootTypes.h"
 #include "AliHLTTPCLogging.h"
 #include "AliHLTTPCVertexData.h"
 #include "AliHLTTPCVertex.h"
index a7290fb827e7ba0185f749dbd997257bc61ae283..6318a35b9f7b44f563c579163f053e081542d8aa 100644 (file)
@@ -3,8 +3,6 @@
 // Author: Uli Frankenfeld <mailto:franken@fi.uib.no>
 //*-- Copyright &copy ALICE HLT Group
 
-#include "AliHLTTPCStandardIncludes.h"
-
 #include "AliHLTTPCLogging.h"
 #include "AliHLTTPCVertexArray.h"
 
index 82e773402b17af29889af6cacbc8a5c1d32dafb5..83b8eab55bd61d0d67b58dd547d3f36b9a055594 100644 (file)
@@ -3,8 +3,6 @@
 // Author: Uli Frankenfeld <mailto:franken@fi.uib.no>
 //*-- Copyright &copy ALICE HLT Group
 
-#include "AliHLTTPCStandardIncludes.h"
-#include "AliHLTTPCRootTypes.h"
 #include "AliHLTTPCSpacePointData.h"
 #include "AliHLTTPCVertexData.h"
 #include "AliHLTTPCLogging.h"
index 3fb3755782436b98c29f6eb31d6367220f8f4dd3..cf4f3956804e0afd18eb681756f513037a189a51 100644 (file)
@@ -3,8 +3,7 @@
 
 MODULE                                 = AliHLTTPC
 
-AM_CPPFLAGS                    = -I$(top_srcdir)/src        \
-                                 -I$(top_srcdir)/BASE       \
+AM_CPPFLAGS                    = -I$(top_srcdir)/BASE       \
                                  -I$(ALICE_ROOT)/include    \
                                  -I$(ALICE_ROOT)/TPC        \
                                  -I$(ALICE_ROOT)/CONTAINERS \
@@ -117,7 +116,7 @@ pkginclude_HEADERS          = $(CLASS_HDRS) \
 
 
 # version info for the library
-libAliHLTTPC_la_LDFLAGS        =  -version-info 1:0:0
+libAliHLTTPC_la_LDFLAGS        =  -version-info 2:0:0
 
 # set the file name for the generated root dictionary
 DICTCPP                                =  AliHLTTPC-DICT.cxx
@@ -127,4 +126,7 @@ CLEANFILES                  =
 
 include $(top_srcdir)/make.dict
 
-SUBDIRS                        = . Ref
+if EN_HLT_TPCREF
+REFDIR                         = Ref
+endif
+SUBDIRS                        = . $(REFDIR)
index 2da82551d6f4016d87818714ca3a0bec5c0dd3c6..39bf5550543570186e904eeebc8aae2ce2c340ae 100644 (file)
@@ -43,9 +43,47 @@ ALIHLT_USEPACKAGE=ALIROOT
 #ALIHLT_USEPACKAGE=STANDALONE
 AC_DEFINE(use_aliroot)
 AC_DEFINE(use_root)
-CPPFLAGS="$CPPFLAGS -DROOTVERSION=`${ROOTCONF} --version`"
-CPPFLAGS="$CPPFLAGS -DALIROOTVERSION=0"
-CPPFLAGS="$CPPFLAGS -I${ROOTINCDIR}"
+CPPFLAGS="$CPPFLAGS -DROOTVERSION=\\\"`${ROOTCONF} --version`\\\""
+CPPFLAGS="$CPPFLAGS -DALIROOTVERSION=\\\"Unknown\\\""
+CPPFLAGS="$CPPFLAGS ${ROOTCFLAGS}"
+LDFLAGS="$LDFLAGS -L${ROOTLIBDIR} ${ROOTLIBS}"
+
+dnl ------------------------------------------------------------------
+dnl check for AliRoot
+dnl AC_LANG_PUSH(C++)
+dnl AC_MSG_CHECKING([for AliRoot])
+dnl have_aliroot=no
+dnl ALIROOTLIBDIR=${ALICE_ROOT}/lib/tgt_${ALICE_TARGET}
+dnl ALIROOTINCDIR=${ALICE_ROOT}/include
+dnl if test "x$ALICE_ROOT" != "x" \
+dnl    && test -d ${ALIROOTLIBDIR} \
+dnl    && test -d ${ALIROOTINCDIR}; then
+dnl have_aliroot=yes
+dnl else
+dnl ALIROOTLIBDIR=
+dnl ALIROOTINCDIR=
+dnl fi
+dnl AC_MSG_RESULT([$have_aliroot])
+
+dnl if test ! "x$have_aliroot" = "x" ; then
+dnl CPPFLAGS="$CPPFLAGS -I${ALIROOTINCDIR}"
+dnl LDFLAGS="$LDFLAGS -L${ALIROOTLIBDIR} -lESD -lGeom -lMinuit -lVMC -lEG -lRAWData -ldl"
+dnl have_alisteer=no
+dnl AC_CHECK_LIB(STEER, [AliRun], [have_alisteer=yes])
+dnl fi
+dnl AC_LANG_POP(C++)
+
+
+dnl ------------------------------------------------------------------
+AC_MSG_CHECKING([whether to impose strict coding conventions])
+AC_ARG_ENABLE(strict,
+  [AC_HELP_STRING([--enable-strict],
+      [enable coding convention checks ])],
+  [],[enable_strict=no])
+if test "x$enable_strict" = "xyes" ; then
+   CPPFLAGS="$CPPFLAGS -Weffc++"
+fi
+AC_MSG_RESULT([$enable_strict])
 
 dnl ------------------------------------------------------------------
 AC_MSG_CHECKING([whether to compile sample library])
@@ -73,6 +111,21 @@ fi
 AM_CONDITIONAL(EN_HLT_TPC, test x$enable_tpc = xyes)
 AC_MSG_RESULT([$enable_tpc])
 
+dnl ------------------------------------------------------------------
+if test "x$enable_tpc" = "xyes" ; then 
+  AC_MSG_CHECKING([whether to compile tpc reference library])
+  AH_TEMPLATE([HLT_TPCREF],[hlt tpc reference library])
+  AC_ARG_ENABLE(tpcref,
+    [AC_HELP_STRING([--enable-tpcref],
+        [compile the tpc reference library ])],
+    [],[enable_tpcref=no])
+  if test "x$enable_tpcref" = "xyes" ; then 
+    AC_DEFINE(HLT_TPCREF)
+  fi
+  AM_CONDITIONAL(EN_HLT_TPCREF, test x$enable_tpcref = xyes)
+  AC_MSG_RESULT([$enable_tpcref])
+fi
+
 dnl ------------------------------------------------------------------
 AC_MSG_CHECKING([whether to enable HLT logging])
 AH_TEMPLATE([NOLOGGING],[disable hlt logging])
@@ -97,13 +150,6 @@ if test "x$enable_mc_saving" = "xyes" ; then
 fi
 AC_MSG_RESULT([$enable_mc_saving])
 
-dnl ------------------------------------------------------------------
-# TODO: get AliRoot version during configure
-#Switch on ALIROOT version detection by cvs command
-#ifeq ($(ALIHLT_ALIDETECT),true)
-#USECVS = 1
-#endif
-
 dnl ------------------------------------------------------------------
 AC_MSG_CHECKING([whether to enable AliRoot NEWIO])
 AH_TEMPLATE([use_newio],[AliRoot NEWIO])
@@ -153,7 +199,6 @@ AC_CONFIG_FILES([Makefile
                 SampleLib/Makefile
                 TPCLib/Makefile
                 TPCLib/Ref/Makefile
-                src/Makefile
                 doc/Makefile
                 doc/doxygen.conf])
 
index 1ba4a7ac9e71b080927a57b88ebc62f8028208d6..d04396e69f3c0c0fa1a3978e58d2d83a696a544f 100644 (file)
 #
 #***********************************************************************/
 
-EXTRA_DIST             = mainpage.c
+EXTRA_DIST             = mainpage.c \
+                         pics/HLT-AliRoot-Integration_overview.png \
+                         pics/HLT-AliRoot-Integration_overview.eps \
+                         pics/HLT-AliRoot-Integration_overview.png \
+                         pics/HLT-AliRoot-Integration_overview.eps \
+                         pics/PubSub_WrapperComponent.png
 
 DISTCLEANFILES         = doxy.log $(PACKAGE).tags
 if HAVE_DOXYGEN
@@ -57,7 +62,6 @@ clean-local:
 
 html/index.html $(PACKAGE).tags: doxygen.conf Makefile mainpage.c      
        $(DOXYGEN) $<  
-#      for i in `find @srcdir@/pics -name '*.png'`; do cp -f $$i html/pic_`basename $$i`; done
 
 tar-ball:$(HTML)
        if test -f html/index.html ; then \
index d4ed786d1b90476e370ecdc84dcbf462f4640036..baa7c78dda316550ad350dc44ad51d2ecb648964 100644 (file)
@@ -42,4 +42,3 @@ eg. in inline functions defined in header files */
 #endif //__GNUC__
 
 #endif
-
diff --git a/HLT/src/Makefile.am b/HLT/src/Makefile.am
deleted file mode 100644 (file)
index e8773d3..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-# $Id$
-# Makefile template for the old TPC HLT code
-#
-# The purpose of this file is to include header files to the
-# package
-
-pkginclude_HEADERS             =  AliL3RootTypes.h \
-                                  AliL3StandardIncludes.h