]>
Commit | Line | Data |
---|---|---|
916f1e76 | 1 | #ifndef ALIEMCALTRIGGERPATCH_H |
2 | #define ALIEMCALTRIGGERPATCH_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* | |
7 | ||
8 | Author: R. GUERNANE LPSC Grenoble CNRS/IN2P3 | |
9 | */ | |
10 | ||
11 | #ifndef ROOT_TObject | |
12 | # include "TObject.h" | |
13 | #endif | |
14 | ||
15 | #include "TVector2.h" | |
16 | ||
17 | class TArrayI; | |
18 | ||
19 | class AliEMCALTriggerPatch : public TObject { | |
20 | ||
21 | public: | |
22 | AliEMCALTriggerPatch(); // default ctor | |
23 | AliEMCALTriggerPatch(const AliEMCALTriggerPatch& other); // copy ctor | |
de39a0ff | 24 | AliEMCALTriggerPatch(Int_t i, Int_t j, Int_t e = 0, Int_t t = 0); |
916f1e76 | 25 | virtual ~AliEMCALTriggerPatch(); |
26 | ||
de39a0ff | 27 | void SetPosition(Int_t px, Int_t py) {fPosition->Set(float(px), float(py));} |
28 | void SetPosition(const TVector2& pos) {*fPosition = pos;} | |
29 | void SetSum(Int_t sum) {fSum = sum;} | |
30 | void SetTime(Int_t time) {fTime = time;} | |
31 | void SetPeak(Int_t x, Int_t y, Int_t sizeX, Int_t sizeY); | |
32 | ||
33 | void Position(TVector2& pos ) const {pos = *fPosition;} | |
ddd131cc | 34 | void Position(Int_t& px, Int_t& py) const {px = (Int_t)fPosition->X(); py = (Int_t)fPosition->Y();} |
de39a0ff | 35 | TVector2* Position( ) const {return fPosition;} |
36 | Int_t Sum() const {return fSum;} // in ADC counts | |
37 | Int_t Time() const {return fTime;} | |
38 | Int_t Peaks() const {return fPeaks;} | |
39 | ||
916f1e76 | 40 | void Print(const Option_t*) const; |
916f1e76 | 41 | |
42 | private: | |
43 | ||
44 | AliEMCALTriggerPatch& operator=(const AliEMCALTriggerPatch& other); // Not implemented | |
45 | ||
46 | TVector2* fPosition; | |
47 | Int_t fSum; | |
de39a0ff | 48 | Int_t fTime; |
49 | Int_t fPeaks; | |
916f1e76 | 50 | |
51 | ClassDef(AliEMCALTriggerPatch,1) | |
52 | }; | |
53 | ||
54 | #endif |