]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALTriggerPatch.h
passing max E to global var
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALTriggerPatch.h
index 0f532fd49a9c14c7d131c73e83ca92b910a43f4a..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;
@@ -21,21 +20,32 @@ class AliEMCALTriggerPatch : public TObject {
 public:
                  AliEMCALTriggerPatch();                                  // default ctor
                  AliEMCALTriggerPatch(const AliEMCALTriggerPatch& other); // copy ctor
-              AliEMCALTriggerPatch(Int_t i, Int_t j, Int_t e);
+              AliEMCALTriggerPatch(Int_t i, Int_t j, Int_t e = 0, Int_t t = 0);
         virtual ~AliEMCALTriggerPatch();
 
-       void      Position(TVector2& pos) const {pos = *fPosition;}
-       TVector2* Position(             ) const {return fPosition;}
-       Int_t     Sum() const {return fSum;} // in ADC counts
+       void      SetPosition(Int_t px, Int_t py)  {fPosition->Set(float(px), float(py));}
+       void      SetPosition(const TVector2& pos) {*fPosition = pos;}
+       void      SetSum(Int_t sum) {fSum = sum;}
+       void      SetTime(Int_t time) {fTime = time;}
+       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 = (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;}
+       Int_t     Peaks() const {return fPeaks;}
+       
        void      Print(const Option_t*) const;
-       void      GetAbsCellIdsFromPatchPosition(TVector2& psize, TVector2& ssize, TArrayI& absid);
        
 private:
        
        AliEMCALTriggerPatch& operator=(const AliEMCALTriggerPatch& other); // Not implemented
        
-       TVector2*         fPosition;
-       Int_t             fSum;
+       TVector2*         fPosition; // Position
+       Int_t             fSum;      // Amplitude
+       Int_t             fTime;     // Time
+       Int_t             fPeaks;    // Peaks (L0 only)
        
        ClassDef(AliEMCALTriggerPatch,1)
 };