X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=EMCAL%2FAliEMCALTriggerPatch.h;h=62817eaa2ae74d1411ab11ee1b36d1196cb84da0;hb=ee3d9c105e76da36d7cabbd157ab324e10811bd0;hp=0f532fd49a9c14c7d131c73e83ca92b910a43f4a;hpb=916f1e76c5ffee7c7ed6214b883f65b4b6df3adf;p=u%2Fmrichter%2FAliRoot.git diff --git a/EMCAL/AliEMCALTriggerPatch.h b/EMCAL/AliEMCALTriggerPatch.h index 0f532fd49a9..62817eaa2ae 100644 --- a/EMCAL/AliEMCALTriggerPatch.h +++ b/EMCAL/AliEMCALTriggerPatch.h @@ -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) };