]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliCaloPeakFinderVectors.h
address Coverity mem leak warning
[u/mrichter/AliRoot.git] / EMCAL / AliCaloPeakFinderVectors.h
index b336a5b170043cfce03e4c0e3689689c93eb2ee7..cc83dedaa09ef73ac4991c2300dbe18ce7e35b07 100644 (file)
@@ -1,3 +1,4 @@
+// -*- mode: c++ -*-
 #ifndef ALICALOPEAKFINDERVECTORS_H
 #define ALICALOPEAKFINDERVECTORS_H
 
 //Container class for Peak Finder vectors
 
 #include "TObject.h"
-#include "AliCaloPeakFinderConstants.h"
-using namespace PeakFinderConstants;
+//#include "AliCaloPeakFinderConstants.h"
+//using namespace PeakFinderConstants;
+
+#include "AliCaloConstants.h"
 
 
 class AliCaloPeakFinderVector;
@@ -37,16 +40,16 @@ class  AliCaloPeakFinderVectors : public TObject
                 const Double_t *const ac, const Double_t *const tc );
   void GetVector(const int i, const int j, Double_t *const a, Double_t *const  t,  
                 Double_t *const ac, Double_t *const tc ) const;
+  void PrintVectors() const;
   void ResetVectors();
 
-  Double_t fPFAmpVC[MAXSTART][SAMPLERANGE][100]; // Vectors for Amplitude extraction, first iteration 
-  Double_t fPFTofVC[MAXSTART][SAMPLERANGE][100]; // Vectors for TOF extraction, first iteration
-  Double_t fPFAmpV[MAXSTART][SAMPLERANGE][100];  // Vectors for Amplitude extraction, second iteration 
-  Double_t fPFTofV[MAXSTART][SAMPLERANGE][100];  // Vectors for TOF extraction, second iteration  
-  void PrintVectors() const;
+ private:
+  Double_t fPFAmpVC[PF::MAXSTART][PF::SAMPLERANGE][100]; // Vectors for Amplitude extraction, first iteration 
+  Double_t fPFTofVC[PF::MAXSTART][PF::SAMPLERANGE][100]; // Vectors for TOF extraction, first iteration
+  Double_t fPFAmpV[PF::MAXSTART][PF::SAMPLERANGE][100];  // Vectors for Amplitude extraction, second iteration 
+  Double_t fPFTofV[PF::MAXSTART][PF::SAMPLERANGE][100];  // Vectors for TOF extraction, second iteration  
   
-  ClassDef( AliCaloPeakFinderVectors, 1 )
+  ClassDef( AliCaloPeakFinderVectors, 2 )
     
 };