]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOSDigit.h
Removing warnings (alpha)
[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
e957fea8 20//#include "TObject.h"
d15a28e7 21
22// --- Standard library ---
23
24// --- AliRoot header files ---
25
26#include "AliDigitNew.h"
27
28class AliPHOSDigit : public AliDigitNew {
6c370def 29
5cf7bbad 30 friend ostream& operator << ( ostream& , const AliPHOSDigit&) ;
6c370def 31
88714635 32 public:
33
cf239357 34 AliPHOSDigit() ;
9688c1dd 35 AliPHOSDigit(Int_t primary, Int_t id, Int_t DigEnergy, Float_t Time, Int_t index = -1) ;
cf239357 36 AliPHOSDigit(const AliPHOSDigit & digit) ;
2e5c3041 37 virtual ~AliPHOSDigit() ;
d15a28e7 38
b27d82c8 39 Bool_t operator==(const AliPHOSDigit &rValue) const;
d15a28e7 40 AliPHOSDigit& operator+(AliPHOSDigit const &rValue) ;
88cb7938 41 AliPHOSDigit& operator*(Float_t factor) ;
39da3d9b 42 // AliPHOSDigit& operator=(const AliPHOSDigit) {
43 // Fatal("operator = ", "not implemented") ; return *this ; }
037cc66d 44 Int_t Compare(const TObject * obj) const ;
88cb7938 45 Int_t GetNprimary() const { return fNprimary ; }
26d4b141 46 Int_t GetPrimary(Int_t index) const ;
9688c1dd 47 Float_t GetTime(void) const {return fTime ;}
88cb7938 48 Bool_t IsSortable() const { return kTRUE ; }
e957fea8 49 void Print() const;
88cb7938 50 void SetAmp(Int_t Amp) { fAmp=Amp ; }
51 void SetTime(Float_t Time) {fTime = Time ;}
52 void ShiftPrimary(Int_t shift); // shift to separate different TreeK in merging
26d4b141 53
88714635 54 private:
ff4c968a 55
88cb7938 56 Int_t fNprimary ; // Number of primaries
adc232ca 57 Int_t * fPrimary ; //[fNprimary] Array of primaries
88cb7938 58 Float_t fTime ; // Calculcated time
83974468 59
88cb7938 60 ClassDef(AliPHOSDigit,2) // Digit in PHOS
d15a28e7 61
62} ;
63
64#endif // ALIPHOSDIGIT_H