AliRoot Core  3dc7879 (3dc7879)
AliEMCALTriggerPatch.h
Go to the documentation of this file.
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 //________________________________________________
15 //________________________________________________
16 
17 
18 #ifndef ROOT_TObject
19 # include "TObject.h"
20 #endif
21 #include "TVector2.h"
22 
23 class TArrayI;
24 
25 class AliEMCALTriggerPatch : public TObject {
26 
27 public:
28 
29  AliEMCALTriggerPatch(); // default ctor
30  AliEMCALTriggerPatch(const AliEMCALTriggerPatch& other); // copy ctor
31  AliEMCALTriggerPatch(Int_t i, Int_t j, Int_t e = 0, Int_t t = 0);
32  virtual ~AliEMCALTriggerPatch();
33 
34  void SetPosition(Int_t px, Int_t py) {fPosition->Set(float(px), float(py));}
35  void SetPosition(const TVector2& pos) {*fPosition = pos;}
36  void SetSum(Int_t sum) {fSum = sum;}
37  void SetTime(Int_t time) {fTime = time;}
38  void SetPeak(Int_t x, Int_t y, Int_t sizeX, Int_t sizeY);
39 
40  void Position(TVector2& pos ) const {pos = *fPosition;}
41  void Position(Int_t& px, Int_t& py) const {px = (Int_t)fPosition->X(); py = (Int_t)fPosition->Y();}
42  TVector2* Position( ) const {return fPosition;}
43  Int_t Sum() const {return fSum;} // in ADC counts
44  Int_t Time() const {return fTime;}
45  Int_t Peaks() const {return fPeaks;}
46 
47  void Print(const Option_t*) const;
48 
49 private:
50 
51  AliEMCALTriggerPatch& operator=(const AliEMCALTriggerPatch& other); // Not implemented
52 
53  TVector2* fPosition;
54  Int_t fSum;
55  Int_t fTime;
56  Int_t fPeaks;
57 
59  ClassDef(AliEMCALTriggerPatch,1) ;
61 
62 };
63 
64 #endif //ALIEMCALTRIGGERPATCH_H
virtual ~AliEMCALTriggerPatch()
Destructor.
TVector2 * fPosition
Position.
void SetTime(Int_t time)
void sum()
void Position(TVector2 &pos) const
EMCal trigger patch implementation.
void Print(const Option_t *) const
Print patch info.
void SetPosition(const TVector2 &pos)
AliEMCALTriggerPatch()
Default constructor.
TVector2 * Position() const
AliEMCALTriggerPatch & operator=(const AliEMCALTriggerPatch &other)
Int_t fPeaks
Peaks (L0 only)
void Position(Int_t &px, Int_t &py) const
void SetPeak(Int_t x, Int_t y, Int_t sizeX, Int_t sizeY)
Peak (add explanation)
void SetPosition(Int_t px, Int_t py)