]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
1) Removed the obsolete class AliHLTPHOSRcuProperties.cxx/h
authorphille <phille@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 30 Sep 2009 02:48:41 +0000 (02:48 +0000)
committerphille <phille@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 30 Sep 2009 02:48:41 +0000 (02:48 +0000)
as the functionality of this class is now performed
by the specification and data origing variables
of the HLT framework.

2) removed the reference to the classes that was  using
the class AliHLTPHOSRcuProperties and modified the code accordingly.

12 files changed:
HLT/PHOS/AliHLTPHOSRawAnalyzerComponentv3.cxx
HLT/PHOS/AliHLTPHOSRcuDAComponent.cxx
HLT/PHOS/AliHLTPHOSRcuDAComponent.h
HLT/PHOS/AliHLTPHOSRcuHistogramProducerComponent.cxx
HLT/PHOS/AliHLTPHOSRcuHistogramProducerComponent.h
HLT/PHOS/AliHLTPHOSRcuProcessor.cxx
HLT/PHOS/AliHLTPHOSRcuProcessor.h
HLT/PHOS/AliHLTPHOSRcuProperties.cxx [deleted file]
HLT/PHOS/AliHLTPHOSRcuProperties.h [deleted file]
HLT/PHOS/AliHLTPHOSUtilities.cxx
HLT/PHOS/AliHLTPHOSUtilities.h
HLT/libAliHLTPHOS.pkg

index deef0e3d7c65b90ab7037b358b273a75993868f9..e245ff18992f17901b012147e637051800522e91 100644 (file)
@@ -23,7 +23,7 @@
 #include "AliAltroRawStreamV3.h"
 #include "AliCaloRawStreamV3.h"
 #include "AliRawReaderMemory.h"
-
+#include "AliHLTPHOSUtilities.h"
 
 AliHLTPHOSRawAnalyzerComponentv3::AliHLTPHOSRawAnalyzerComponentv3():
   AliHLTPHOSRcuProcessor(), 
