----------------------------------------------------------------------
[u/mrichter/AliRoot.git] / PHOS / AliPHOSDigit.h
CommitLineData
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
6////////////////////////////////////////////////
7// The digit class: a list of abs Id, energy//
8// Version SUBATECH //
9// Author Laurent Aphecetche SUBATECH //
10// comment: added sortable YS //
11// //
12////////////////////////////////////////////////
13
14// --- ROOT system ---
15
16#include "TObject.h"
17
18// --- Standard library ---
19
20// --- AliRoot header files ---
21
22#include "AliDigitNew.h"
23
24class AliPHOSDigit : public AliDigitNew {
25
26public:
27
28 AliPHOSDigit() {}
29 AliPHOSDigit(Int_t id, Int_t DigEnergy) ;
30 virtual ~AliPHOSDigit() {}
31
32 Bool_t operator==(AliPHOSDigit const &rValue) const;
33 AliPHOSDigit& operator+(AliPHOSDigit const &rValue) ;
34
35 friend ostream& operator << ( ostream& , const AliPHOSDigit&) ;
36
37 Int_t Compare(TObject * obj) ;
38 Int_t GetId() { return fId ; }
39 Int_t GetAmp() { return fAmp ; }
40 Bool_t IsSortable() const{ return kTRUE ; }
41
42private:
43 Int_t fId ; // absolute id
44 Int_t fAmp ; // digitalized energy
45
46public:
47
48 ClassDef(AliPHOSDigit,1) // Digit in PHOS, version 1
49
50} ;
51
52#endif // ALIPHOSDIGIT_H