Correct particle type for gamma and neutrons
[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
6ad0bfa0 6/* $Id$ */
7
d15a28e7 8////////////////////////////////////////////////
9// The digit class: a list of abs Id, energy//
10// Version SUBATECH //
11// Author Laurent Aphecetche SUBATECH //
12// comment: added sortable YS //
13// //
14////////////////////////////////////////////////
15
16// --- ROOT system ---
17
18#include "TObject.h"
19
20// --- Standard library ---
21
22// --- AliRoot header files ---
23
24#include "AliDigitNew.h"
25
26class AliPHOSDigit : public AliDigitNew {
27
28public:
29
30 AliPHOSDigit() {}
ff4c968a 31 AliPHOSDigit(Int_t primary, Int_t id, Int_t DigEnergy) ;
32 virtual ~AliPHOSDigit() ;
d15a28e7 33
34 Bool_t operator==(AliPHOSDigit const &rValue) const;
35 AliPHOSDigit& operator+(AliPHOSDigit const &rValue) ;
36
37 friend ostream& operator << ( ostream& , const AliPHOSDigit&) ;
38
39 Int_t Compare(TObject * obj) ;
ff4c968a 40 Int_t GetAmp() const { return fAmp ; }
41 Int_t GetId() const { return fId ; }
42 Int_t GetNprimary() const { return fNprimary ; }
43 Int_t * GetPrimary() const { return fPrimary ; }
44 Bool_t IsSortable() const { return kTRUE ; }
45 void SetAmp(Int_t Amp) { fAmp=Amp ; }
d15a28e7 46
47private:
ff4c968a 48
d15a28e7 49 Int_t fId ; // absolute id
50 Int_t fAmp ; // digitalized energy
ff4c968a 51 Int_t * fPrimary ; // Array of primary particles which contribute to the digit
52 Int_t fNprimary ; // Number of primaries
d15a28e7 53
d15a28e7 54 ClassDef(AliPHOSDigit,1) // Digit in PHOS, version 1
55
56} ;
57
58#endif // ALIPHOSDIGIT_H