]>
Commit | Line | Data |
---|---|---|
d15a28e7 | 1 | #ifndef ALIPHOSDIGIT_H |
2 | #define ALIPHOSDIGIT_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6ad0bfa0 | 6 | /* $Id$ */ |
7 | ||
702ab87e | 8 | /* History of cvs commits: |
9 | * | |
10 | * $Log$ | |
11 | */ | |
12 | ||
b2a60966 | 13 | //_________________________________________________________________________ |
14 | // PHOS digit: Id | |
15 | // energy | |
16 | // 3 identifiers for the primary particle(s) at the origine of the digit | |
17 | // The digits are made in FinishEvent() by summing all the hits in a single PHOS crystal or PPSD gas cell | |
184569b0 | 18 | // It would be nice to replace the 3 identifiers by an array, but, because digits are kept in a TClonesArray, |
b2a60966 | 19 | // it is not possible to stream such an array... (beyond my understqnding!) |
20 | // | |
21 | //*-- Author: Laurent Aphecetche & Yves Schutz (SUBATECH) | |
d15a28e7 | 22 | |
23 | // --- ROOT system --- | |
24 | ||
e957fea8 | 25 | //#include "TObject.h" |
d15a28e7 | 26 | |
27 | // --- Standard library --- | |
28 | ||
29 | // --- AliRoot header files --- | |
30 | ||
31 | #include "AliDigitNew.h" | |
32 | ||
33 | class AliPHOSDigit : public AliDigitNew { | |
6c370def | 34 | |
5cf7bbad | 35 | friend ostream& operator << ( ostream& , const AliPHOSDigit&) ; |
6c370def | 36 | |
88714635 | 37 | public: |
38 | ||
cf239357 | 39 | AliPHOSDigit() ; |
9688c1dd | 40 | AliPHOSDigit(Int_t primary, Int_t id, Int_t DigEnergy, Float_t Time, Int_t index = -1) ; |
cf239357 | 41 | AliPHOSDigit(const AliPHOSDigit & digit) ; |
2e5c3041 | 42 | virtual ~AliPHOSDigit() ; |
d15a28e7 | 43 | |
b27d82c8 | 44 | Bool_t operator==(const AliPHOSDigit &rValue) const; |
d15a28e7 | 45 | AliPHOSDigit& operator+(AliPHOSDigit const &rValue) ; |
88cb7938 | 46 | AliPHOSDigit& operator*(Float_t factor) ; |
39da3d9b | 47 | // AliPHOSDigit& operator=(const AliPHOSDigit) { |
48 | // Fatal("operator = ", "not implemented") ; return *this ; } | |
037cc66d | 49 | Int_t Compare(const TObject * obj) const ; |
88cb7938 | 50 | Int_t GetNprimary() const { return fNprimary ; } |
26d4b141 | 51 | Int_t GetPrimary(Int_t index) const ; |
9688c1dd | 52 | Float_t GetTime(void) const {return fTime ;} |
04f0bda3 | 53 | Float_t GetTimeR(void) const {return fTimeR ;} |
88cb7938 | 54 | Bool_t IsSortable() const { return kTRUE ; } |
702ab87e | 55 | void Print(const Option_t * = "") const; |
88cb7938 | 56 | void SetAmp(Int_t Amp) { fAmp=Amp ; } |
04f0bda3 | 57 | void SetTime(Float_t time) {fTime = time ;} |
58 | void SetTimeR(Float_t time) {fTimeR = time ;} | |
88cb7938 | 59 | void ShiftPrimary(Int_t shift); // shift to separate different TreeK in merging |
26d4b141 | 60 | |
88714635 | 61 | private: |
ff4c968a | 62 | |
88cb7938 | 63 | Int_t fNprimary ; // Number of primaries |
adc232ca | 64 | Int_t * fPrimary ; //[fNprimary] Array of primaries |
88cb7938 | 65 | Float_t fTime ; // Calculcated time |
04f0bda3 | 66 | Float_t fTimeR ; // Earliest time: to be used by Digits2Raw |
83974468 | 67 | |
04f0bda3 | 68 | ClassDef(AliPHOSDigit,3) // Digit in PHOS |
d15a28e7 | 69 | |
70 | } ; | |
71 | ||
72 | #endif // ALIPHOSDIGIT_H |