]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALTriggerPatch.h
Fix Coverity
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALTriggerPatch.h
index e84742fe328cca1fdb470159ebaea804356902d9..62817eaa2ae74d1411ab11ee1b36d1196cb84da0 100644 (file)
@@ -11,7 +11,6 @@ Author: R. GUERNANE LPSC Grenoble CNRS/IN2P3
 #ifndef ROOT_TObject
 #  include "TObject.h"
 #endif
-
 #include "TVector2.h"
 
 class TArrayI;
@@ -31,7 +30,7 @@ public:
        void      SetPeak(Int_t x, Int_t y, Int_t sizeX, Int_t sizeY);
 
        void      Position(TVector2& pos       ) const {pos = *fPosition;}
-       void      Position(Int_t& px, Int_t& py) const {px = fPosition->X(); py = fPosition->Y();}
+       void      Position(Int_t& px, Int_t& py) const {px = (Int_t)fPosition->X(); py = (Int_t)fPosition->Y();}
        TVector2* Position(                    ) const {return fPosition;}
        Int_t     Sum()   const {return fSum;} // in ADC counts
        Int_t     Time()  const {return fTime;}
@@ -43,10 +42,10 @@ private:
        
        AliEMCALTriggerPatch& operator=(const AliEMCALTriggerPatch& other); // Not implemented
        
-       TVector2*         fPosition;
-       Int_t             fSum;
-       Int_t             fTime;
-       Int_t             fPeaks;
+       TVector2*         fPosition; // Position
+       Int_t             fSum;      // Amplitude
+       Int_t             fTime;     // Time
+       Int_t             fPeaks;    // Peaks (L0 only)
        
        ClassDef(AliEMCALTriggerPatch,1)
 };