3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 //_________________________________________________________________________
11 // 3 identifiers for the primary particle(s) at the origine of the digit
12 // The digits are made in FinishEvent() by summing all the hits in a single PHOS crystal or PPSD gas cell
13 // It would be nice to replace the 3 identifiers by an array, but, because digits are kept in a TClonesQArray,
14 // it is not possible to stream such an array... (beyond my understqnding!)
16 //*-- Author: Laurent Aphecetche & Yves Schutz (SUBATECH)
18 // --- ROOT system ---
22 // --- Standard library ---
24 // --- AliRoot header files ---
26 #include "AliDigitNew.h"
28 class AliPHOSDigit : public AliDigitNew {
33 AliPHOSDigit(Int_t primary, Int_t id, Int_t DigEnergy) ;
34 AliPHOSDigit(const AliPHOSDigit & digit) ;
35 virtual ~AliPHOSDigit(){}
37 Bool_t operator==(AliPHOSDigit const &rValue) const;
38 AliPHOSDigit& operator+(AliPHOSDigit const &rValue) ;
40 friend ostream& operator << ( ostream& , const AliPHOSDigit&) ;
42 Int_t Compare(TObject * obj) ;
43 Int_t GetNprimary() const { return fNprimary ; }
44 Int_t GetPrimary(Int_t index) const ;
45 Bool_t IsSortable() const { return kTRUE ; }
46 void SetAmp(Int_t Amp) { fAmp=Amp ; }
50 Int_t fPrimary1 ; // first primary (because I do not know how to stream *fPrimary)
51 Int_t fPrimary2 ; // second primary (because I do not know how to stream *fPrimary)
52 Int_t fPrimary3 ; // third primary (because I do not know how to stream *fPrimary)
53 Int_t fNprimary ; // Number of primaries
55 ClassDef(AliPHOSDigit,1) // Digit in PHOS
59 #endif // ALIPHOSDIGIT_H