3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 ////////////////////////////////////////////////
9 // The digit class: a list of abs Id, energy//
10 // Version SUBATECH //
11 // Author Laurent Aphecetche SUBATECH //
12 // comment: added sortable YS //
14 ////////////////////////////////////////////////
16 // --- ROOT system ---
20 // --- Standard library ---
22 // --- AliRoot header files ---
24 #include "AliDigitNew.h"
26 class AliPHOSDigit : public AliDigitNew {
31 AliPHOSDigit(Int_t primary, Int_t id, Int_t DigEnergy) ;
32 AliPHOSDigit(const AliPHOSDigit & digit) ;
33 virtual ~AliPHOSDigit() ;
35 Bool_t operator==(AliPHOSDigit const &rValue) const;
36 AliPHOSDigit& operator+(AliPHOSDigit const &rValue) ;
38 friend ostream& operator << ( ostream& , const AliPHOSDigit&) ;
40 Int_t Compare(TObject * obj) ;
41 Int_t GetNprimary() const { return fNprimary ; }
42 Int_t * GetPrimary() const { return fPrimary ; }
43 Int_t GetPrimary(Int_t index) const ;
44 Bool_t IsSortable() const { return kTRUE ; }
45 void SetAmp(Int_t Amp) { fAmp=Amp ; }
46 void SetPrimary(Int_t index, Int_t value) ;
50 Int_t * fPrimary ; //! Array of primary particles which contribute to the digit
51 Int_t fPrimary1 ; // first primary (because I do not know how to stream *fPrimary)
52 Int_t fPrimary2 ; // second primary (because I do not know how to stream *fPrimary)
53 Int_t fPrimary3 ; // third primary (because I do not know how to stream *fPrimary)
54 Int_t fNprimary ; // Number of primaries
56 ClassDef(AliPHOSDigit,1) // Digit in PHOS, version 1
60 #endif // ALIPHOSDIGIT_H