@@ -306,7 +306,7 @@ AliHLTPHOSRawAnalyzerComponentv3::DoInit( int argc, const char** argv )
 { 
 
   //See base class for documentation
-  fPrintInfo = kFALSE;
+  // fPrintInfo = kFALSE;
   int iResult=0;
   fMapperPtr = new AliHLTPHOSMapper();
 
index 5a4509ae851cf47fab8cb7280f1d79050e1fc15e..942ccdb6299e2885e385cca2935dbaa344850cff 100644 (file)
@@ -23,6 +23,7 @@
 #include "AliHLTPHOSConstants.h"
 //#include "AliHLTPHOSRcuCellEnergyDataStruct.h"
 #include "TObjArray.h"
+#include "AliHLTPHOSUtilities.h"
 
 //#include <iostream>
 
@@ -42,7 +43,7 @@ using namespace PhosHLTConst;
 
 AliHLTPHOSRcuDAComponent gAliHLTPHOSRcuDAComponent;
 
-AliHLTPHOSRcuDAComponent::AliHLTPHOSRcuDAComponent() : AliHLTPHOSRcuProperties(),
+AliHLTPHOSRcuDAComponent::AliHLTPHOSRcuDAComponent() : //AliHLTPHOSRcuProperties(),
                                                       AliHLTCalibrationProcessor(),
                                                       fPhosEventCount(0),
                                                       fPHOSDAPtr(0),
@@ -105,8 +106,11 @@ AliHLTPHOSRcuDAComponent::GetComponentID()
 Int_t
 AliHLTPHOSRcuDAComponent::ScanArgument( Int_t argc, const char** argv)
 {
-  ScanArguments(argc, argv);
-  return 0;
+  //CRAP PTH
+  //  AliHLTPHOSUtilities::ScanArguments(argc, argv);
+
+ return 0;
 }
 
 
index ca1f2d6c5bfae0345b7fc1732f1d35e3561b2af6..876ad414e49dd9a23d542c7633bd919c4249dd61 100644 (file)
@@ -37,7 +37,7 @@
 
 #include "AliHLTCalibrationProcessor.h"
 #include "AliHLTPHOSConstants.h"
-#include "AliHLTPHOSRcuProperties.h"
+//#include "AliHLTPHOSRcuProperties.h"
 
 using namespace PhosHLTConst;
 
@@ -46,7 +46,10 @@ class AliHLTPHOSSharedMemoryInterfacev2;
 class TObjArray;
 
 //class AliHLTPHOSRcuDAComponent: public AliHLTCalibrationProcessor,  public AliHLTPHOSRcuProcessor
-class AliHLTPHOSRcuDAComponent:  public AliHLTPHOSRcuProperties, public AliHLTCalibrationProcessor
+//class AliHLTPHOSRcuDAComponent:  public AliHLTPHOSRcuProperties, public AliHLTCalibrationProcessor
+class AliHLTPHOSRcuDAComponent:  public AliHLTCalibrationProcessor
+
+
 {
 public:
   /** constructor */
index 09b5778feab62b49043c3cdea998e839273543e1..ef37d3dc2e77c950e3e4d0d22edf13af2b8cfbca 100644 (file)
@@ -24,6 +24,7 @@
 //#include "AliHLTPHOSValidCellDataStruct.h" 
 #include "AliHLTPHOSChannelDataHeaderStruct.h"
 #include "AliHLTPHOSChannelDataStruct.h"
+//#include "AliHLTPHOSUtilities.h"
 
 
 AliHLTPHOSRcuHistogramProducerComponent gAliHLTPHOSRcuHistogramProducerComponent;
@@ -225,17 +226,25 @@ int
 AliHLTPHOSRcuHistogramProducerComponent::DoInit( int argc, const char** argv )
 {
   //See html documentation of base class
-  fPrintInfo = kFALSE;
+  //  fPrintInfo = kFALSE;
   int iResult=0;
   TString argument="";
-  iResult = ScanArguments(argc, argv);
+  // iResult = ScanArguments(argc, argv);
+
+  /*
   if(fIsSetEquippmentID == kFALSE)
     {
       Logging( kHLTLogFatal, "HLT::AliHLTPHOSRcuHistogramProducerComponent::DoInt( int argc, const char** argv )", "Missing argument",
               "The argument equippmentID is not set: set it with a component argumet like this: -equippmentID  <number>");
       iResult = -2; 
     }
-  fRcuHistoProducerPtr = new AliHLTPHOSRcuHistogramProducer( fModuleID, fRcuX, fRcuZ);
+  */
+
+  
+  //fRcuHistoProducerPtr = new AliHLTPHOSRcuHistogramProducer( fModuleID, fRcuX, fRcuZ);
+
   return iResult; 
   
 }
index 5e8bd0b22df48851cec2fc9c3134fc155b80920e..3bbb5876f1ab77d681de1b0a6bfca9f3aeb5f0a0 100644 (file)
@@ -8,7 +8,7 @@
  * See cxx source for full Copyright notice  */ 
 
 #include "AliHLTPHOSRcuProcessor.h"
-
+#include "AliHLTPHOSUtilities.h"
 
 //
 // Class tp produce calibration data
index 8d5d93afe664ee64c750263d2c9656215044c238..6e463c76c6f61620b964b95725ac37283475854f 100644 (file)
@@ -19,8 +19,8 @@
  **************************************************************************/
 #include "AliHLTPHOSRcuProcessor.h"
 
-AliHLTPHOSRcuProcessor::AliHLTPHOSRcuProcessor():AliHLTPHOSProcessor()
-                                                AliHLTPHOSRcuProperties()
+AliHLTPHOSRcuProcessor::AliHLTPHOSRcuProcessor():AliHLTPHOSProcessor()
+                                                //                              AliHLTPHOSRcuProperties()
 {
 
 }
index 4ce88627ab118ad0e4e5db875626d8a0ccd444a4..2d8b42496ebf3fbfc3011d06d0a5f2f153418100 100644 (file)
@@ -8,9 +8,11 @@
 
 
 #include "AliHLTPHOSProcessor.h"
-#include "AliHLTPHOSRcuProperties.h"
+//#include "AliHLTPHOSRcuProperties.h"
+
+//class  AliHLTPHOSRcuProcessor : public AliHLTPHOSProcessor, public AliHLTPHOSRcuProperties
+class  AliHLTPHOSRcuProcessor : public AliHLTPHOSProcessor
 
-class  AliHLTPHOSRcuProcessor : public AliHLTPHOSProcessor, public AliHLTPHOSRcuProperties
 {
  public:
   AliHLTPHOSRcuProcessor();
diff --git a/HLT/PHOS/AliHLTPHOSRcuProperties.cxx b/HLT/PHOS/AliHLTPHOSRcuProperties.cxx
deleted file mode 100644 (file)
index 1d42117..0000000
+++ /dev/null
@@ -1,132 +0,0 @@
-// $Id$
-
-/**************************************************************************
- * This file is property of and copyright by the Experimental Nuclear     *
- * Physics Group, Dep. of Physics                                         *
- * University of Oslo, Norway, 2007                                       *
- *                                                                        *
- * Author: Per Thomas Hille <perthi@fys.uio.no> for the ALICE HLT Project.*
- * Contributors are mentioned in the code where appropriate.              *
- * Please report bugs to perthi@fys.uio.no                                *
- *                                                                        *
- * Permission to use, copy, modify and distribute this software and its   *
- * documentation strictly for non-commercial purposes is hereby granted   *
- * without fee, provided that the above copyright notice appears in all   *
- * copies and that both the copyright notice and this permission notice   *
- * appear in the supporting documentation. The authors make no claims     *
- * about the suitability of this software for any purpose. It is          *
- * provided "as is" without express or implied warranty.                  *
- **************************************************************************/
-
-#include "AliHLTPHOSRcuProperties.h"
-#include "AliHLTPHOSUtilities.h"
-
-
-
-AliHLTPHOSRcuProperties::AliHLTPHOSRcuProperties() :fkEquippmentID(0),
-                                                   fModID(2), 
-                                                   fRcuID(0),
-                                                   fRcuX(0), 
-                                                   fRcuZ(0),
-                                                   fRcuZOffset(0),
-                                                   fRcuXOffset(0),
-                                                   fPrintInfo(false),
-                                                   fPrintInfoFrequncy(10000),
-                                                   fIsSetEquippmentID(kFALSE),
-                                                   fLog(),
-                                                   fIsInitialized(false),
-                                                   fUtilitiesPtr(0)
-{
-  fUtilitiesPtr = new AliHLTPHOSUtilities();
-
-}
-
-
-AliHLTPHOSRcuProperties::~AliHLTPHOSRcuProperties()
-{
-
-}
-
-
-int
-AliHLTPHOSRcuProperties::GetEquippmentID() const
-{
-  return fkEquippmentID;
-}
-
-
-int 
-AliHLTPHOSRcuProperties::GetRCUID() const
-{
-  return fRcuID;
-}
-
-
-int
-AliHLTPHOSRcuProperties::ScanArguments(int argc, const char** argv)
-{
-  int iResult=0; 
-  //       -equipmentID
-  fIsSetEquippmentID = fUtilitiesPtr->ScanSingleIntArgument(argc, argv, "-equipmentID", &fkEquippmentID);
-
-  if(fIsSetEquippmentID == true)
-    {
-      //     cout << "AliHLTPHOSRcuProperties::ScanArguments fIsSetEquippmentID  == true" << endl;
-    }
-  else
-    {
-      //     cout << "AliHLTPHOSRcuProperties::ScanArguments  fIsSetEquippmentID  == false" << endl;
-    }
-  
-
-  InitializeCoordinates(fkEquippmentID);
-  //  fPrintInfo = fIsSetEquippmentID = fUtilitiesPtr->ScanSingleIntArgument(argc, argv, "-printinfo", &fPrintInfoFrequncy);
-  fPrintInfo  = fUtilitiesPtr->ScanSingleIntArgument(argc, argv, "-printinfo", &fPrintInfoFrequncy);
-  
-  if(fIsSetEquippmentID == kFALSE)
-    {
-      fLog.Logging( kHLTLogFatal, "HLT::AliHLTPHOSRcuProperties::DoInt( int argc, const char** argv )", "Missing argument",
-              "The argument equippmentID is not set: set it with a component argumet like this: -equippmentID  <number>");
-      iResult = -3; 
-    }
-  
-  return iResult;
-}
-
-
-void 
-AliHLTPHOSRcuProperties::InitializeCoordinates(AliHLTUInt16_t /*equippmentID*/)
-{
-  fRcuID =  (fkEquippmentID - 1792)%NRCUSPERMODULE;
-  fModID = (fkEquippmentID  -1792 - fRcuID)/NRCUSPERMODULE;
-  if( fRcuID  == 0)
-    {
-      fRcuX = 0; 
-      fRcuZ = 0;
-    }
-
-  if( fRcuID  == 1)
-    {
-      fRcuX = 1; 
-      fRcuZ = 0;
-    }
-  if( fRcuID == 2)
-    {
-      fRcuX = 2; 
-      fRcuZ = 0;
-    }
-
-  if( fRcuID == 3)
-    {
-      fRcuX = 3; 
-      fRcuZ = 0;
-    }
-
-  fRcuZOffset =  NZROWSRCU*fRcuZ;
-  fRcuXOffset =  NXCOLUMNSRCU*fRcuX;
-  fIsInitialized = true;
-}
-
diff --git a/HLT/PHOS/AliHLTPHOSRcuProperties.h b/HLT/PHOS/AliHLTPHOSRcuProperties.h
deleted file mode 100644 (file)
index 89f0d59..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-//-*- Mode: C++ -*-
-// $Id$
-
-#ifndef ALIHLTPHOSRCUPROPERTIES_HPP
-#define ALIHLTPHOSRCUPROPERTIES_HPP
-
-/**************************************************************************
- * This file is property of and copyright by the Experimental Nuclear     *
- * Physics Group, Dep. of Physics                                         *
- * University of Oslo, Norway, 2007                                       *
- *                                                                        *
- * Author: Per Thomas Hille <perthi@fys.uio.no> for the ALICE HLT Project.*
- * Contributors are mentioned in the code where appropriate.              *
- * Please report bugs to perthi@fys.uio.no                                *
- *                                                                        *
- * Permission to use, copy, modify and distribute this software and its   *
- * documentation strictly for non-commercial purposes is hereby granted   *
- * without fee, provided that the above copyright notice appears in all   *
- * copies and that both the copyright notice and this permission notice   *
- * appear in the supporting documentation. The authors make no claims     *
- * about the suitability of this software for any purpose. It is          *
- * provided "as is" without express or implied warranty.                  *
- **************************************************************************/
-
-#include "AliHLTDataTypes.h"
-#include "AliHLTLogging.h"
-#include "AliHLTPHOSConstants.h"
-
-using namespace PhosHLTConst;
-
-#include "AliHLTPHOSUtilities.h"
-
-class  AliHLTPHOSRcuProperties
-{
-public:
-  AliHLTPHOSRcuProperties();
-  virtual ~AliHLTPHOSRcuProperties();
-  //  const int  GetEquippmentID() const;
-  //  const int GetRCUID() const;
-  int  GetEquippmentID() const; //OD
-  int GetRCUID() const; //OD
-  virtual int ScanArguments(int argc, const char** argv);
-  void InitializeCoordinates(const AliHLTUInt16_t equippmentID);
- protected:
-  int fkEquippmentID;  /**<Equippment ID as defined by ALICE*/
-  AliHLTUInt8_t  fModID; /**<ID of the module this component read data from (0-4)*/
-  int fRcuID;
-  AliHLTUInt8_t  fRcuX;                 /**<X position of RCU the data from this Equippment comes from (0 or 1)*/
-  AliHLTUInt8_t  fRcuZ;                 /**<Z position of RCU the data from this Equippment comes from (0 or 1)*/
-  AliHLTUInt8_t  fRcuZOffset;           /**<offset in therms of towers in the Z direction relative to the module*/ 
-  AliHLTUInt8_t  fRcuXOffset;           /**<offset in therms of towers in the X direction relative to the module*/
-  bool fPrintInfo;                    /**<wether or not to print debugg info to std out*/
-  int fPrintInfoFrequncy;               /**<Defines the update frequency for information printet to std out*/
-  bool fIsSetEquippmentID;            /**<wether or not the EquippmentID is set*/
-  AliHLTLogging fLog;
-  bool fIsInitialized; 
-  AliHLTPHOSUtilities *fUtilitiesPtr;
-
- private:
-  AliHLTPHOSRcuProperties   (const AliHLTPHOSRcuProperties  & );
-  AliHLTPHOSRcuProperties    & operator = (const AliHLTPHOSRcuProperties &);
-
-};
-
-#endif
index 8acaea829e8bd18189e6dc1930959f98fe4849e3..2b07ecbc3cf2fbd1cc13a1efe509e5c80f7043a6 100644 (file)
@@ -170,7 +170,7 @@ AliHLTPHOSUtilities::CheckFile(const char *fileName, const char *opt) const
 // returns the index if the argument if it exists
 // returns a negative value if it doesnt exist
 int 
-AliHLTPHOSUtilities::DoExistArgument(const int argc, const char** argv, const char *name) const
+AliHLTPHOSUtilities::DoExistArgument(const int argc, const char** argv, const char *name) 
 {
   string s1;
 
index 1cc8dc56f28534c8bebe3ae65c122738653f668d..b9df376599cf56ba4172640bd8f0b6bd46c833a6 100644 (file)
@@ -35,10 +35,10 @@ class  AliHLTPHOSUtilities
  
   bool CheckFile(const char *fileName, const char *opt) const;
 
-  bool ScanSingleIntArgument(int argc, const char** argv, const char *name, int *value = 0 );
-  bool ScanSingleFloatArgument(int argc, const char** argv, const char *name, float *value = 0 );
-  bool ScanSingleNameArgument(int argc, const char** argv, const char *name, char *outname = 0 );
-  bool ScanSingleArgument(int argc, const char** argv, const char *name);
+  static bool ScanSingleIntArgument(int argc, const char** argv, const char *name, int *value = 0 );
+  static bool ScanSingleFloatArgument(int argc, const char** argv, const char *name, float *value = 0 );
+  static bool ScanSingleNameArgument(int argc, const char** argv, const char *name, char *outname = 0 );
+  static bool ScanSingleArgument(int argc, const char** argv, const char *name);
 
   template<typename T> 
     void  DumpData(T *array, int N, int nPerLine)
@@ -86,7 +86,7 @@ class  AliHLTPHOSUtilities
 
   
  private:
-  int DoExistArgument(const int argc, const char** argv, const char *argument) const;
+  static int DoExistArgument(const int argc, const char** argv, const char *argument) ;
 
 };
 
index 927a232ed53fd89e7fac56dc3cb4184367da3677..8e454b05b0bbe3e27bcee646f1c0d723f41a53af 100644 (file)
@@ -34,7 +34,6 @@ CLASS_HDRS:=    AliHLTPHOSClusterizer.h \
                  AliHLTPHOSESDMaker.h \
                  AliHLTPHOSESDMakerComponent.h \
                  AliHLTPHOSRcuDAComponent.h \
-                  AliHLTPHOSRcuProperties.h \
                  AliHLTPHOSUtilities.h \
                  AliHLTPHOSHistogramProducer.h \
                  AliHLTPHOSHistogramProducerComponent.h \