]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOSDigit.h
New data member (cerenkov angle) in Cerenkov data structure.
[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
b2a60966 8//_________________________________________________________________________
9// PHOS digit: Id
10// energy
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!)
15//
16//*-- Author: Laurent Aphecetche & Yves Schutz (SUBATECH)
d15a28e7 17
18// --- ROOT system ---
19
20#include "TObject.h"
21
22// --- Standard library ---
23
24// --- AliRoot header files ---
25
26#include "AliDigitNew.h"
27
28class AliPHOSDigit : public AliDigitNew {
29
30public:
31
cf239357 32 AliPHOSDigit() ;
83974468 33 AliPHOSDigit(Int_t primary, Int_t id, Int_t DigEnergy, Int_t index = -1) ;
cf239357 34 AliPHOSDigit(const AliPHOSDigit & digit) ;
b2a60966 35 virtual ~AliPHOSDigit(){}
d15a28e7 36
37 Bool_t operator==(AliPHOSDigit const &rValue) const;
38 AliPHOSDigit& operator+(AliPHOSDigit const &rValue) ;
39
31aa6d6c 40 friend class ostream& operator << ( ostream& , const AliPHOSDigit&) ;
d15a28e7 41
42 Int_t Compare(TObject * obj) ;
ff4c968a 43 Int_t GetNprimary() const { return fNprimary ; }
26d4b141 44 Int_t GetPrimary(Int_t index) const ;
ff4c968a 45 Bool_t IsSortable() const { return kTRUE ; }
46 void SetAmp(Int_t Amp) { fAmp=Amp ; }
26d4b141 47
d15a28e7 48private:
ff4c968a 49
83974468 50 Int_t fPrimary1 ; // first primary (because objects in a TClonesArray bust have constant length)
51 Int_t fPrimary2 ; // second primary (because objects in a TClonesArray bust have constant lengt)
52 Int_t fPrimary3 ; // third primary (because objects in a TClonesArray bust have constant lengt)
ff4c968a 53 Int_t fNprimary ; // Number of primaries
83974468 54
b2a60966 55 ClassDef(AliPHOSDigit,1) // Digit in PHOS
d15a28e7 56
57} ;
58
59#endif // ALIPHOSDIGIT_H