]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
- fixing compilation warnings
authorodjuvsla <odjuvsla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 4 Mar 2010 13:42:18 +0000 (13:42 +0000)
committerodjuvsla <odjuvsla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 4 Mar 2010 13:42:18 +0000 (13:42 +0000)
HLT/BASE/util/AliHLTCaloClusterReader.cxx
HLT/BASE/util/AliHLTCaloClusterReader.h
HLT/CALO/AliHLTCaloClusterAnalyser.cxx
HLT/CALO/AliHLTCaloClusterizer.cxx
HLT/EMCAL/AliHLTEMCALRawAnalyzerComponent.cxx
HLT/PHOS/AliHLTPHOSClusterAnalyser.cxx

index 4d0863614fb22f82f1e8558cb9f744f99cf943d7..1f97116309b2b62feb13eb0fe6a45ab3767a4567 100644 (file)
@@ -21,7 +21,9 @@ AliHLTCaloClusterReader::AliHLTCaloClusterReader():
   fCurrentClusterPtr(0),
   fIsSetMemory(false),
   fMaxCnt(0),
-  fCurrentCnt(0)
+  fCurrentCnt(0),
+  fDigitsPointer(0),
+  fNDigits(0)
 {
   //See header file for documentation
 }
index da9eed2e23a7691ea8d3227f160ebb31c44c1427..710f0085aa226cf5f729180b857d9e032b5b1d23 100644 (file)
@@ -65,7 +65,14 @@ public:
    */
   void Reset();
 
-  AliHLTCaloDigitDataStruct* GetDigits() {return fDigitsPointer; }
+  /**
+  * Get the digits shipped with the clusters
+  */
+  AliHLTCaloDigitDataStruct* GetDigits() {return fDigitsPointer; } 
+  
+  /** 
+  * Get the number of digits shipped with the clusters
+  */
   Int_t GetNDigits() {return fNDigits; }
   
  private:
index bfd316a5058514a4a8a1fe143b86238a0fb8eaf7..4f8be183bb0f429061264a05edcf7d0c6aade4c8 100644 (file)
@@ -234,7 +234,7 @@ AliHLTCaloClusterAnalyser::CreateClusters(Int_t nRecPoints, UInt_t availableSize
       memset(caloClusterPtr->fTracksMatched, 0xff, sizeof(Int_t)*10);
 
       //Int_t tmpSize = totSize + (caloClusterPtr->fNCells-1)*(sizeof(Short_t) + sizeof(Float_t));
-      Int_t tmpSize = (caloClusterPtr->fNCells-1)*sizeof(AliHLTCaloCellDataStruct);
+      UInt_t tmpSize = (caloClusterPtr->fNCells-1)*sizeof(AliHLTCaloCellDataStruct);
 
       if((availableSize - totSize)  < tmpSize)
       {
index f50cc8ea12cbd2dc2be2eae34d58a195c78d2c61..68ae05762dc1ae59fa60a314ea2c7dc0650444ac 100644 (file)
@@ -258,7 +258,7 @@ Int_t AliHLTCaloClusterizer::CheckArray()
 Int_t AliHLTCaloClusterizer::CheckBuffer()\r
 {\r
    // See header file for class documentation \r
-       if((fAvailableSize - fUsedSize) < sizeof(AliHLTCaloRecPointDataStruct))\r
+       if((fAvailableSize - fUsedSize) < (Int_t)sizeof(AliHLTCaloRecPointDataStruct))\r
        {\r
            Int_t recPointOffset = reinterpret_cast<UChar_t*>(fRecPointDataPtr) - reinterpret_cast<UChar_t*>(fFirstRecPointPtr);\r
            Int_t digitIndexOffset = reinterpret_cast<UChar_t*>(fDigitIndexPtr) - reinterpret_cast<UChar_t*>(fRecPointDataPtr);\r
index fb84eb88c69bdb53e2cb66d9d635f526aa9d631f..a318e0ea367998effb269f5f3d9fd1a7ecb47491 100644 (file)
@@ -119,8 +119,8 @@ AliHLTEMCALRawAnalyzerComponent::DoEvent( const AliHLTComponentEventData& evtDat
 {
   //-----------------------
   static int evntcnt = 0;
-  static double wlast = -1;
-  static double wcurrent = 0;
+//  static double wlast = -1;
// static double wcurrent = 0;
 
   evntcnt  ++;
   
index 2f89442dfc72f2d7b57f2a6f2953328855e0fbda..a0d18a572504195951dd64d095c97a7596192117 100644 (file)
@@ -168,7 +168,7 @@ AliHLTPHOSClusterAnalyser::CreateClusters(UInt_t availableSize, UInt_t& totSize)
  
   AliHLTCaloClusterDataStruct* caloClusterPtr = fCaloClusterDataPtr;
   
-  Int_t id = -1;
+  //Int_t id = -1;
   TVector3 globalPos;
 
   for(Int_t i = 0; i < fNRecPoints; i++) //TODO needs fix when we start unfolding (number of clusters not necessarily same as number of recpoints gotten from the clusterizer